Re: [xsl] Function arguments (was regexps once)

Subject: Re: [xsl] Function arguments (was regexps once)
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Tue, 15 Jan 2002 13:55:45 +0100
Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> 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


Current Thread