RE: [xsl] Generating Link References

Subject: RE: [xsl] Generating Link References
From: Rene de Vries <RdVries@xxxxxxxxxxx>
Date: Thu, 28 Jun 2001 18:10:05 +0200
Hi Doug,

This template should do the trick:

<xsl:template match="email">
	<a>
		<xsl:attribute name="href">
			<xsl:text>mailto:</xsl:text>
			<xsl:value-of select="."/>
			<xsl:text>@somecompany.com</xsl:text>
		</xsl:attribute>
		<img src="images/mail_icon.gif"/>
	</a>
</xsl:template>

just put in in the rest of your XSL which does the selection on "Mananger".

Greetings Rene
   { @   @ }
        ^
      \__/

"You don't need eyes to see, you need vision!"

-----Oorspronkelijk bericht-----
Van:	Hewko, Doug [SMTP:Doug.Hewko@xxxxxxxxxxxxxxx]
Verzonden:	donderdag 28 juni 2001 16:53
Aan:	'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Onderwerp:	[xsl] Generating Link References

How can I generate a link reference from an element in my XSL file?

Here's what my XML would be like:
<name position="manager">Joe blow</name>
<email>blow.joe</email>

Within my XSL, I am selecting all managers and want to provide an e-mail
link. I want to change the value of "blow.joe" to "<a
href="mailto:blow.joe@xxxxxxxxxxxxxxx";><img src="images/mail_icon.gif"
/></a>". 

Can this be done without adding plug-ins to MS IE 5.5, and if so, how?

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread