<!-- These stylesheets should be included (in your customization layer
or elsewhere) only if you want to use the XSLTHL highlighting tool
<xsl:include href="../highlighting/common.xsl"/>
-<xsl:include href="highlight.xsl"/>-->
+<xsl:include href="highlight.xsl"/>
+ ... and the next apply-highlighting template should be deleted-->
+<xsl:template name="apply-highlighting">
+ <xsl:apply-templates/>
+</xsl:template>
<lxslt:component prefix="xverb"
functions="numberLines"/>
and $linenumbering.extension != '0'">
<xsl:call-template name="number.rtf.lines">
<xsl:with-param name="rtf">
- <xsl:call-template name="apply-highlighting"/>
+ <xsl:choose>
+ <xsl:when test="$highlight.source != 0">
+ <xsl:call-template name="apply-highlighting"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
- <xsl:call-template name="apply-highlighting"/>
+ <xsl:choose>
+ <xsl:when test="$highlight.source != 0">
+ <xsl:call-template name="apply-highlighting"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
and $use.extensions != '0'
and $linenumbering.extension != '0'">
<xsl:variable name="rtf">
- <xsl:call-template name="apply-highlighting"/>
+ <xsl:choose>
+ <xsl:when test="$highlight.source != 0">
+ <xsl:call-template name="apply-highlighting"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:variable>
<pre>
<xsl:apply-templates select="." mode="class.attribute"/>
<xsl:otherwise>
<pre>
<xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:call-template name="apply-highlighting"/>
+ <xsl:choose>
+ <xsl:when test="$highlight.source != 0">
+ <xsl:call-template name="apply-highlighting"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
+ </xsl:choose>
</pre>
</xsl:otherwise>
</xsl:choose>