[ 
http://issues.apache.org/jira/browse/XALANJ-2303?page=comments#action_12419273 
] 

Sorin Ristache commented on XALANJ-2303:
----------------------------------------

The NPE occurs for any on the xsl:sort/@xmlns attribute, for example:

  <xsl:sort select="a" xmlns:p1="ns1">

> NullPointerException when the binding of the xsl namespace prefix is 
> duplicated
> -------------------------------------------------------------------------------
>
>          Key: XALANJ-2303
>          URL: http://issues.apache.org/jira/browse/XALANJ-2303
>      Project: XalanJ2
>         Type: Bug

>   Components: Xalan
>     Versions: 2.7
>  Environment: Windows XP SP2, Java 1.5.0_06
>     Reporter: Sorin Ristache

>
> Xalan issues a NullPointerException when I try to create a Transformer object 
> for the following XSLT stylesheet:
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> version="1.0">
>   <xsl:template match="/">
>     <xsl:for-each select="*" >
>       <xsl:sort select="a" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/>
>     </xsl:for-each>
>   </xsl:template>
> </xsl:stylesheet>
> The NullPointerException can be reproduced with the following command line 
> executed in the Xalan install directory:
> java -jar xalan.jar -XSL ftopic1861-NPE-in-Xalan.xsl
> where ftopic1861-NPE-in-Xalan.xsl contains the above stylesheet. If I remove 
> the xsl:sort/@xmlns:xsl attribute the NPE does not occur any more.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to