
September 11th, 2001, 12:45 AM
|
|
Junior Member
|
|
Join Date: Sep 2001
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
how to make an active email link with XSLT
Hi
XML with XSLT to HTML
I am trying to make an email link active. Like this:
<a href="mailto:me@home.com">me@home.com</a>
Markup in the XML file:
<bookauthor email="me@home.com">
This doesn't work.
XSLT file:
<xsl:template match="/bookstore/book/bookauthor">
<xsl:for-each select="@email">
<xsl:variable name="email">
<xsl:value-of select="."/>
</xsl:variable>
<a href="mailto:<xsl:value-of select="$email" />"><xsl:value-of select="$email" /></a>
</xsl:for-each>
</xsl:template>
I get <a mailto:$email>me@home.com</a>
Help!
Thankz for any assistance!
Beth
|