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

[Bug 27369] New: [XDM 3.1] Multiple entity declarations

From: <bugzilla@jessica.w3.org>
Date: Wed, 19 Nov 2014 16:14:42 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-27369-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27369

            Bug ID: 27369
           Summary: [XDM 3.1] Multiple entity declarations
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Data Model 3.1
          Assignee: ndw@nwalsh.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

XDM 3.1 section 5.15 (and similarly 5.16) says

"The dm:unparsed-entity-public-id accessor returns the public identifier of an
unparsed external entity declared in the specified document. If no entity with
the name specified in $entityname exists, or if the entity is not an external
unparsed entity, or if the entity has no public identifier, the empty sequence
is returned."

It doesn't say what happens if there is more than one declaration with the
specified entity name. 

The Infoset (section 2.9) exposes all the entities: "There is an unparsed
entity information item for each unparsed general entity declared in the DTD."

We should adopt the answer given in the XML recommendation, section 4.2:

"If the same entity is declared more than once, the first declaration
encountered is binding."

Technically I guess this depends on the order of unparsed entity information
items in the Infoset respecting the order of entity declarations in the source
document.

I am adding an XSLT 3.0 test that assumes this resolution. (Saxon currently
takes the last one encountered).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 19 November 2014 16:14:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:59 UTC