[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Error when switching to java 1.5

Subject: Re: Error when switching to java 1.5
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sun, 22 Oct 2006 00:23:05 +0530
Re:  Error when switching to java 1.5
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()}"
namespace="{namespace-uri()}">
    <xsl:apply-templates select="@*|node()" />
  </xsl:element>
 </xsl:template>


--
Regards,
Mukul Gandhi

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.