[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: variable question

Subject: Re: variable question
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Sun, 29 Aug 2004 12:44:45 -0400
xsl call template select
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.