Re: Turning on/off href's

Subject: Re: Turning on/off href's
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 11 Jul 2000 00:18:40 +0100 (BST)
<xsl:choose>
 <xsl:when test="@id">
   <a href="XMLServelet?Page={@id}"><xsl:value-of select="."/></a>
 </xsl:when>
 <xsl:otherwise>
   <xsl:value-of select="."/>
 </xsl:otherwise>
</xsl:choose>

Note that if your DTD declares you id attribute to be of type ID
then you can not use values of the form 1 2 3 they have to start with
a letter.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread