<xsl:apply-templates select="." mode="filename"/>
<xsl:text disable-output-escaping="yes">" target="foil"></xsl:text>
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:value-of select="titleabbrev"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="title"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:call-template name="string.subst">
+ <xsl:with-param name="string">
+ <xsl:choose>
+ <xsl:when test="titleabbrev">
+ <xsl:value-of select="titleabbrev"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="title"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:with-param>
+ <xsl:with-param name="target">'</xsl:with-param>
+ <xsl:with-param name="replacement">\'</xsl:with-param>
+ </xsl:call-template>
<xsl:text disable-output-escaping="yes"><\/a><\/div></xsl:text>
<xsl:text>'); </xsl:text>
<xsl:apply-templates select="." mode="filename"/>
<xsl:text disable-output-escaping="yes">" target="foil"></xsl:text>
- <xsl:choose>
- <xsl:when test="titleabbrev">
- <xsl:value-of select="titleabbrev"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="title"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:call-template name="string.subst">
+ <xsl:with-param name="string">
+ <xsl:choose>
+ <xsl:when test="titleabbrev">
+ <xsl:value-of select="titleabbrev"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="title"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:with-param>
+ <xsl:with-param name="target">'</xsl:with-param>
+ <xsl:with-param name="replacement">\'</xsl:with-param>
+ </xsl:call-template>
<xsl:text disable-output-escaping="yes"><\/a><\/div></xsl:text>
<xsl:text>'); </xsl:text>