Open AlanInTsukuba opened 3 months ago
In trying to add parameters to xml_xslt, I learned that the params list must be coerced to type character.
To supply a value for the parameter 'viafrversion' in the xslt stylesheet,
<xsl:param name="version" />
the following R code generates an error:
v <-list(version=utils::packageVersion(pkg)) result <- xslt::xml_xslt(xml, xslt, params =v )
The following code works:
v <-list(version=as.character(utils::packageVersion(pkg))) result <- xslt::xml_xslt(xml, xslt, params =v )
In trying to add parameters to xml_xslt, I learned that the params list must be coerced to type character.
To supply a value for the parameter 'viafrversion' in the xslt stylesheet,
the following R code generates an error:
The following code works: