XSLT - (Current) Context

Card Puncher Data Processing

Context

The context in XSL (ie the node where you are)

The context can be considered as:

Xsl File System Tips
a set of nodes a directory
a single member of the set a file The context can also be considered as a single member of the set, as each member is processed one by one.

For example, the expression LIST\@type refers to the type attribute of the current LIST node.

From the current context, other expressions in the template are evaluated.

The context can be change with the following Xsl function using an Xpath expression:

<xsl:template match="/">
<xsl:for-each select="$resultPath/resultFiles/resultFile">





Discover More
Card Puncher Data Processing
(XSLT|XPATH|XQUERY) - Function

Xpath Functions return a string, a number, or a Boolean value. For example, the expression /PROJECT/text() gets the string-value of PROJECT nodes. Many functions depend on the current context. In the...
Card Puncher Data Processing
XPATH - (Node) Attribute (@)

In a template, the expression @type refers to the type attribute of the current node. Similarly, the expression @ refers to all the attributes for the current element. To refer to an attribute, you prefix...
Card Puncher Data Processing
XSLT - Templates

an some other tag, or whitespace. HTML outputs the HTML start tags, processes any templates that apply to children of the root, and then outputs the HTML end tags.



Share this page:
Follow us:
Task Runner