Names to mailaddresses?

P

Peelo

Hello,

I've read a few tutorials but still can't figure out how to xsl next:

from xml:
<people>
<fname>John</fname><sname>Doe</sname><comp>Netscape</comp>
<fname>James</fname><sname>Doe</sname><comp>Sun</comp>
</people>

to html:
<a href="(e-mail address removed)">John Doe</a><br>
<a href="(e-mail address removed)">John Doe</a><br>

TIA

Peelo
 
P

Peelo

I think this works;
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="concat('mailto:', people/fname, '.', people,sname,
'@', people/comp, '.com')" />
</xsl:attribute>
<xsl:value-of select="concat(people/fname, ' ', people,sname" /><br/>
</xsl:element>

Replying to myself,

Peelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top