Tempore 18:24:34, die Monday 28 February 2005 AD, hinc in foro {comp.text.xml} scripsit Zhou Lei <da*********@hotmail.com>:
<user login="loginname">
<name>James Cook</name>
</user>
I need to include the login attribute value in my target HTML file, and
concatenate the value with @my.addr.com. So my target HTML code will be
<a href="mailto:lo*******@my.addr.com">
James Cook
</a>
You can use:
a) an attribute value template:
<xsl:template match="user">
<a href="mailto:{@lo****@my.addr.com">
<xsl:apply-templates/>
</a>
</xsl:template>
or b)explicit attribute node creation:
<xsl:template match="user">
<a>
<xsl:attribute name="href">
<xsl:text>mailto:</xsl:text>
<xsl:apply-templates select="@login"/>
<xsl:text>@my.addr.com</xsl:text>
</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
regards,
--
Joris Gillis (
http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
Fiat W3C in tenebris