W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2008

[Bug 6255] New: [XPath2] Base URI after validation

From: <bugzilla@wiggum.w3.org>
Date: Sat, 29 Nov 2008 00:01:03 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-6255-523@http.www.w3.org/Bugs/Public/>

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

           Summary: [XPath2] Base URI after validation
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


I've tagged this as XPath for administrative convenience, but it's actually an
issue that affects XSLT and XQuery rather than XPath itself.

Both XSLT and XQuery define the process of validation in terms of a number of
steps, starting with serializing the XDM and then reparsing it to construct an
Infoset, which is then validated as described in the XML Schema specification.

If this process is followed literally, the base URI of the nodes in the
validated document is undefined. This is unfortunate, since it makes any
relative URI references in the document unusable.

I suggest we add a rule that the base URI of the document node of the Infoset
that is constructed must be the same as the base URI of the XDM node being
validated.

As a future enhancement, there would seem to be a case for allowing the
required base URI of a document node to be specified explicitly as an option on
a document node constructor (document{} in XQuery, xsl:document in XSLT). It's
easy to define syntax for this in XSLT of course, much harder in XQuery.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Saturday, 29 November 2008 00:01:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:25 UTC