This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: selectin element and attribute for link


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]