xsl-list
[Top] [All Lists]

Re: [xsl] Error when switching to java 1.5

2006-10-21 11:55:20
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(_at_)yahoo(_dot_)com> 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()}"
namespace="{namespace-uri()}">
    <xsl:apply-templates select="@*|node()" />
  </xsl:element>
 </xsl:template>


--
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>