This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Function arguments (was regexps once)
- From: Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 15 Jan 2002 13:55:45 +0100
- Subject: Re: [xsl] Function arguments (was regexps once)
- Organization: ZKB
- Reply-to: xsl-list at lists dot mulberrytech dot com
Jeni Tennison <jeni@jenitennison.com> wrote:
> > IMHO user defined functions should not depent implicitely of the
> > context where they are called...
> It also undermines the equality between: [ calling named templates
and <xsl:copy-of select="my:foo()" /> ]
That's a valid point. I didn't remember that named templates
inherit the context from where they were called, probably
because i've been bitten a few times by this feature and i
now prefer to pass everything through parameters, even ".".
Regards
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list