|
[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?
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/
|
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
|

Cart








