record ends in entities and xincludes

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