This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7130 - [XSLT 2.0] Namespace-alias: two result prefixes bound to same URI
Summary: [XSLT 2.0] Namespace-alias: two result prefixes bound to same URI
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 07:44 UTC by Michael Kay
Modified: 2010-07-15 09:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2009-07-22 07:44:39 UTC
Email sent privately to MHK by A. Biao (abiao dot chen at gmail dot com):


I found there's words to report error when namespace alias declaration
conflicted in XSLT2.0 11.1.4.
[ERR XTSE0810] It is a static error if there is more than one such declaration with the same literal namespace URI and the same import
precedence and different values for the target namespace URI,

...

I don't know whether it's a error when there're two xsl:namespace-alias with
the same stylesheet-prefix and different result-prefix which targets to a
same namespace URI.

For example:
<xsl:stylesheet version="2.0" xmlns:a="ns" xmlns:r1="out" xmlns:r2="out">
<xsl:namespace-alias *stylesheet-prefix* = *"a*" *result-prefix = "r1"/>*
**
<xsl:namespace-alias *stylesheet-prefix* = *"a*" *result-prefix = "r2"/>*

Should this be OK?
If yes, what will be the output prefix, r1 or r2?

Thanks,
**--
A Biao
Comment 1 Michael Kay 2009-07-22 07:47:38 UTC
My proposed resolution of this would be that:

(a) it's not an error

(b) the choice of prefix in the result is implementation-dependent
Comment 2 Sharon Adler 2010-05-25 21:09:55 UTC
At the XSLT WG meeting on 20 May 2010 the WG agreed to the following:

(a) it's not an error - the "last" one is used.
Comment 3 Michael Kay 2010-07-15 09:07:39 UTC
This will be erratum E45