File: strip-manpages.xsl

package info (click to toggle)
gupnp 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,044 kB
  • ctags: 2,492
  • sloc: ansic: 15,209; sh: 4,223; xml: 1,253; python: 416; makefile: 298
file content (15 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version='1.0'?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
  <xsl:template match="refentry">
    <xsl:if test="number(refmeta/manvolnum) = 1">
      <xsl:copy-of select = "." />
    </xsl:if>
  </xsl:template>

  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>