Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSLT to HTML for an email element

Status
Not open for further replies.

vistor

Technical User
Dec 22, 2000
164
US
Hi,

I have an email field. How would I have this displayed via an XSLT to HTML and have it clickable? I would have to have an email element with an href attribute?

Can anyone give me an example?
 
Hi, I suppose the endresult should be something like:
<p><a href=&quot;mailto:foo@bar.com&quot;>mail mr. foo !!</a></p>

you mention an email field. I dont know what this field looks like, but here's a simple way to get your data into html:

<xsl:template match=&quot;email&quot;>
<xsl:element name=&quot;a&quot;>
<xsl:attribute name=&quot;href&quot;>mailto:<xsl:value-of select=&quot;.&quot;/></xsl:attribute>
<xsl:value-of select=&quot;.&quot;/>
</xsl:element>
</xsl:template>

of course you can split up your email address by using some xslt string functions.
 
Hi All

I have an application which generates a valid xml document.
My requirement is such that this xml document needs to be converted in Excel automatically with XSLT.
How will i be able to do this ? I am a beginner in XSLT,but ready to learn more if this is possible with XSLT.

Please remember that XML document needs to be converted to Excel automatically.

regards
Joseph Cleetus
josephcleetus@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top