RE: IBM-DM-003: Unparsed entities

References to unparsed entities are represented by an attribute of type
xs:ENTITY or xs:ENTITIES. Such references are never expanded (the
concept is meaningless). The unparsed entity accessors enable you to
locate the unparsed entity to which an atribute of type xs:ENTITY
refers. For example, this allows you to generate an <img> element in
HTML containing a reference to an image which is represented as an
unparsed entity in the original XML. Of course, this only works if the
unparsed entity accessor is exposed, which it is in XSLT but not in
XQuery.
 
Michael Kay

-----Original Message-----
From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of XML Query
Sent: 02 February 2004 19:07
To: public-qt-comments@w3.org
Subject: IBM-DM-003: Unparsed entities



Data Model Section 3.2 (Construction from an Infoset): First bullet
states that general and external parsed entities must be fully expanded,
and the Infoset must not contain any unexpanded entity reference info
items. This leaves open the question about unparsed entities. Can an
Infoset contain unexpanded references to unparsed entities? If so, how
are they represented in the data model? If not, the what is the use of
the unparsed entity accessors of the document node? 

Received on Monday, 2 February 2004 18:32:07 UTC