[Bug 2613] namespace-alias and #default

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2613

           Summary: namespace-alias and #default
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 2.0
        AssignedTo: mike@saxonica.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


Some time ago, I think in response to a comment from Oliver Becker during the
first last call [1], we decided that it should be an error for
xsl:namespace-alias to specify stylesheet-prefix="#default" if there is no
default namespace (that is, if the declaration xmlns="" is in force explicitly
or implicitly). The same applies to result-prefix.

I've recently got around to implementing this decision and it breaks a few XSLT
1.0 test cases. I'm not suggesting that the decision should be changed, but we
should document it as a backwards-incompatibility. 

The XSLT 1.0 spec isn't very clear about what should happen, but some processors
at least adopted the interpretation that xsl:namespace-alias should be able to
move elements from the null namespace into an actual namespace or vice versa,
and that capability no longer exists.


[1] http://lists.w3.org/Archives/Public/public-qt-comments/2003Sep/0009.html

Received on Wednesday, 21 December 2005 16:43:58 UTC