This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Generating HTML anchor link via XSL
- To: <xsl-list at mulberrytech dot com>
- Subject: Re: Generating HTML anchor link via XSL
- From: "Wayne Davis" <quietman at home dot com>
- Date: Thu, 27 Jul 2000 11:11:23 -0700
- References: <200007271340.JAA09163@mulberrytech.com>
- Reply-To: xsl-list at mulberrytech dot com
Eric... here's a sample of how I have this working...
The XML contains these two Elements, and the XSL first checks to see if
there is data there...
HTH
Wayne Davis
www.quietech.com
quietman@home.com
*************************************************************
<xsl:if test="EMAIL[.!='']">
<a>
<xsl:attribute name="href">mailto:<xsl:value-of select="EMAIL"/>
</xsl:attribute>
<li><font face="Arial" size="2" color="aqua">
<xsl:value-of select="EMAIL"/></font></li>
</a>
</xsl:if>
<xsl:if test="WEB[.!='']">
<a>
<xsl:attribute name="href">http://<xsl:value-of select="WEB"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<li><font face="Arial" size="2" color="white">
<xsl:value-of select="WEB"/></font></li>
</a>
</xsl:if>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list