This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: selectin element and attribute for link
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: Jarkko dot Moilanen at uta dot fi
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 10 Apr 2002 10:33:17 +0100
- Subject: Re: [xsl] selectin element and attribute for link
- Organization: Jeni Tennison Consulting Ltd
- References: <000401c1e05c$68d9c5c0$68fea8c0@philippep><1018430364.3cb4039cca8a8@imp2.uta.fi>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Jarkko,
> And the result should be in html format like this:
>
> <a href="00223322334342.htm">Xalan</a>
>
> Now the part of xsl- file concerning this part is this:
> <a href="{Subject}.htm">
> <xsl:value-of select="Subject" /></a>
You're almost there. All you want is to select the Subject's id
attribute in the attribute value template held in the href attribute,
rather than the Subject itself:
<a href="{Subject/@id}.htm"><xsl:value-of select="Subject" /></a>
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list