Mercurial > touhou-doc
diff 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 |
line wrap: on
line diff
--- a/html.xsl +++ b/html.xsl @@ -98,7 +98,7 @@ <x:template match="o:desc"> <x:choose> - <x:when test="o:p"> + <x:when test="count(*) > 1"> <x:apply-templates/> </x:when> <x:otherwise> @@ -113,21 +113,25 @@ </x:copy> </x:template> - <x:template match="o:p"> - <p><x:apply-templates/></p> - </x:template> + <x:template match="o:p"><p><x:apply-templates/></p></x:template> + <x:template match="o:pre"><pre><x:apply-templates/></pre></x:template> + <x:template match="o:br"><br/></x:template> - <x:template match="o:br"> - <br/> - </x:template> + <x:template match="o:dl"><dl><x:apply-templates/></dl></x:template> + <x:template match="o:dt"><dt><x:apply-templates/></dt></x:template> + <x:template match="o:dd"><dd><x:apply-templates/></dd></x:template> - <x:template match="o:ol"> - <ol><x:apply-templates/></ol> - </x:template> + <x:template match="o:table"><table><x:apply-templates/></table></x:template> + <x:template match="o:tr"><tr><x:apply-templates/></tr></x:template> + <x:template match="o:th"><th><x:apply-templates/></th></x:template> + <x:template match="o:td"><td><x:apply-templates/></td></x:template> - <x:template match="o:li"> - <li><x:apply-templates/></li> - </x:template> + <x:template match="o:ol"><ol><x:apply-templates/></ol></x:template> + <x:template match="o:li"><li><x:apply-templates/></li></x:template> + + <x:template match="o:a"><a href="{@href}"><x:apply-templates/></a></x:template> + <x:template match="o:code"><code><x:apply-templates/></code></x:template> + <x:template match="o:sup"><sup><x:apply-templates/></sup></x:template> <x:template match="o:stage"> <x:text>stage </x:text><x:value-of select="."/>