cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Where are the JavaScript functions?
Date Thu, 23 Mar 2006 08:55:04 GMT
On Wed, 2006-03-22 at 10:45 -0300, Nicolás Lichtmaier wrote:
> > In your sitemap.xmap, you need to include a matcher for the 
> > client-side javascript files. You should write something like this:
> >
> > <map:match pattern="resources/*/**">
> >  <map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>
> > </map:match>
> 
> I already have that in the sitemap. But there's no inclussion, no 
> <script src=""> tag. And there's no documentation about what I should 
> add and I can't find any such tag in the samples.
> 
> Should I add an inclussion of forms-lib.js by hand?

You need to have a <head> element in the XML that is processed by the
XSL (forms-samples-styling.xsl or equivalent). Otherwise the script and
css links won't be added.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message