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

Brian Minchau commented on XALANJ-2305:
---------------------------------------

Brian Minchau agreed to look at this one, per the bug triage on July 11, 2006

> problem with xsl:copy-of while copying namespace nodes
> ------------------------------------------------------
>
>          Key: XALANJ-2305
>          URL: http://issues.apache.org/jira/browse/XALANJ-2305
>      Project: XalanJ2
>         Type: Bug

>   Components: Xalan
>     Versions: 2.7
>  Environment: Xalan-J 2.7.0, JDK 1.5.0_04, Win XP Prof
>     Reporter: Mukul Gandhi
>     Priority: Critical

>
> There seems to be some problem with xsl:copy-of while copying namespace 
> nodes.. 
> Please consider this example.
> Source XML:
> <?xml version="1.0" ?>
> <!-- this is a comment -->
> <?pqr x="do-something" ?>
> <author xmlns:a="xyz" xmlns:b="pqr">
>  <person a:age="30"> by <FirstName>Jane</FirstName>
>  <LastName>Doe</LastName>,
>  </person>
> </author>
> XSLT Stylesheet:
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> <xsl:output method="xml" indent="yes" />
>   
> <xsl:template match="/author">
>  <test>
>    <xsl:copy-of select="namespace::*" />
>  </test>
> </xsl:template>
>    
> </xsl:stylesheet>
> The right output of transformation should be:
> <?xml version="1.0" encoding="UTF-8"?>
> <test xmlns:a="xyz" xmlns:b="pqr"/>
> But Xalan-J 2.7.0 produces output..
> <?xml version="1.0" encoding="UTF-8"?>
> <test/>
> I think that this is a non-conformance according to XSLT 1.0 spec.
> The relevant section of the spec is:
> Erratum E25 at
> http://www.w3.org/1999/11/REC-xslt-19991116-errata/.
> Regards,
> Mukul

-- 
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