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.
You'll notice that in all of the samples, they use a forms-samples-styling.xsl stylesheet to convert the fi: elements to HTML. If you look at this stylesheet it delegates out to forms-field-styling.xsl and forms-page-styling.xsl, calling templates matching <head> and <body> with special modes. It is in those templates where the appropriate <script> elements are inserted. > > Should I add an inclussion of forms-lib.js by hand? > > Isn't all this very poorly documented? =/ Agreed. It has gotten better though. http://cocoon.apache.org/2.1/userdocs/publishing/xslt.html at least describes the XSLT files and how to use them now, whereas you used to have to just guess it from looking at the samples. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]