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

HTML link dynamically for specified file

Subject: HTML link dynamically for specified file
From: "Jan Weiss" <jweiss@xxxxxxxxxxxxxxxxxx>
Date: Tue, 31 Jul 2001 10:35:13 +0200
html link to a file
hi @ all,


i have a problem to set a HTML - link in my xsl file dynamically to a
special file.
i want to get a link to the file, which name i get by <xsl:value-of
select="col/@physname"/>.
i get for example: "123.tif"
this name should be linked to. i tried to initialize a variable by this name
but, i think because the link tag is not xsl, the link does not take the
value of $tif nut it links to "$tif". does anybody knew a solution for
this??



<xsl:choose>
	<xsl:when test="col/@format='TIFF'">
		<xsl:variable name="tif" select="col/@physname"/>
			<a href="$tif">  <!-- here the error takes place -->
				<xsl:value-of select="col/@physname"/>
			</a>&#xA0;
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="col/@physname"/>&#xA0;
	</xsl:otherwise>
</xsl:choose>



thanks for help!!


jan


 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.