Debian Codegraph @

daps-xslt/asciidoc/setify.xsl

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 -->
5 <xsl:stylesheet version="1.0"
6 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 xmlns:d="http://docbook.org/ns/docbook"
8 xmlns="http://docbook.org/ns/docbook"
9 >
10
11 <xsl:template match="node() | @*">
12 <xsl:copy>
13 <xsl:apply-templates select="@* | node()"/>
14 </xsl:copy>
15 </xsl:template>
16
17 <xsl:template match="/d:book">
18 <set>
19 <xsl:copy-of select="@*"/>
20 <xsl:apply-templates/>
21 </set>
22 </xsl:template>
23
24 <xsl:template match="/d:book/d:part">
25 <book>
26 <xsl:copy-of select="@*"/>
27 <xsl:apply-templates/>
28 </book>
29 </xsl:template>
30
31 <xsl:template match="/d:book/d:part/d:partintro">
32 <colophon>
33 <xsl:copy-of select="@*"/>
34 <xsl:apply-templates/>
35 </colophon>
36 </xsl:template>
37
38
39 <!--
40 <xsl:template match="/d:book/d:chapter">
41 <book>
42 <xsl:copy-of select="@*"/>
43 <xsl:apply-templates/>
44 </book>
45 </xsl:template>
46
47 <xsl:template match="/d:book/d:chapter/d:section">
48 <chapter>
49 <xsl:copy-of select="@*"/>
50 <xsl:apply-templates/>
51 </chapter>
52 </xsl:template>
53
54 <xsl:template match="/d:book/d:chapter/*[not(self::d:title or self::d:subtitle or self::d:sect1 or self::d:info)]">
55 <preface>
56 <xsl:copy-of select="@*"/>
57 <xsl:apply-templates/>
58 </preface>
59 </xsl:template>
60 -->
61
62 <!--
63 <xsl:template match="/d:book/d:chapter/d:simpara|/d:book/d:chapter/d:para">
64 <preface>
65 <xsl:copy-of select="@*"/>
66 <para>
67 <xsl:apply-templates/>
68 </para>
69 </preface>
70 </xsl:template>
71 -->
72 </xsl:stylesheet>