OK, at its simplest level, I'm trying to obtain output in an HTML page showing a table of values (2 rows x 3 columns).
The "photo" node in the XML document needs to have a URL stored within it for each of the two rows such that when the user clicks on the text "View Image" on the HTML page, it opens the relevant image in a new window. I'm making the (possibly wrong) assumption that I need to employ XSL to achieve this.
Hope this helps someone answer my question.
XML document
============
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../html/XSLtest.xsl"?>
<catalogue>
<bcp>
<photo>View Image</photo>
<itemcode>Item 3</itemcode>
<xname>Tent Pins</xname>
</bcp>
<bcp>
<photo>View Image</photo>
<itemcode>Item 3</itemcode>
<xname>Tent Pins</xname>
</bcp>
</catalogue>
XSL document
============
<xsl:stylesheet version = '1.0'
xmlns:xsl='
<xsl:template match="bcp">
<table border="1">
<tr>
<td><xsl:value-of select="itemcode"/></td>
<td><!-- this is where I'm stuck! --></td>
<td><xsl:value-of select="xname"/></td>
</tr>
</table>
</xsl:template>