First off here's the error I'm getting:
Entity names, PI targets, notation names and attribute values declared to be of types ID, IDREF(S), ENTITY(IES) or NOTATION cannot contain any colons. Error processing resource 'http://www.miracle-group.com:8080/_inc/xml/ptstransforum.xsl'. Line 1, Position 18
<?xsl:stylesheet version="1.0" xmlns
sl="http://www.w3.org/1999/xsl/transform" ?>-----------------^
From what I can tell there is no error in either my XML document of my XSL style sheet. It's very strange. What is also strange is that I get a completely different error the first time I load the page. What's also weird is that if I make updates to the page the second error never changes, even if change the first line of code so a different XML version.
Here's that error:
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.
Any idea's?
Here's my valid XML.
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="/_inc/xml/ptstransforum.xsl"?>
<data>
<category>
<name>Automotive</name>
<id>blah</id>
<contents>
<category>
<name>Cleaning And Detailing</name>
<id>yo</id>
<product>
<name>Ding King</name>
<id>MMDING01</id>
</product>
<product>
<name>Miracle Eraser</name>
<id>MMDING02</id>
</product>
<product>
<name>Glue Stick</name>
<id>MMGLUE</id>
</product>
</category>
<category>
<name>Fuel Savings</name>
<id>hey</id>
<product>
<name>Fuel King</name>
<id>MMDINF01</id>
</product>
<product>
<name>Fuel Eraser</name>
<id>MMFUEL</id>
</product>
<product>
<name>Fuel Stick</name>
<id>MMFUEL</id>
</product>
</category>
<category>
<name>Safety</name>
<id>your</id>
<product>
<name>Safety Stick</name>
<id>MMSAFE</id>
</product>
</category>
</contents>
</category>
<category>
<name>Cleaning</name>
<id>blah</id>
<contents>
<category>
<name>Cleaning And Derailing</name>
<id>yo</id>
<product>
<name>Ding King</name>
<id>MMDING01</id>
</product>
<product>
<name>Miracle Cleaner</name>
<id>MMDe33G02</id>
</product>
<product>
<name>Glue Pickk</name>
<id>MMbLUE</id>
</product>
</category>
<category>
<name>Fuel Savings</name>
<id>hey</id>
<product>
<name>Fuel King</name>
<id>MMDINF01</id>
</product>
<product>
<name>Fuel Cleaner</name>
<id>MMDRUEL</id>
</product>
<product>
<name>Fuel Pick</name>
<id>MMFUEL</id>
</product>
</category>
<category>
<name>Complacity</name>
<id>your</id>
<product>
<name>Safety Stick</name>
<id>MMSAFE</id>
</product>
</category>
</contents>
</category>
</data>
And the XSLT:
Code:
<?xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform" ?>
<xsl:output method="html" />
<xsl:template match="category">
<p><xsl:apply-templates /></p>
</xsl:template>
</xsl:stylesheet>
Bookmarks