Re: [xsl] Error when switching to java 1.5

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
Can you please tell, what is your source XML and the desired output?

Which XSLT processor and its version are you using? Are you using XSLT
1.0 or XSLT 2.0?

This information will help us to solve the problem.

On 10/21/06, footh <footh@xxxxxxxxx> wrote:
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()}"
    <xsl:apply-templates select="@*|node()" />

Mukul Gandhi

Current Thread