473,396 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Names to mailaddresses?

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="jo******@netscape.com">John Doe</a><br>
<a href="ja*******@sun.com">John Doe</a><br>

TIA

Peelo
Jul 20 '05 #1
1 1330
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

"Peelo" <Pe***@nomail.com> wrote in message
news:be**********@phys-news1.kolumbus.fi...
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="jo******@netscape.com">John Doe</a><br>
<a href="ja*******@sun.com">John Doe</a><br>

TIA

Peelo

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kari Laitinen | last post by:
During the past 15 years I have been writing computer programs with so-called natural names, which means that the names (identifiers, symbols) in progarms are constructed of several natural words....
1
by: Jens Riedel | last post by:
Hello, we are planning to port an application from one database to different others, including DB2. While reading the GettingStarted document for DB2 Personal Edition I got a little confused...
0
by: Mythran | last post by:
I wrote some code that is supposed to enumerate through the specified file's win32 resources and return a string-array of all icon names. When it runs, it returns a string-array with a bunch of...
7
by: Petr Jakes | last post by:
I have got names of functions stored in the file. For the simplicity expect one row only with two function names: printFoo, printFOO In my code I would like to define functions and then to read...
3
by: cybernerdsx2 | last post by:
Hi, I notice a function prototype being declared as following: FileStream.h ========= extern void openFile(char *__ident, int __option); But, in the function declaration part shown as...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.