Subject: Re: [xsl] Locating an attribute and its value indirectly From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 07 Nov 2011 12:57:01 -0500 |
On 11/4/2011 9:27 PM, G. Ken Holman wrote:The current() function returns that node that was current at the beginning of the evaluation of the XPath expression.
I'm sure Ken won't mind if I add a little color commentary. It may help to keep in mind that the "context node" is an XPath concept, while the "current node" is an XSLT concept.
That's the way the 1.0 specifications described it. In 2.0 both specs speak of the context item, and the current() function, rather inelegantly, is defined as returning "the item that was the context item at the point where the [XPath] expression was invoked from the XSLT stylesheet. "
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Locating an attribute and, Michael Kay | Thread | Re: [xsl] Locating an attribute and, G. Ken Holman |
Re: [xsl] Locating an attribute and, Michael Kay | Date | [xsl] Calling C++ from XSLT, Franck Houssen |
Month |