This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Generating Link References
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Generating Link References
- From: Rene de Vries <RdVries at PCL-HaGe dot nl>
- Date: Thu, 28 Jun 2001 18:10:05 +0200
- Cc: "'Doug dot Hewko at ccra-adrc dot gc dot ca'" <Doug dot Hewko at ccra-adrc dot gc dot ca>
- Organization: PCL HaGé b.v.
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@ccra-adrc.gc.ca]
Verzonden: donderdag 28 juni 2001 16:53
Aan: 'xsl-list@lists.mulberrytech.com'
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@somecompany.com"><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