xsl-list
[Top] [All Lists]

[xsl] Re: Position() in apply-templates

2014-04-01 16:48:02
On Tue, Apr 1, 2014 at 11:18 PM, David Rudel <fwqhgads(_at_)gmail(_dot_)com> 
wrote:

My question is "When the "number assigned to that node" (as referenced
in Kay) is considered the context position? :

A. In the predicate of the select attribute of the
<xsl:apply-templates> instruction?
B. In the select attribute of any <xsl:with-param> instructions inside
the <xsl:apply-templates> instruction?
C. In the body of the <xsl:template> called by the
<xsl:apply-templates> instruction?


The author of the 2001 post actually says something stronger: "The
xsl:apply-templates itself doesn't change the context in which
something is evaluated." This is in conflict with what Michael Kay's
book says.

Given that someone else supported the 2001 post, I'm going to conclude
that the author was at least correct in referring to the specifics
being asked, and was just wrong about the part where he said that
<xsl:apply-templates> does not change the context. Thus the answers to
my three questions are:

A. No
B. No
C. Yes

I just did a quick test to verify C. above.

-David

-- 

"A false conclusion, once arrived at and widely accepted is not
dislodged easily, and the less it is understood, the more tenaciously
it is held." - Cantor's Law of Preservation of Ignorance.

--~------------------------------------------------------------------
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>