cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Broschwitz" <peter.broschw...@multi-m.de>
Subject AW: Problems with xsltc and xalan nodeset function
Date Mon, 06 Oct 2003 08:52:33 GMT
That's is interesting to know, I'll post the bug.

Thanks for testing!

-- Peter

-----Ursprungliche Nachricht-----
Von: Joerg Heinicke [mailto:jheinicke@virbus.de]
Gesendet: Freitag, 3. Oktober 2003 16:59
An: users@cocoon.apache.org
Betreff: Re: Problems with xsltc and xalan nodeset function


Can reproduce it, please file a bug at bugzilla at
http://nagoya.apache.org/bugzilla/.

Thanks,

Joerg

Peter Broschwitz wrote:

> Hi,
>
> we are using cocoon 2.1 with xsltc (version 1.4, xalan 2.5.0) as default
> transformer. Now we want to use the xalan or exslt nodeset function, but
> this is only possible with xalan xslt.
>
> For testing purposes we tried a simple nodeset transformation from the
> command line. We did that with the same libraries as cocoon, like:
>
> 	$>java -Djava.endorsed.dirs=<path/to/endorsed/directory>
> org.apache.xalan.xsltc.cmdline.Transform -x node-set-test.xml
node_set_test
>
> That we, the transformation succeeds. (Compilation before suceeded also,
of
> course.)
>
> Trying to process this stylesheet within the cocoon pipeline throws a null
> pointer exception without any entries in the cocoon-log-files. Changing to
> xalan-xslt the transformation works without any problems.
>
> The stylesheet we used is from the xsltc-documentation:
> ==============================================
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>   xmlns:xsltc-extension="http://xml.apache.org/xalan/xsltc"
>   xmlns:xalan="http://xml.apache.org/xalan"
>   xmlns:exslt="http://exslt.org/common"
>   version="1.0">
>
>   <xsl:template match="/">
>     <xsl:variable name="rtf">
>       <docelem>
>         <elem1>elem1 gefunden!</elem1>
>         <elem2>elem2 gefunden!</elem2>
>       </docelem>
>     </xsl:variable>
>     <!-- Use nodeset as an XSLTC extension function -->
>     <xsl:value-of select="xsltc-extension:nodeset($rtf)/docelem/elem1"/>
>
>     <!-- Use nodeset as a Xalan-Java extension function -->
>     <xsl:value-of select="xalan:nodeset($rtf)/docelem/elem1"/>
>
>     <!-- Use nodeset as an EXSLT extension function -->
>     <xsl:value-of select="exslt:node-set($rtf)/docelem/elem1"/>
>
>     <!-- Use nodeset as standard function -->
>     <xsl:value-of select="nodeset($rtf)/docelem/elem1"/>
>
>   </xsl:template>
> </xsl:stylesheet>
> ==============================================
>
> Thanks,
> Peter


---------------------------------------------------------------------
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