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

Brian Minchau updated XALANJ-2011:
----------------------------------

    Fix Version: 2.7

> xmlns not resolved
> ------------------
>
>          Key: XALANJ-2011
>          URL: http://issues.apache.org/jira/browse/XALANJ-2011
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: 2.6
>  Environment: xalan-j-2_6_0 with xerces-2_6_2
>     Reporter: Roland Zorn
>      Fix For: 2.7

>
> Hi,
> see attached xls. I tried to create attribute with "namespace"-prefix xmlns. 
> This results in error: prefix xmlns can't be resolved. But it's also not 
> possible to use namespace-alias, cause defined by w3c ("The prefix xmlns is 
> used only for namespace bindings and is not itself bound to any namespace 
> name") xlmns has no URI.  So as xmlns is more a keyword than a prefix it must 
> be work without namespace checking. This is for special functionality of 
> xmlns and so I think a bug.
> Thanks Roland
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>       <xsl:output method="xml" 
>               version="1.0"
>               encoding="UTF-16" 
>               standalone="yes"
>               indent="yes" 
>       />
>               
>       <xsl:template match="/">
>               <xsl:element name="newDocWithNamepaceOfOldDoc">
>                       <xsl:for-each select="//namespace::*">
>                               <xsl:attribute 
> name="{concat('xmlns:',name())}"> 
>                                       <xsl:value-of select="." />
>                               </xsl:attribute> 
>                       </xsl:for-each>
>               </xsl:element>
>       </xsl:template>
> </xsl:stylesheet>

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