This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Turning on/off href's
- To: xsl-list at mulberrytech dot com
- Subject: Re: Turning on/off href's
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 11 Jul 2000 00:18:40 +0100 (BST)
- References: <396A46DE.32EA179F@sportsmvp.com>
- Reply-To: xsl-list at mulberrytech dot com
<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