2 <!--#############################################################################
3 |- #############################################################################
6 + ############################################################################## -->
9 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
11 exclude-result-prefixes="doc" version='1.0'>
15 <!--############################################################################# -->
16 <!-- DOCUMENTATION -->
17 <doc:reference id="sgmltag" xmlns="">
19 <releaseinfo role="meta">
22 <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
23 <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
26 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
27 <holder>Ramon Casellas</holder>
31 <title>SGML Tags <filename>sgmltag.mod.xsl</filename></title>
33 <section><title>Introduction</title>
42 <xsl:template match="sgmltag">
43 <xsl:call-template name="format.sgmltag"/>
46 <xsl:template name="format.sgmltag">
47 <xsl:param name="class">
49 <xsl:when test="@class">
50 <xsl:value-of select="normalize-space(@class)"/>
52 <xsl:otherwise>element</xsl:otherwise>
57 <xsl:when test="$class='attribute'">
58 <xsl:call-template name="inline.charseq"/>
60 <xsl:when test="$class='attvalue'">
61 <xsl:call-template name="inline.monoseq"/>
63 <xsl:when test="$class='element'">
64 <xsl:call-template name="inline.monoseq"/>
66 <xsl:when test="$class='endtag'">
67 <xsl:call-template name="inline.monoseq">
68 <xsl:with-param name="content">
69 <xsl:text></</xsl:text>
70 <xsl:apply-templates/>
71 <xsl:text>></xsl:text>
75 <xsl:when test="$class='genentity'">
76 <xsl:call-template name="inline.monoseq">
77 <xsl:with-param name="content">
78 <xsl:text>\&</xsl:text>
79 <xsl:apply-templates/>
80 <xsl:text>;</xsl:text>
84 <xsl:when test="$class='numcharref'">
85 <xsl:call-template name="inline.monoseq">
86 <xsl:with-param name="content">
87 <xsl:text>\&\#</xsl:text>
88 <xsl:apply-templates/>
89 <xsl:text>;</xsl:text>
93 <xsl:when test="$class='paramentity'">
94 <xsl:call-template name="inline.monoseq">
95 <xsl:with-param name="content">
96 <xsl:text>\%</xsl:text>
97 <xsl:apply-templates/>
98 <xsl:text>;</xsl:text>
102 <xsl:when test="$class='pi'">
103 <xsl:call-template name="inline.monoseq">
104 <xsl:with-param name="content">
105 <xsl:text><?</xsl:text>
106 <xsl:apply-templates/>
107 <xsl:text>?></xsl:text>
111 <xsl:when test="$class='xmlpi'">
112 <xsl:call-template name="inline.monoseq">
113 <xsl:with-param name="content">
114 <xsl:text><?</xsl:text>
115 <xsl:apply-templates/>
116 <xsl:text>?></xsl:text>
120 <xsl:when test="$class='starttag'">
121 <xsl:call-template name="inline.monoseq">
122 <xsl:with-param name="content">
123 <xsl:text><</xsl:text>
124 <xsl:apply-templates/>
125 <xsl:text>></xsl:text>
129 <xsl:when test="$class='emptytag'">
130 <xsl:call-template name="inline.monoseq">
131 <xsl:with-param name="content">
132 <xsl:text><</xsl:text>
133 <xsl:apply-templates/>
134 <xsl:text>/></xsl:text>
138 <xsl:when test="$class='sgmlcomment'">
139 <xsl:call-template name="inline.monoseq">
140 <xsl:with-param name="content">
141 <xsl:text><!--</xsl:text>
142 <xsl:apply-templates/>
143 <xsl:text>--></xsl:text>
148 <xsl:call-template name="inline.charseq"/>