Xalan resolves a namespace prefix when it should report an error ----------------------------------------------------------------
Key: XALANC-615 URL: http://issues.apache.org/jira/browse/XALANC-615 Project: XalanC Type: Bug Environment: all Reporter: Dmitry Hayes 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. - 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]