getXSLVariables | R Documentation |
This function allows an R function invoked from an XSL template to query the current value of one or more top-level XSL parameters or global variables that are defined in the XSL style sheet(s). These parameters can be set by the caller and have default values set in the style sheets.
This can only be called during an XSL transformation and by an R
function that has access to the XMLXPathParserContext-class
associated with the XSL transformation.
getXSLVariables(ctxt, vars, uris = names(vars),
nsDefs = xmlNamespaceDefinitions(as(ctxt, "XMLInternalDocument"), simplify = TRUE))
ctxt |
an |
vars |
the names of the variables of interest.
These can have a name space prefix qualifying them, e.g
r:verbose.
The name space has to be resolved either via the |
uris |
a character vector giving the prefixes of the namespaces of the variables being requested. |
nsDefs |
a character vector giving namespace prefix mappings to the corresponding URIs |
A named character vector with the values.
Duncan Temple Lang
XSL
xsltApplyStyleSheet
registerXSLFunction
XSLTContextFunction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.