xsltCallTemplate | R Documentation |
This function allows the R programmer to identify and invoke an XSL template on a particular XML node, passing parameters in the invocation that can be used to customize the behavior of the template. The template can be identified as a node or by name or XPath query string.
xsltCallTemplate(ctx, node, template, ..., .params = list(...))
ctx |
the |
node |
the |
template |
the template which is to be called.
This can be an |
... |
one or more named parameter values
which are passed in the call as |
.params |
a list of the named parameter values. This is the programmatic version of ... which facilitates passing the values when they are computed rather than specified manually/interactively in the call. |
This calls libxslt's xsltCallTemplate, but does a lot of work to construct the pre-compiled information for the templates.
NULL
.
The purpose of calling this function is for the side effect
of creating content in the target/output document being
generated by the XSL transformation.
Duncan Temple Lang
http://www.w3.org/Style/XSL http://www.xmlsoft.org/XSLT
addXSLTFunctions
xsltContextFunction
xsltApplyStyleSheet
For an example, see applyTemplates.R, applyTemplates.xsl and applyTemplates.xml in the examples directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.