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.


-- 
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|               Java I/O (O'Reilly & Associates, 1999)               |
|            http://metalab.unc.edu/javafaq/books/javaio/            |
|   http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+

Received on Wednesday, 6 June 2001 19:52:21 UTC