[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: selectin element and attribute for link

Subject: Re: selectin element and attribute for link
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Apr 2002 10:33:17 +0100
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.