Re: insert and matching nothing

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 UTC