This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Generating HTML anchor link via XSL


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]