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

[Bug 5393] CVS: fn-doc-available-4 and xml:id errors

From: <bugzilla@wiggum.w3.org>
Date: Fri, 18 Jan 2008 13:39:20 +0000
To: public-qt-comments@w3.org
Message-Id: <E1JFrRI-0005dJ-LL@wiggum.w3.org>


------- Comment #1 from mike@saxonica.com  2008-01-18 13:39 -------
Starting at the end:

More generally, is it a requirement that a document loaded with fn:doc
(directly, or indirectly via fn:doc-available):
1.  Perform xml:id processing?
2.  Perform DTD processing if a DOCTYPE is included?
3.  Perform XML Schema validation if a schema is referenced?

The answer is emphatically no. The dynamic context defines a mapping from URIs
to document nodes, and doc() simply applies that mapping. There are no
restrictions on how this mapping is set up. If you want to set it up so that
the document <badLuck/> is returned regardless of the URI, then you can.

However, XDM defines a mapping from InfoSets to document nodes which processors
might wish to provide, and it's reasonable to think of this as the default
mapping to use (assuming schema validation is not requested, in which case you
would use the PSVI mapping instead). If this mapping is used (Data Model
section 6.3.3) the rules are:

If the attribute is named xml:id and its [attribute type] property does not
have the value ID, then [xml:id] processing is performed. This will assure that
the value does have the type ID and that it is properly normalized. If an error
is encountered during xml:id processing, an implementation MAY raise a dynamic
error. The is-id property is always true for attributes named xml:id.
Received on Friday, 18 January 2008 13:39:30 UTC

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