File: manpage.xsl

package info (click to toggle)
lirc 0.10.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 8,364 kB
  • sloc: ansic: 26,717; cpp: 9,066; sh: 5,521; python: 4,362; makefile: 1,034; xml: 63
file content (30 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
  />

  <!-- When copying <p>, include attributes. -->
  <xsl:template match="p">
    <p>
      <xsl:copy-of select="@*|b/@*" />
      <xsl:apply-templates />
    </p>
  </xsl:template>

  <!-- Wrap <dt> in <div> so we can apply css margins. -->
  <xsl:template match="dt" >
    <div><dt>
    <xsl:copy-of select="@*|b/@*" />
    <xsl:apply-templates />
    </dt></div>
  </xsl:template>

  <!-- Kill the original <head> -->
  <xsl:template match="head"/>

  <!-- Use the standard page layout -->
  <xsl:include href="page.xsl"/>
</xsl:stylesheet>