cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antony Grinyer" <antony.grin...@csw.co.uk>
Subject RE: XSLT transformation
Date Wed, 03 Aug 2005 19:04:20 GMT
Thanks for the idea Mark - I tried this and it just displays the XML? Seems it's stopping at
the  <map:serialize type="xml"/> and not moving onto <map:transform type="xslt" src="style/xsl/containerslist.xsl"/>?

Thanks,
Ant

> -----Original Message-----
> From: Marc Salvetti [mailto:marc@notremanou.net] 
> Sent: 03 August 2005 06:26 pm
> To: users@cocoon.apache.org
> Subject: Re: XSLT transformation
> 
> You can just try the following pipe
> 
> <map:match pattern="listcontainers">
>   <map:generate type="file" src="content/showsyscontainer.xml"/>
>   <map:transform type="bdbxml"/>
>   <map:serialize type="xml"/>
>   <map:transform type="xslt" src="style/xsl/containerslist.xsl"/>
>   <map:serialize type="html"/>
> </map:match>
> 
> if you get the same error, the pb is in the java class, if 
> not, it's in the stylesheet :)
> 
> Marc
> 
> Antony Grinyer a écrit :
> 
> >Hi,
> >
> >A have a simple sitemap entry as below:
> >
> ><map:match pattern="listcontainers">
> >  <map:generate type="file" src="content/showsyscontainer.xml"/>
> >  <map:transform type="bdbxml"/>
> >  <map:transform type="xslt" src="style/xsl/containerslist.xsl"/>
> >  <map:serialize type="html"/>
> ></map:match>
> >
> >The generator is a simple XML file which is passed to a java class 
> >transformer ( referenced as type="bdbxml") which returns XML results.
> >This all works fine if I use <map:serialize type="xml"/>  to simply 
> >output the XML, however if I try to transform the XML output 
> with the 
> >XSLT transformer above I get an error:
> >
> >  
> >
> >>>Error executing pipeline.
> >>>      
> >>>
> >
> >  
> >
> >>>org.apache.cocoon.ProcessingException: Error executing pipeline.: 
> >>>java.lang.RuntimeException
> >>>      
> >>>
> >
> >I know the XSLT containerslist.xsl is correct as I've tried 
> it against 
> >some sample output XML in XMLSpy, but it appears that when I 
> add this 
> >XSLT transformer I get a Processing Exception?
> >
> >In the sitemap.log it is reported as:
> >
> >Unable to get parser: java.lang.RuntimeException:
> >java.lang.NullPointerException
> >
> >Any ideas please? (for a Cocoon newbie) Thx in advance, Ant
> >
> >
> >
> >---------------------------------------------------------------------
> >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
> 
> 
> 
> 



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


Mime
View raw message