Click to See Complete Forum and Search --> : XSL processing and links


MarkoBarko
02-19-2003, 12:07 PM
I have a list of e-mail addresses that I get from XML using:

<xsl:value-of select="email" />

That returns an email in the form:

someone@somewhere.com

Now, what I want my xsl to output is:

<a href="mailto:someone@somewhere.com">Whatever</a>

How would I do this?

Thanks a lot...

Charles
02-19-2003, 12:21 PM
<a>
&nbsp;&nbsp;&nbsp;&nbsp;<xsl:attribute name="href">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<xsl:text>mailto:</xsl:text>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<xsl:value-of select="email"/>
&nbsp;&nbsp;&nbsp;&nbsp;</xsl:attribute>
&nbsp;&nbsp;&nbsp;&nbsp;<xsl:value-of select="email"/>
</a>

MarkoBarko
02-19-2003, 12:27 PM
Thanks a lot. Appreciate the quick response...works great.