1 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
3 xmlns:
xt=
"http://www.jclark.com/xt"
4 extension-element-prefixes=
"xt">
6 <xsl:output method=
"html" indent=
"yes" />
7 <xsl:output doctype-system=
"faq-txt.dtd" />
9 <xsl:template name=
"hier"
10 ><xsl:if test=
"local-name(.) != ''"
11 ><xsl:for-each select=
".."
12 ><xsl:call-template name=
"hier"
15 ><xsl:value-of select=
"local-name()"
20 <xsl:template match=
"/">
22 <xsl:apply-templates />
29 <xsl:template match=
"head">
30 <xsl:apply-templates select=
"title"/>
31 <xsl:apply-templates select=
"version"/>
32 <xsl:apply-templates select=
"summary"/>
33 <xsl:apply-templates select=
"maintainers"/>
36 <xsl:template match=
"version">
37 <P>Version
<xsl:value-of select=
"."/></P>
41 <xsl:template match=
"maintainers">
42 <P>FAQ Maintainers:
<xsl:apply-templates/></P>
47 <xsl:template match=
"maintainer">
48 <xsl:value-of select=
"name"/> (
<xsl:value-of select=
"email"/>)
51 <xsl:template match=
"download">
52 <!-- don't display this section -->
58 <xsl:template match=
"title">
60 <xsl:attribute name=
"node">
61 <xsl:call-template name=
"hier"/>
63 <xsl:apply-templates/>
68 <xsl:template match=
"qna">
70 <xsl:when test=
"long-q">
72 <xsl:apply-templates select=
"long-q"/>
77 <xsl:apply-templates select=
"q"/>
81 <xsl:apply-templates select=
"a"/>
86 <xsl:template match=
"q">
88 <xsl:attribute name=
"node">
89 <xsl:call-template name=
"hier"/>
91 <xsl:attribute name=
"id"><xsl:value-of select=
"generate-id()"/></xsl:attribute>
92 <xsl:apply-templates/>
99 <xsl:template match=
"p">
101 <xsl:attribute name=
"node">
102 <xsl:call-template name=
"hier"/>
104 <xsl:attribute name=
"id"><xsl:value-of select=
"generate-id()"/></xsl:attribute>
106 <P><xsl:apply-templates/></P>
109 <xsl:template match=
"pre">
111 <xsl:attribute name=
"node">
112 <xsl:call-template name=
"hier"/>
114 <xsl:attribute name=
"id"><xsl:value-of select=
"generate-id()"/></xsl:attribute>
116 <PRE><xsl:apply-templates/></PRE>
119 <xsl:template match=
"ul|ol">
121 <xsl:attribute name=
"node">
122 <xsl:call-template name=
"hier"/>
124 <xsl:attribute name=
"id"><xsl:value-of select=
"generate-id()"/></xsl:attribute>
126 <BLOCKQUOTE><xsl:apply-templates/></BLOCKQUOTE>
129 <xsl:template match=
"li">
131 <xsl:attribute name=
"node">
132 <xsl:call-template name=
"hier"/>
134 <xsl:attribute name=
"id"><xsl:value-of select=
"generate-id()"/></xsl:attribute>
136 <UL>*
<xsl:apply-templates/></UL>
141 <xsl:template match=
"blockquote">
143 <xsl:attribute name=
"node">
144 <xsl:call-template name=
"hier"/>
146 <xsl:attribute name=
"id"><xsl:value-of select=
"generate-id()"/></xsl:attribute>
148 <BLOCKQUOTE><xsl:apply-templates/></BLOCKQUOTE>
156 <!-- style and link elements -->
158 <xsl:template match=
"img">
159 [
<xsl:value-of select=
"alt"/>]
162 <xsl:template match=
"link">
163 <xsl:apply-templates/>
164 <xsl:text> (
</xsl:text>
165 <xsl:value-of select=
"@href"/>
166 <xsl:text>)
</xsl:text>
169 <xsl:template match=
"code">
170 <xsl:text>'
</xsl:text>
171 <xsl:apply-templates/>
172 <xsl:text>'
</xsl:text>
175 <xsl:template match=
"em">
176 <xsl:text>'
</xsl:text>
177 <xsl:apply-templates/>
178 <xsl:text>'
</xsl:text>
185 <!-- $Id: faq-txt.xsl,v 1.3 2002/09/26 12:37:37 ajhood Exp $ -->