<xsl:variable name="bef-s" select="substring-before($template, '%s')"/>
<xsl:variable name="bef-t" select="substring-before($template, '%t')"/>
+<!--
+ <xsl:message>
+ <xsl:text>sm: </xsl:text>
+ <xsl:value-of select="name(.)"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$allow-anchors"/>
+ </xsl:message>
+-->
+
<xsl:choose>
<!-- n=1 -->
<xsl:when test="starts-with($template, '%n')">
<xsl:apply-templates select="." mode="label.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%n')"/>
</xsl:call-template>
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%t')"/>
</xsl:call-template>
<xsl:when test="starts-with($template, '%s')">
<xsl:apply-templates select="." mode="subtitle.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%s')"/>
</xsl:call-template>
<xsl:value-of select="$bef-n"/>
<xsl:apply-templates select="." mode="label.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%n')"/>
</xsl:call-template>
<xsl:value-of select="$bef-s"/>
<xsl:apply-templates select="." mode="subtitle.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%s')"/>
</xsl:call-template>
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%t')"/>
</xsl:call-template>
<xsl:value-of select="$bef-n"/>
<xsl:apply-templates select="." mode="label.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%n')"/>
</xsl:call-template>
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%t')"/>
</xsl:call-template>
<xsl:value-of select="$bef-n"/>
<xsl:apply-templates select="." mode="label.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%n')"/>
</xsl:call-template>
<xsl:value-of select="$bef-s"/>
<xsl:apply-templates select="." mode="subtitle.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%s')"/>
</xsl:call-template>
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%t')"/>
</xsl:call-template>
<xsl:value-of select="$bef-s"/>
<xsl:apply-templates select="." mode="subtitle.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%s')"/>
</xsl:call-template>
<xsl:value-of select="$bef-n"/>
<xsl:apply-templates select="." mode="label.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%n')"/>
</xsl:call-template>
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
</xsl:apply-templates>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%t')"/>
</xsl:call-template>
<xsl:value-of select="$bef-s"/>
<xsl:apply-templates select="." mode="subtitle.markup"/>
<xsl:call-template name="substitute-markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:with-param name="template"
select="substring-after($template, '%s')"/>
</xsl:call-template>