This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Function arguments (was regexps once)
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Sat, 12 Jan 2002 23:49:16 -0000
- Subject: RE: [xsl] Function arguments (was regexps once)
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I agree that you can think of the pertinent aspects of the focus as
> being an additional argument to the function. I just wanted to bring
> out the point because the only exising built-in function that returns
> a node tree - document() - returns the same tree *across the
> stylesheet* rather than *in a particular context*.
Actually the result of document() is context dependent, and in a rather
unusual way: it is the only construct whose result depends on the base URI
of the stylesheet element containing the expression. This base URI is used
to expand any relative URI in the call.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list