Subject: Re: [xsl] Error when switching to java 1.5 From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Sun, 22 Oct 2006 00:23:05 +0530 |
Which XSLT processor and its version are you using? Are you using XSLT 1.0 or XSLT 2.0?
I am using an identity template that removes namespaces in a Cocoon application that runs under Tomcat. Previously, I was using Java 1.4.2 but once I switched to Java 1.5 I receive a null pointer TransformerException. Following is the identity template that matches all nodes. The error occurs on the "apply-templates" tag. On the "select" attribute, the presence of the "@*" symbol causes the error. If I remove it, everything is fine. However, then attributes of nodes are not rendered. Has anyone encountered this problem before? Any suggestions?
<xsl:template match="*"> <xsl:element name="{name()}" namespace="{namespace-uri()}"> <xsl:apply-templates select="@*|node()" /> </xsl:element> </xsl:template>
-- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Error when switching to java , footh | Thread | Re: [xsl] Error when switching to j, footh |
RE: [xsl] top ancestor value, Michael Kay | Date | [xsl] Multi-grouping with keys (bac, philip vallone |
Month |