On Aug 29, 2004, at 11:29 AM, Michael Kay wrote:
If you want the value to depend on the context at the time you
reference the variable, then you need a function or template, not a
variable.
OK. So a good solution might be to define a simple template and then
call it, so that my titleInfo template becomes something like the
following?
<xsl:template match="mods:titleInfo[not(@type='abbreviated')]"
mode="bibliography">
<xsl:choose>
<xsl:when test="../mods:relatedItem[(_at_)type='host']">
<span class="title">
<xsl:call-template select="title-before"/>
<xsl:apply-templates select="mods:title"/>
<xsl:apply-templates select="mods:subTitle"/>
<xsl:call-template select="title-after"/>
</span>
</xsl:when>
...
</xsl:choose>
</xsl:template>
Bruce