This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl href usage
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] xsl href usage
- From: "Chhunavuth Kao" <oky at p3 dot net>
- Date: Wed, 8 Aug 2001 01:53:35 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
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