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

XSL attribute expression

Subject: XSL attribute expression
From: Dwight Kelly <dkelly@xxxxxxxxx>
Date: Wed, 4 Oct 2000 19:33:53 -0400 (EDT)
xsl attribute url
I am fairly new to XSL and am trying to extract the value of the attribute
'url' from the node 'job' and make it a HTML <A HREF=> link. Is this the
correct syntax? Instead of getting 
<A HREF="http://www.apago.com/jobs/1">URL</A>
I am getting
<A HREF="{@url}">URL</A>

here is my xml file fragment:

<job job-id="100" url="http://www.apago.com/jobs/1" />

and my xsl fragment:

<xsl:template match="job">
	Job <xsl:value-of select="@job-id" />
	<A HREF="{@url}">URL</A>

Dwight Kelly
Apago, a division of Essential Technical Services, Inc.  
315 Allen Street Cumming, GA 30040
voice:(770) 889-2848  fax:(770) 889-2624 Internet:dkelly@xxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.