Re: [xsl] Genreating a HTML file with anchor link

Subject: Re: [xsl] Genreating a HTML file with anchor link
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Sat, 09 Feb 2008 12:49:45 +0100
Eugene Bernard wrote:

while doing so, how can code it in xsl to generate a html file witn a
link as below if item node has a value of "test"

<td><a href="o:\test.pdf"><xsl:value-of select="item"/></a></td>

Use a literal result element and an attribute value template <URL:http://www.w3.org/TR/xslt#attribute-value-templates>:


  <td>
    <a href="o:\{item}.pdf"><xsl:value-of select="item"/></a>
  </td>

--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread