Ok Im trying to display an xml file in a table using a xsl stylesheet, this works fine, untill I add html to the xml file, the html img does not show up, yet the table is displayed fine with no error, below I have included the xml, xsl, dtd and calling page, can you see the problem?
--xml file
--xsl file
-- dtd
-- calling page
--xml file
code:<hr>
Code:<?xml version="1.0" encoding="ISO8859-1" ?> <toolbar> <button> <image><img src="/Images/Contact16.gif"alt="" /></image> <link_name>Link text</link_name> <link_value>link value</link_value> </button> </toolbar>
--xsl file
code:<hr>
Code:<?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <table border="0" width="782" bgcolor="#658DB9"> <tr> <xsl:for-each select="toolbar/button"> <td><xsl:value-of select="image"/><xsl:value-of select="link_name"/></td> <td><xsl:value-of select="link_value"/></td> </xsl:for-each> </tr> </table> </body> </html> </xsl:template> </xsl:stylesheet>
-- dtd
code:<hr>
Code:<!ELEMENT toolbar (button)*> <!ELEMENT button (image, link_name, link_value)> <!ELEMENT image (#PCDATA)> <!ELEMENT link_name (#PCDATA)> <!ELEMENT link_value (#PCDATA)>
-- calling page
code:<hr>
Code:<html> <head> <title>Untitled</title> </head> <body> <script language="javascript"> // Load XML var xml = new ActiveXObject("Microsoft.XMLDOM") xml.async = false xml.load("/javascripts/toolbardef.xml") // Load the XSL var xsl = new ActiveXObject("Microsoft.XMLDOM") xsl.async = false xsl.load("/javascripts/toolbar.xsl") // Transform document.write(xml.transformNode(xsl)) </script> </body> </html>