root/trunk/manuals/refman/refman.xsl

Revision 3089, 1.6 KB (checked in by pmoura, 2 years ago)

Changes to allow easier generation of a PDF version of the Reference Manual.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<xsl:stylesheet
3    version="1.0"
4    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5    xmlns:xhtml="http://www.w3.org/1999/xhtml">
6
7<xsl:output
8    method="xml"
9    indent="yes"
10    encoding="utf-8"
11    omit-xml-declaration="yes"/>
12
13<xsl:template match="node()|@*">
14    <xsl:copy>
15        <xsl:apply-templates select="node()|@*"/>
16    </xsl:copy>
17</xsl:template>
18
19<xsl:template match="xhtml:html">
20        <xsl:apply-templates select="node()|@*"/>
21</xsl:template>
22
23<xsl:template match="xhtml:head">
24</xsl:template>
25
26<xsl:template match="xhtml:body">
27        <xsl:apply-templates select="node()|@*"/>
28</xsl:template>
29
30<xsl:template match="xhtml:div[@class='top-right']">
31    <div class="top-right"> 
32        <span class="chapter"/> 
33    </div>
34</xsl:template>
35
36<xsl:template match="xhtml:div[@class='footer']">
37</xsl:template>
38
39<xsl:template match="xhtml:h1/xhtml:a[@id]">
40    <span>
41        <xsl:attribute name="id">
42            <xsl:value-of select="@id"/>
43        </xsl:attribute> 
44        <xsl:value-of select="."/>
45    </span>
46</xsl:template>
47
48<xsl:template match="xhtml:h2/xhtml:a[@id]">
49    <span>
50        <xsl:attribute name="id">
51            <xsl:value-of select="@id"/>
52        </xsl:attribute> 
53        <xsl:value-of select="."/>
54    </span>
55</xsl:template>
56
57<xsl:template match="xhtml:h3/xhtml:a[@id]">
58    <span>
59        <xsl:attribute name="id">
60            <xsl:value-of select="@id"/>
61        </xsl:attribute> 
62        <xsl:value-of select="."/>
63    </span>
64</xsl:template>
65
66<xsl:template match="xhtml:h4/xhtml:a[@id]">
67    <span>
68        <xsl:attribute name="id">
69            <xsl:value-of select="@id"/>
70        </xsl:attribute> 
71        <xsl:value-of select="."/>
72    </span>
73</xsl:template>
74
75</xsl:stylesheet>
Note: See TracBrowser for help on using the browser.