These functions allow us to query the XSL transformation context to
get a reference object in R to the style sheet DOM, the input XML
document of the XSL transformation, or the output DOM being
constructed.. This allows us then to use XPath expressions to
access different nodes within these documents, identifying templates
in the XSL document, or getting nodes and node sets for use in R
calculations to create output in the target document. These allow
us to manipulate all of the inputs from within R rather than relying
on XSL operations and can be used from within an R function called
by an XSL template. Such functions need to the XMLXPathParserContext
object associated with the XSL transformation. This is passed as the
first argument for any R function which has an S3 class named
1 2 3
An object of class
which can be used in calls to
and whose root node can be accessed
and the resulting tree navigated.
Duncan Temple lang
For an example, see applyTemplates.R, applyTemplates.xsl and applyTemplates.xml.
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.