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
considered."

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:54 GMT