/usr/lib/R/site-library/XML/examples/formals.xsl is in r-cran-xml 3.98-1.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!--
<xsl:template match="*">
x
</xsl:template>
-->
<!--
What we want here is a way of only extracting the arguments
-->
<xsl:template match="[not(usage)]">
other
</xsl:template>
<xsl:template match="next">, </xsl:template>
<!-- /Rhelp/usage/arg -->
<xsl:template match="defaultValue"> = <xsl:value-of select="." /></xsl:template>
<!-- need to get the commas into this. So we use the <next> tag.
/Rhelp/usage/
-->
<xsl:template match="arg">
<xsl:value-of select="argName"/><xsl:apply-templates select="defaultValue"/><xsl:apply-templates select="next"/>
</xsl:template>
<xsl:template match="//usage">
<xsl:value-of select="sname" />(<xsl:apply-templates select="arg | next" />)
</xsl:template>
</xsl:stylesheet>
|