If you want javascript libraries within your page the following should work: ( ";" because empty element may cause some problems) If you still get the error ProcessingException, I suggest you leave your javascript tags out and see if you still get that error. The javascript tag should not give any problems except maybe for a "resource not found" when trying to load the .js file. When such an error occurs, do check your logs, especially the sitemap.log (you've got your logs configured properly I guess?). That should give you more details about when and where that error pops up. (try leaving the session transformer out, maybe that's the problem, or your stylesheet maybe, when passing variables/parameters to it?) Kind Regards, Jan Siaw Ling Lo wrote: >hi, > >the sitemap is: > > > > > > > > > > > src="resources/{1}.js"/> > > >tree.js is in resources directory. > > >By the way, I always tried > > >but still get the same error : >org.apache.cocoon.ProcessingException: Failed >to execute pipeline.: java.lang.RuntimeException: > java.lang.NullPointerException . > >Thanks again, >Siaw Ling > >================================================== >From: KOZLOV Roman >Subject: Re: javascript in XSL >Date: Mon, 16 Aug 2004 04:35:45 -0700 > >Hi, > >What is your pipeline for this? Check it. > >Siaw Ling Lo wrote: > > > >>hi, >> >>I am using cocoon2 and trying to build a tree that >> >> >can > > >>collapse and expand when click. >> >>I tried various methods in getting the javascript to >>work with XSL to display an XML but it just can't >> >> >work > > >>- error: org.apache.cocoon.ProcessingException: >> >> >Failed > > >>to execute pipeline.: java.lang.RuntimeException: >>java.lang.NullPointerException . >> >>The methods I tried including >>1. >> >>below are the XSL file with the 2nd approach and >>corresponding XML file. >>================================================= >>>xmlns:xsl="http://www.w3.org/1999/XSL/Transform> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
>> >select="image"/> >> >select="imageOpen"/> >> false >> f>select="@id"/> >> false >> >> padding-left: 20px; >> cursor: hand; >> >> display: none; >> >> >> > >> >cellpadding="0"> > > >> >> >> >> >>
>> >> >> >> >> >> >> >> padding-left: 7px; >> font-family: Verdana; >> font-size: 11px; >> font-color: black; >> >>
>> >>
>>
>> >>
>> >>and the corresponding XML file: >>================================= >> >> >> >> Reports >> >> images/book.gif >> images/bookOpen.gif >> >> >> Income >> >> images/paper.gif >> images/paper.gif >> >> >> >> >> Expenses >> >> images/paper.gif >> images/paper.gif >> >> >> >> >> >> >> >>Thank you very much for any guidance and advice. >> >>SiawLing >> >> > > > > >__________________________________ >Do you Yahoo!? >New and Improved Yahoo! Mail - Send 10MB messages! >http://promotions.yahoo.com/new_mail > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >For additional commands, e-mail: users-help@cocoon.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org