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

RE: Start and end an anchor tag in 2 different if's?

Subject: RE: Start and end an anchor tag in 2 different if's?
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Tue, 05 Oct 2004 16:18:27 +0000
xslt anchor
No, this is certainly not possible (and not neccessary either).

In your case both if-sentences are equal, but what if this was not the case? Then the output would not be wellformed.

I am actually not quite sure what you want to accomplish.

Try this out, and see if it works for you:

<xsl:variable name="Something">
     <xsl:choose>
       <xsl:when test="substring(full_name,1,6) = 'Vacant'">
         <xsl:value-of select="'Vacant'" />
       </xsl:when>
       <xsl:otherwise>
         <xsl:value-of select="full_name" />
       </xsl:otherwise>
     </xsl:choose>
</xsl:variable>

<xsl:choose>
<xsl:when test="district_active='1'">
<a href="LegislatorEdit.asp?lid={legislator_id}&amp;lstat={$lstat}"&amp;dtype={$dtype}&amp;dno={$dno}">
<xsl:value-of select="$Something"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$Something"/>
</xsl:otherwise>
</xsl:choose>


Regards,
Ragulf Pickaxe :-)

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


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.