comparison html.xsl @ 12:79dfd9765a67

I *really* should commit more often.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 04 Oct 2011 11:45:04 +0200
parents b3644dff344c
children 2925b0e246c6
comparison
equal deleted inserted replaced
11:9f0e37b7eeab 12:79dfd9765a67
96 </x:choose> 96 </x:choose>
97 </x:template> 97 </x:template>
98 98
99 <x:template match="o:desc"> 99 <x:template match="o:desc">
100 <x:choose> 100 <x:choose>
101 <x:when test="o:p"> 101 <x:when test="count(*) &gt; 1">
102 <x:apply-templates/> 102 <x:apply-templates/>
103 </x:when> 103 </x:when>
104 <x:otherwise> 104 <x:otherwise>
105 <p><x:apply-templates/></p> 105 <p><x:apply-templates/></p>
106 </x:otherwise> 106 </x:otherwise>
111 <x:copy> 111 <x:copy>
112 <x:apply-templates select="node() | @*" /> 112 <x:apply-templates select="node() | @*" />
113 </x:copy> 113 </x:copy>
114 </x:template> 114 </x:template>
115 115
116 <x:template match="o:p"> 116 <x:template match="o:p"><p><x:apply-templates/></p></x:template>
117 <p><x:apply-templates/></p> 117 <x:template match="o:pre"><pre><x:apply-templates/></pre></x:template>
118 </x:template> 118 <x:template match="o:br"><br/></x:template>
119 119
120 <x:template match="o:br"> 120 <x:template match="o:dl"><dl><x:apply-templates/></dl></x:template>
121 <br/> 121 <x:template match="o:dt"><dt><x:apply-templates/></dt></x:template>
122 </x:template> 122 <x:template match="o:dd"><dd><x:apply-templates/></dd></x:template>
123 123
124 <x:template match="o:ol"> 124 <x:template match="o:table"><table><x:apply-templates/></table></x:template>
125 <ol><x:apply-templates/></ol> 125 <x:template match="o:tr"><tr><x:apply-templates/></tr></x:template>
126 </x:template> 126 <x:template match="o:th"><th><x:apply-templates/></th></x:template>
127 <x:template match="o:td"><td><x:apply-templates/></td></x:template>
127 128
128 <x:template match="o:li"> 129 <x:template match="o:ol"><ol><x:apply-templates/></ol></x:template>
129 <li><x:apply-templates/></li> 130 <x:template match="o:li"><li><x:apply-templates/></li></x:template>
130 </x:template> 131
132 <x:template match="o:a"><a href="{@href}"><x:apply-templates/></a></x:template>
133 <x:template match="o:code"><code><x:apply-templates/></code></x:template>
134 <x:template match="o:sup"><sup><x:apply-templates/></sup></x:template>
131 135
132 <x:template match="o:stage"> 136 <x:template match="o:stage">
133 <x:text>stage </x:text><x:value-of select="."/> 137 <x:text>stage </x:text><x:value-of select="."/>
134 </x:template> 138 </x:template>
135 139