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=
"text"/>
13 <xsl:template match=
"I">
14 <xsl:param name=
"indent"/>
18 <xsl:with-param name=
"indent"><xsl:value-of select=
"$indent"/></xsl:with-param>
19 </xsl:apply-templates>
20 <xsl:text>NOT_PREFIXED
25 <xsl:template match=
"BLOCKQUOTE">
26 <xsl:param name=
"indent"/>
27 <xsl:apply-templates select=
"*">
28 <xsl:with-param name=
"indent"><xsl:value-of select=
"concat($indent, ' ')"/></xsl:with-param>
29 </xsl:apply-templates>
34 <xsl:template match=
"P">
35 <xsl:param name=
"indent"/>
39 <xsl:with-param name=
"indent"><xsl:value-of select=
"$indent"/></xsl:with-param>
40 </xsl:apply-templates>
47 <xsl:template match=
"UL">
48 <xsl:param name=
"indent"/>
52 <xsl:with-param name=
"indent"><xsl:value-of select=
"$indent"/></xsl:with-param>
53 </xsl:apply-templates>
61 <xsl:template match=
"H1">
66 <xsl:variable name=
"val"><xsl:apply-templates/></xsl:variable>
67 <xsl:variable name=
"len"><xsl:value-of select=
"string-length($val)"/></xsl:variable>
68 <xsl:variable name=
"underscore"><xsl:value-of
69 select=
"substring('----------------------------------------------------------------------', 1, $len)"/></xsl:variable>
70 <xsl:value-of select=
"translate($val, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
73 <xsl:value-of select=
"$underscore"/>
81 <xsl:template match=
"PRE">
84 <xsl:for-each select=
"text()">
85 <xsl:value-of select=
"."/>
95 <xsl:template match=
"text()">
96 <xsl:param name=
"indent"/>
97 <xsl:value-of select=
"$indent"/>
98 <xsl:value-of select=
"normalize-space()" />
103 <!-- $Id: faq-txt-pass2.xsl,v 1.3 2002/09/26 12:37:37 ajhood Exp $ -->