Hello, new to xml markup, have a question. Need to display a hyperlink
in a marked up xml file, here is an excerpt. . .
================================================================================
<NewDataSet>
<Table>
<pic><a href=http://cas.sdss.org/dr7/en/tools/chart/
navi.asp?ra=166.358&dec=-0.748596>
<img src="http://casjobs.sdss.org/ImgCutoutDR7/getjpeg.aspx?
ra=166.358&dec=-0.748596&scale=0.40&width=120&height=120&opt="/
> </pic>
<name>J1105<name>
<ra>16.25829</ra>
<dec>-7.74849605</dec>
<mag_g>18.9</mag_g>
<id>587722982270959696</id>
<sep>0.02</sep>
/Table>
</NewDataSet>
=======================================================
and the xsl is below. The table as displayed in html only has the long
link that is not clickable. How does one make a clickable hyperlink
from an xml database?
==================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/
>
<xsl:template match="/">
<html>
<body>
<h2>Lots of Junk</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="left">pic</th>
<th align="left">name</th>
</tr>
<xsl:for-each select="NewDataSet/Table">
<tr>
<td><xsl:value-of select="pic"/></td>
<td><xsl:value-of select="name"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>