p:insert

What should the behavior of the p:insert step be when position=first-child
or position=last-child and the matched node is not an element?

The spec says:

  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”.

How is first-child or last-child any more useful for a document node?

I propose:

  It is a dynamic error (err:XC0025) if:

  - the match pattern matches the document node
  - position option is "first-child" or last-child" and the match pattern
    matches anything except an element node

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | How is the world ruled and how do wars
http://nwalsh.com/            | start? Diplomats tell lies to
                              | journalists and then believe what they
                              | read.--Karl Kraus

Received on Sunday, 25 May 2008 13:43:26 UTC