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

xsl href usage

Subject: xsl href usage
From: "Chhunavuth Kao" <oky@xxxxxx>
Date: Wed, 8 Aug 2001 01:53:35 -0400
xsl href
Hi all,

I am trying to reference a document in this xsl. Here is a part of the 
code in the xsl:

<td><xsl:if test="leaf">
    <a href="?leaf[1]/@xlink:href?">
         <xsl:value-of select="leaf[1]/title"/>
       </a> 
 </xsl:if>
</td>

Here is the element in the xml file:
<leaf operation="new" xlink:type="simple" xlink:href="study_1/Test.pdf">
	<title>Study Report 1111 Protocol</title>
</leaf>

When I transformed the xml with xsl, the linking is not working
properly. 
By clicking on it doesn't do anything and the
source output html looks something like this:
<a href="?leaf[1]/@xlink:href?"> 

but should be something like this below:
<a href="study_1/Test.pdf">

Suggestion?


 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.