[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: invalid xpath?

Subject: Re: invalid xpath?
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 02 Jul 2008 23:22:48 +0200
Re:  invalid xpath?
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 --

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.