xsltGetXMLSourceNode: Get the active nodes in the XSL process

View source: R/context.R

xsltGetXMLSourceNodeR Documentation

Get the active nodes in the XSL process

Description

These functions allow us to query the currently active nodes being processed in the XSL transformation. We can get the node in the XML document that is being transformed and also the node in the XSL transformation that is performing the transformation.

Usage

xsltGetXMLSourceNode(context)

Arguments

context

an object of class XMLXPathParserContext which can only be (legitimately) obtained as the first argument in a call from XSL to an R function which inherits from the S3 class XSLTContextFunction.

Value

An object of class XMLInternalNode.

These objects should not be stored after the function returns. They may/will be garbage collected at some point in the future and become invalid.

Author(s)

Duncan Temple Lang

See Also

registerXSLFunction XSLTContextFunction


omegahat/Sxslt documentation built on Jan. 17, 2024, 6:44 p.m.