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

Context node versus current streaming position

Subject: Context node versus current streaming position
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Fri, 31 Jan 2014 10:34:03 +0000
 Context node versus current streaming position
Hi Folks,

I learned something neat from Michael Kay.

I learned that context node and current streaming position are not always the
same.

Suppose the XSLT processor is streaming through an input document and has
arrived at element N. The <N> element  is the current streaming position.

Now suppose the XSLT program instructs the XSLT processor: from your current
streaming position climb the XML tree and return the name of each ancestor
element:

	<xsl:for-each select="ancestor::*">
	    <xsl:value-of select="name(.)" />
	</xsl:for-each>

The context position changes with each iteration of the for-each statement.
But the current streaming position remains the same.

This is a key concept!

/Roger

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-2013 All Rights Reserved.