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

Re: insert and matching nothing

From: James Fuller <james.fuller.2007@gmail.com>
Date: Wed, 6 Feb 2008 13:36:19 +0100
Message-ID: <a0ad8ffe0802060436w216968balffd17774e00c21af@mail.gmail.com>
To: Toman_Vojtech@emc.com
Cc: public-xml-processing-model-comments@w3.org

On Feb 6, 2008 1:37 PM,  <Toman_Vojtech@emc.com> wrote:
>
> > in section 7.1.11 p:insert
> >
> > it states
> > ----------------------------
> >
> > The value of the match option must be an XSLTMatchPattern. It
> > is a dynamic error (err:XC0023) if that pattern matches
> > anything other than element nodes. Multiple matches are
> > allowed, in which case multiple copies of the insertion
> > document will occur.
> >
> > -----------------------------
> >
> > we might want to tighten things ups, e.g. what happens when
> > we match nothing ? is this an error ?
> >
> > cheers, Jim Fuller
> >
>
> My understanding was that the source document is left untouched in this
> case.

I would imagine that would the desired behaviour, this is probably
just an oversight.

but there are no 'words' to that affect and it could be argued that
the words that are there actually say 'throw a dynamic error' when
'anything other then element nodes' are matched.

Jim Fuller
Received on Wednesday, 6 February 2008 12:36:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 6 February 2008 12:36:32 GMT