xsl-list
[Top] [All Lists]

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

2008-02-09 04:50:17
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>