Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.7
-
None
-
Normal
Description
template for span-element traverses to children elements via xsl:apply-templates TWICE!
once in xsl:choose, than outside
thus producing doubling the content of span.
::
<xsl:template match="span">
<xsl:choose>
<!-- ... -->
<xsl:otherwise>
<!-- Strip -->
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="./*"/>
</xsl:template>
once in xsl:choose, than outside
thus producing doubling the content of span.
::
<xsl:template match="span">
<xsl:choose>
<!-- ... -->
<xsl:otherwise>
<!-- Strip -->
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="./*"/>
</xsl:template>