|
Subject: Re: [xsl] selectin element and attribute for link From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Wed, 10 Apr 2002 10:33:17 +0100 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] selectin element and attribut, Jarkko . Moilanen | Thread | [xsl] sorting date prob, Jarkko . Moilanen |
| [xsl] How to disable output escapin, Ivanco Maros | Date | RE: [xsl] How to disable output esc, Julian Reschke |
| Month |