[ http://issues.apache.org/jira/browse/XALANJ-2045?page=all ]

Brian Minchau updated XALANJ-2045:
----------------------------------

    Fix Version: 2.7

> superfluous namespace attribute generated at root element
> ---------------------------------------------------------
>
>          Key: XALANJ-2045
>          URL: http://issues.apache.org/jira/browse/XALANJ-2045
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.6
>  Environment: Win XP, Xalan 2.6.0, Xerces 2.6.2, JDK 1.3.1_09
>     Reporter: Dirk Feufel
>      Fix For: 2.7

>
> Since upgrading from Xalan 2.5.2 to 2.6.0 I get an additional namespace 
> attribute generated at the root element of the output xml:
> XSL:
> <xsl:stylesheet version='1.1'
>     xmlns:xsl='http://www.w3.org/1999/XSL/Transform' 
>     xmlns:xalan="http://xml.apache.org/xalan";>
>     <xsl:output method="xml" version="1.0" encoding="UTF-8" 
>         indent="yes" xalan:indent-amount="4"/>
>   <xsl:template match="/test">
>   <test> <xsl:copy-of select="hello"/> </test>
>   </xsl:template>
> </xsl:stylesheet>
> Input:
> <?xml version="1.0" encoding="UTF-8"?>
> <test>
>     <hello/>
> </test>
> Output:
> <?xml version="1.0" encoding="UTF-8"?>
> <test xmlns:xalan="http://xml.apache.org/xalan";>
>     <hello>test</hello>
> </test>
> This behaviour can be avoided by specifying 
> extension-element-prefixes="xalan" for the XSL, but then I get the same 
> additional namespace attributes at child elements under certain conditions 
> (which I have not yet fully analysed).

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