W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > October 2007

Re: Wrapping of nodes into a document

From: Alex Milowski <alex@milowski.org>
Date: Tue, 2 Oct 2007 15:43:34 -0700
Message-ID: <28d56ece0710021543p729537eeh4bb08bf4470e9dca@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org

On 10/2/07, Innovimax SARL <innovimax@gmail.com> wrote:
> Ok but it suddently raise a question in my mind
> Suppose this is the content of a document
> <?xml version="1.0"?>
> <?my-py I like it ?>
> <!-- my comment -->
> <root />
> <!-- my comment -->
> <?my-py I like it ?>
> If I make a for-each on it, I will loose the PI and the comments, right ?

You shouldn't because they are the children of the document.  The XML
processing instruction isn't present as a child according to the infoset
and so shouldn't be preserved when wrapped.

--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language

Bertrand Russell in a footnote of Principles of Mathematics
Received on Tuesday, 2 October 2007 22:43:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:44 UTC