[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: variable question
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[@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|