Altova Mailing List Archives


[xsl] HTML link dynamically for specified file

From: "Jan Weiss" <jweiss@------------------>
To:
Date: 7/31/2001 12:37:00 AM
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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.