|
Home > Online Product Documentation > Table of Contents > Obtaining the Current Node for the Current XSLT Template Obtaining the Current Node for the Current XSLT Template
In a stylesheet, the current node is the node for which the XSLT processor instantiates a template. When the XPath processor evaluates an expression during stylesheet processing, the initial context node for the expression is set to the current node for the stylesheet instruction that contains the expression. Because the context node can change during evaluation of subexpressions, it is useful to be able to retrieve, from within a subexpression, the original context node for which the expression is being evaluated. You can use the
The
For example, the following stylesheet causes the XSLT processor to pass the
The
The
Suppose the
In a query, the dot specifies the context node. This query would return a
You can nest
|
XML Videos
Stylus Studio online XML video demonstrations illustrate how easy it is to learn advanced XML editing techniques. Now playing: Java Code Generation, Convert to XML, Grid View, and many other informative video demonstrations.
EDIFACT Sample Converted to XML
A sample EDIFACT document before and after conversion to XML, showing markup and full automatically-generated internal documentation.
XML-DEV Blog
Join the XML Development discussion at XML-Dev - the hottest place to talk about XML technologies, trends, systems architecture and all the latest buzz. Bookmark this RSS and ATOM feed now!
Why XQuery - The Case for XQuery
Read "The Case for XQuery" - an article that debuted in the November 2005 issue of SOA WebServices Journal, written by Jerry King, Vice President of DataDirect Technologies.