This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Regular expression functions (Was: Re: comments on December F&O draft)
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>, "'Marc Portier'" <mpo at outerthought dot org>
- Cc: "'Steven Noels'" <stevenn at outerthought dot org>
- Date: Fri, 11 Jan 2002 12:28:49 -0000
- Subject: RE: Regular expression functions (Was: Re: [xsl] comments on December F&O draft)
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I suspect that the
> introduction of user-defined functions in XSLT will lead to more
> functions that do this [construct and return trees],
> but don't know whether people would feel it
> was acceptable for a built-in function.
>
It's messy because of the problem that nodes have identity. You have to
define whether two calls of the same function return the same tree or
different trees. I guess one could say that it's explicitly
implementation-defined, and no-one would worry too much about it. But it's
also something you want to avoid if at all possible because constructing new
trees is always expensive.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list