Commit eeec22d7 authored by qaomia's avatar qaomia

fixes in xsl

parent 689bb604
......@@ -16,9 +16,7 @@
</p>
</xsl:template>
<xsl:template match="li/br">
<p>
<xsl:apply-templates select="key('bits', generate-id())"/>
</p>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="strong">
<em>
......
......@@ -4,7 +4,7 @@
xmlns="http://www.utc.fr/ics/hdoc/xhtml" version="2.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="html">
<xsl:template match="html" priority="3">
<html>
<head>
<title>
......@@ -22,21 +22,8 @@
</body>
</html>
</xsl:template>
<xsl:template match="div/p | div/p" priority="1">
<xsl:choose>
<xsl:when test="ul">
<xsl:apply-templates/>
</xsl:when>
<xsl:when test="ol">
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<p><xsl:apply-templates select="@* | node()"/></p>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="li" priority = "1">
<xsl:template match="li" priority = "2">
<li><p><xsl:apply-templates select="@* | node()"/></p></li>
</xsl:template>
......@@ -53,7 +40,7 @@
-->
<!-- Namespace substitution for hdoc elements -->
<xsl:template match="*">
<xsl:template match="*" priority="1">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="node()|@*"/>
</xsl:element>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment