Have seen this done but can't anything on it.
I have both xml and xsl files created only need to add a reference to the xsl file ?
Printable View
Have seen this done but can't anything on it.
I have both xml and xsl files created only need to add a reference to the xsl file ?
got that one.
If my xml is,
and my xsl,Code:<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="XXsl.xsl"?>
<START>
<HEAD>
<ID>etc</ID>
<Time-Date>etc</Time-Date>
<Ref>etc</Ref>
</HEAD>
</START>
I want to make both the ID and Ref sections clickable (linkable) any idea how i do this, i know i have to change the xsl side of things?Code:<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Test</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="left">ID</th>
<th align="left">Time-Date</th>
<th align="left">Ref</th>
</tr>
<xsl:for-each select="START/HEAD">
<tr>
<td><xsl:value-of select="ID" /></td>
<td><xsl:value-of select="Time-Date" /></td>
<td><xsl:value-of select="Ref" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>
At a guess:
And replace the # with the URL. How you get the URL is up to you, maybe another node in the XML source is required.Code:<td><a href="#"><xsl:value-of select="ID" /></a></td>