You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "David Bertoni (JIRA)" <xa...@xml.apache.org> on 2008/05/26 21:09:56 UTC

[jira] Closed: (XALANC-615) Xalan resolves a namespace prefix when it should report an error

     [ https://issues.apache.org/jira/browse/XALANC-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bertoni closed XALANC-615.
--------------------------------


> Xalan resolves a namespace prefix when it should report an error
> ----------------------------------------------------------------
>
>                 Key: XALANC-615
>                 URL: https://issues.apache.org/jira/browse/XALANC-615
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: CurrentCVS
>         Environment: all
>            Reporter: Dmitry Hayes
>            Assignee: Dmitry Hayes
>            Priority: Minor
>             Fix For: CurrentCVS
>
>         Attachments: patch.diff
>
>
> for an input document : <doc><str/></doc>
> and the stylesheet:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"   version="1.0">
>     	
> 	 <xsl:template match="doc">
> 	 		<bar xmlns:foo="foo-namespace">
> 	 			<xsl:apply-templates/>
> 	 		</bar>
> 	</xsl:template>
>         <xsl:template match="str">
> 			<xsl:element name="foo:boo"/>
> 	</xsl:template>
> </xsl:stylesheet>
> According to the spec XSLT1.0, 7.1.2 :"If the namespace attribute is not present then the QName is expanded into an expanded-name using the namespace declarations in effect for the xsl:element element, including any default namespace declaration." So Xalan shouldn't be able to resolve the "foo" prefix in <xsl:element name="foo:boo"/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org