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

Re: p:insert matches documents and elements?

From: Norman Walsh <ndw@nwalsh.com>
Date: Sun, 29 Apr 2007 17:48:14 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87r6q226ox.fsf@nwalsh.com>
/ Alex Milowski <alex@milowski.org> was heard to say:
| On 4/22/07, Norman Walsh <ndw@nwalsh.com> wrote:
|>
|> Should p:insert fail if the target matches something that isn't
|> a document or element? If not, what should it do?
|
| Yes.  It should fail when the target is not an element or document.  If the
| target is a document, the at-start option doesn't mean anything.  It will
| replace the document element.

In that case, I think I'd prefer to make matching the document node
an error. That's (a) completely different semantics and (b) easily
done with other steps.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Knowledge, sense, honesty, learning,
http://nwalsh.com/            | good behavior are the chief things
                              | towards making a man's fortune, next to
                              | interest and opportunity.

Received on Sunday, 29 April 2007 21:48:20 GMT

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