|
Subject: RE: [xsl] Start and end an anchor tag in 2 different if's? From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Tue, 5 Oct 2004 17:21:30 +0100 |
This is equivalent to
> <xsl:if test="district_active='1'">
> <a>
> <xsl:attribute name="href">stuff</xsl:attribute>
> <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>
</a>
> </xsl:if>
In 2.0 it reduces to:
> <xsl:if test="district_active='1'">
> <a href="stuff">
<xsl:value-of select="
if (substring(full_name,1,6) = 'Vacant')
then 'Vacant' else full_name"/>
</a>
</xsl:if>
Michael Kay
http://www.saxonica.com/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Start and end an anchor t, JBryant | Thread | Re: [xsl] Start and end an anchor t, Werner, Wolfgang |
| Re: [xsl] Start and end an anchor t, Werner, Wolfgang | Date | Re: [xsl] Re: [xslt transform & gro, David Carlisle |
| Month |