Re: Clarification for 4.2.2

Thanks for the comment; please accept our apologies for taking so long
to resolve this issue.

We agree that inclusion of a top-level element is underspecified, and
will update the draft to indicate that a top-level include element can
only be replaced by a combination of zero or more comment nodes, zero or
more processing instructions, and zero or one element nodes.

- Jonathan

-------------------
Message-ID: <3B1EEAB7.4070605@metalab.unc.edu>
Date: Wed, 06 Jun 2001 19:45:11 -0700
From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
To: www-xml-xinclude-comments@w3.org
Subject: Clarification for 4.2.2

Section 4.2.2 of the latest XInclude draft, Multiple Nodes, states:

   If the document (top-level) element in the source infoset
   is an xi:include element, it is an error to attempt to
   replace it with more than a single element.

This could be clearer. I think that it is OK to replace such an element 
with an infoset containing comments, processing instructions, and 
exactly one root element. This is still "more than a single element". 
Furthermore this section does not seem to rule out that the infoset 
might included text nodes. Nor does it seem to rule out that the infoset

might contain less than one element, i.e. no root element at all.

I suspect other parts of the spec address these last two points. 
Nonetheless I think this could be made clearer with language like this:

  If the document (top-level) element in the source infoset
  is an xi:include element, it must be replaced by an infoset
  containing exactly one element and no text nodes.

Received on Wednesday, 15 August 2001 16:47:33 UTC