posted 18 years ago
Hi,
Some of the nodes in my XML document contain file paths for instance:
<multimedia>
<imagepath>c:\html_test\image\a-35-52.jpg</imagepath>
<\multimedia>
I am using an xsl stylesheet to transform the XML document to HTML.
I would like to use the imagepath nodes to make links in the HTML document,
To do this I am simply using the "value-of" the imagepath node within a "href" tag in the XSL document as follows:
<xsl:for-each select="multimedia">
<a href="<xsl:value-of select="imagepath"/>">view image</a>
<p \>
</xsl:for-each>
...however it isnt working for me. Is it possible to do this? I think I might need to use an escape character or something like that.
Any suggestions?
Thanks,
Eoin.