Added support for MINIX 3, contributed by Erik van der Kouwe.
[nedit.git] / doc / faq-txt-pass2.xsl
blob27867ba1abce6f266071a67953de91bdedfbad1f
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2 version="1.0"
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"/>
15 <xsl:text>
16 PREFIXED</xsl:text>
17 <xsl:apply-templates>
18 <xsl:with-param name="indent"><xsl:value-of select="$indent"/></xsl:with-param>
19 </xsl:apply-templates>
20 <xsl:text>NOT_PREFIXED
21 </xsl:text>
22 </xsl:template>
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>
30 </xsl:template>
34 <xsl:template match="P">
35 <xsl:param name="indent"/>
36 <xsl:text>
37 </xsl:text>
38 <xsl:apply-templates>
39 <xsl:with-param name="indent"><xsl:value-of select="$indent"/></xsl:with-param>
40 </xsl:apply-templates>
41 <xsl:text>
42 </xsl:text>
43 </xsl:template>
47 <xsl:template match="UL">
48 <xsl:param name="indent"/>
49 <xsl:text>
50 </xsl:text>
51 <xsl:apply-templates>
52 <xsl:with-param name="indent"><xsl:value-of select="$indent"/></xsl:with-param>
53 </xsl:apply-templates>
54 <xsl:text>
55 </xsl:text>
56 </xsl:template>
61 <xsl:template match="H1">
62 <xsl:text>
65 </xsl:text>
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')"/>
71 <xsl:text>
72 </xsl:text>
73 <xsl:value-of select="$underscore"/>
74 <xsl:text>
76 </xsl:text>
77 </xsl:template>
81 <xsl:template match="PRE">
82 <xsl:text>
83 PRE</xsl:text>
84 <xsl:for-each select="text()">
85 <xsl:value-of select="."/>
86 </xsl:for-each>
87 <xsl:text>NOT_PRE
88 </xsl:text>
89 </xsl:template>
95 <xsl:template match="text()">
96 <xsl:param name="indent"/>
97 <xsl:value-of select="$indent"/>
98 <xsl:value-of select="normalize-space()" />
99 </xsl:template>
101 </xsl:stylesheet>
103 <!-- $Id: faq-txt-pass2.xsl,v 1.3 2002/09/26 12:37:37 ajhood Exp $ -->