DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30681>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30681 <xsl:namespace-alias stylesheet-prefix="foo" result-prefix="#default" /> [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From [EMAIL PROTECTED] 2004-08-26 22:16 ------- Hi Galen, I investigated this bug. I don't think Xalan should behave the way you described. Please have a look at Section 7.1.1 (Literal Result Elements) of W3C Recommendation of XSLT 1.0 at http://www.w3.org/TR/xslt. It says: "The xsl:namespace-alias element declares that the namespace URI bound to the prefix specified by the stylesheet-prefix attribute is an alias for the namespace URI bound to the prefix specified by the result-prefix attribute. Thus, the stylesheet-prefix attribute specifies the namespace URI that will appear in the stylesheet, and the result-prefix attribute specifies the corresponding namespace URI that will appear in the result tree. " Here only the Namespace URI associated with a prefix is being aliased. There is not any indication of prefix itself being aliased. Hence, The result is working as designed. However, I feel there is a bug in the code to check if namespace uri associated with result-prefix has been declared or not. In the testcase provided, default namespace is not declared. I will provide a patch that will report this as an error. Please let me know if you are in agreement with my conclusion. Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
