Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Names to mailaddresses?

Reply
Thread Tools

Names to mailaddresses?

 
 
Peelo
Guest
Posts: n/a
 
      07-13-2003
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="">John Doe</a><br>
<a href="">John Doe</a><br>

TIA

Peelo


 
Reply With Quote
 
 
 
 
Peelo
Guest
Posts: n/a
 
      07-13-2003
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" <> wrote in message
news:besfqs$cov$...
> 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="">John Doe</a><br>
> <a href="">John Doe</a><br>
>
> TIA
>
> Peelo
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting 'flat' gate level names to hierarchical names Paddy McCarthy VHDL 3 09-24-2004 05:34 PM
table field names vs. display names Bob ASP .Net 1 07-30-2004 05:06 PM
Matching attribute names to element names in a different path Carl XML 0 04-01-2004 01:15 PM
WSDL- Mapping Application Defined Names to XML Names Craig XML 0 02-09-2004 04:14 PM
XSL rules applying to XSD (XML schema) defined type names (as opposed to node names) Lewis G. Pringle, Jr. XML 0 09-30-2003 10:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57