www.webdeveloper.com
Results 1 to 3 of 3

Thread: XSL processing and links

  1. #1
    Join Date
    Feb 2003
    Posts
    2

    XSL processing and links

    I have a list of e-mail addresses that I get from XML using:

    <xsl:value-of select="email" />

    That returns an email in the form:

    someone@somewhere.com

    Now, what I want my xsl to output is:

    <a href="mailto:someone@somewhere.com">Whatever</a>

    How would I do this?

    Thanks a lot...

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    <a>
    &nbsp;&nbsp;&nbsp;&nbsp;<xsl:attribute name="href">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<xsl:text>mailto:</xsl:text>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<xsl:value-of select="email"/>
    &nbsp;&nbsp;&nbsp;&nbsp;</xsl:attribute>
    &nbsp;&nbsp;&nbsp;&nbsp;<xsl:value-of select="email"/>
    </a>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Feb 2003
    Posts
    2
    Thanks a lot. Appreciate the quick response...works great.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles