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

Re: ACTION-2008-08-28-03: the kinds of nodes that are legal for all steps

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 25 Sep 2008 07:35:21 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m21vz8pifa.fsf@nwalsh.com>
"Innovimax SARL" <innovimax@gmail.com> writes:

>> - Proposal to change p:insert, but I don't think that works for the reasons
>>  I cited above.
>>
>
> Well I don't agree
> What about Richard argument in http://www.w3.org/XML/XProc/2008/08/28-
> minutes
> [[
> I like Richard's formulation: p:insert allows matching of anything
>   which may have children if where is first or last, and anything that _is_
>   a child if where is before or after
> ]]

You're right. I got caught up just thinking about the document case.

PROPOSAL:

  The match option can match element, text, processing-instruction,
  and comment nodes.

Change the description of err:XC0025 to read

  It is a dynamic error (err:XC0025) if the match pattern matches the
  document element and the value of the position option is "before" or
  "after" or if the match pattern matches anything other than an
  element node and the value of the position option is "first-child"
  or "last-child".

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Wit consists in seeing the resemblance
http://nwalsh.com/            | between things which differ, and the
                              | difference between things which are
                              | alike.--Madame De Stæl

Received on Thursday, 25 September 2008 11:36:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 25 September 2008 11:36:08 GMT