File: html.xsl

package info (click to toggle)
snapper 0.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,576 kB
  • ctags: 2,049
  • sloc: cpp: 15,605; sh: 11,424; ansic: 1,401; makefile: 287; python: 159
file content (21 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (6)
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" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>

  <xsl:output indent="yes"/>

  <!-- Turn citerefentry elements into HTML links -->
  <xsl:param name="citerefentry.link" select="1"/>

  <!-- But not for those with role=nolink -->
  <xsl:template match="citerefentry[@role='nolink']">
    <xsl:call-template name="inline.charseq"/>
  </xsl:template>

  <!-- Code to generate the URL for a given citerefentry element -->
  <xsl:template name="generate.citerefentry.link">
    <xsl:value-of select="refentrytitle"/>
    <xsl:text>.html</xsl:text>
  </xsl:template>

</xsl:stylesheet>