[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSL attribute expression
Dwight, Try something like this <a><xsl:attribute name="href" ><xsl:value-of select="{url}"/></xsl:attribute></a> -Don -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Dwight Kelly Sent: Wednesday, October 04, 2000 6:34 PM To: xsl-list@xxxxxxxxxxxxxxxx Subject: XSL attribute expression 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"> <DIV> Job <xsl:value-of select="@job-id" /> <A HREF="{@url}">URL</A> </DIV> </xsl:template> Thanks, -- 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 http://www.apago.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|