OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
creating mailto: link from xsl
This page's ID:
22227
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
First of, Im a newbie at xml/xsl. I was required to learn it for work, and Im the only one here that is doing it, so i have no one around here to turn to. Ive been trying to get a mailto: link to display properly, but once the document is processed, the best i could get was <a mailto:""></a> Thus, I have turned to you the wise for a little guidance. I have an xml document that looks like this: [code]<facultylisting> <faculty>Faculty Name</faculty> <facultymember> <membername>Name</membername> <cred>Credentials</cred> <title>Title</title> <officelocation>Room 11</officelocation> <location>Heritage Floor, Richardson Center</location> <telephone>123-555-1234</telephone> <fax>123-555-5678</fax> <email>cutschallc@xxxxxxx.ca</email> </facultymember> [/code] Im trying to get the email address to appear as <a href="mailto:cutschallc@xxxxx.ca">cutschallc@xxxxx.ca</a> Xsl looks like this: [code] <xsl:for-each select="//facultymember"> <tr> <td colspan="3" class="featureheading"><xsl:value-of select="membername"/></td> </tr> <tr> <td width="125" rowspan="7"><xsl:text> </xsl:text><!-- STAFF IMAGE WILL GO HERE --></td> <td colspan="2" width="235" class="contents"><strong><xsl:value-of select="cred"/></strong></td> </tr> <tr> <td colspan="2" class="featureheading"><xsl:value-of select="title"/></td> </tr> <tr> <td colspan="2" class="contents"><xsl:value-of select="officelocation"/></td> </tr> <tr> <td colspan="2" class="contents"><xsl:value-of select="location"/></td> </tr> <tr> <td colspan="2" class="contents"><strong>Phone: </strong><xsl:value-of select="telephone"/></td> </tr> <tr> <td colspan="2" class="contents"><strong>Fax: </strong><xsl:value-of select="fax"/></td> </tr> **This is where i need the email link to go ** <tr> <td colspan="2" class="contents"><strong>Email: </strong></td> </tr> <tr> <td colspan="3" class="contents"><xsl:text> </xsl:text></td> </tr> </xsl:for-each> </table> [/code] Any ideas? Ive tried a couple things unsuccessfully. Any suggestions? Any help is SO GREATLY APPRECIATED!!! -greg
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »