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]

xsl href usage


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


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