File: rhelp.xsl

package info (click to toggle)
r-cran-xml 3.99-0.18-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,688 kB
  • sloc: ansic: 6,656; xml: 2,890; asm: 486; sh: 12; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
       version="1.0">

<!--
 Search in the tags below literate for top-level function
 tags for which the language attribute is "R".
 In that, we extract the documentation segment.
-->
<xsl:template match="arg">
 <xsl:value-of select="." /> 
  <xsl:if test="[@defaultValue]">
    <xsl:text> = value</xsl:text>
  </xsl:if>
</xsl:template> 
<xsl:template match="/Rhelp">
  <xsl:apply-templates select="usage" /> 
</xsl:template>

</xsl:stylesheet>