xsl-list
[Top] [All Lists]

Re: [xsl] invalid xpath?

2008-07-02 14:23:46
Michael Kay wrote:
In one place the "." slipped into the code instead of "$Arg", and the template operated on the original text node instead of the partly processed one.

This is one advantage of xsl:function over xsl:template - it prevents
inadvertent use of expressions referring to the context node.

Very interesting point you make there, Michael. I always found it a miss of the specification that functions cannot act on the current node (yet I did see that it would have some non-trivial complications in terms of scope and manageability). From this point of view the motivation of that decision is much clearer.

Cheers,
-- Abel --

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>