W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > April 2006

record ends in entities and xincludes

From: Grosso, Paul <pgrosso@ptc.com>
Date: Mon, 3 Apr 2006 16:54:45 -0400
Message-ID: <CF83BAA719FD2C439D25CBB1C9D1D30202E0FA7A@HQ-MAIL4.ptcnet.ptc.com>
To: <public-xml-core-wg@w3.org>

This is such an obvious thing that I'm wondering
what I'm forgetting.

If someone has an XML external parsed entity whose
contents has just character data or mixed content
at the top level, is there a trailing record end
included in that entity?

Same question about the infoset of such a resource
when treated as the target of an XInclude.

Specifically, consider (assume the obvious nsdecl
for "xi"):
 
doc.xml
-------
<!DOCTYPE doc [ 
<!ENTITY annoying SYSTEM "ent.xml"> 
]>
<doc>
<p>This is &annoying;.</p>
<p>This is also <xi:include href="ent.xml"/>.</p>
</doc>
 
ent.xml
-------
an annoying problem

Is there supposed to be a linefeed preceding the 
period (aka full stop) following the entity reference 
and xinclude or not?  

And whatever the answer is, how do you get the other 
behavior if that's what you want instead?

paul
Received on Monday, 3 April 2006 20:57:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:36 UTC