I have the following errors
error on line 1 at column 40: Extra content at the end of the document
When try to output xml file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="producers.xsl"?>
<producers>
<producer>
<id>8</id>
<name>Emåmejeriet</name>
<street>Grenvägen 1-3</street>
<postal>577 39</postal>
<city>Hultsfred</city>
<weburl>http://www.emamejerie3t.se</weburl>
</producer>
</producers>
I have validated the xml and I get no errors.
the xsl template looks like this
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<head><title>Producenter</title></head>
<body>
<p>
<xsl:value-of select="producers/producer/id"/>
</p>
</body>
</xsl:template>
</xsl:stylesheet>
What am I missing?
Html tag missing.
XML must have a one root element, (you have two – head and body)
Error persists after string
when the validator find a second root element (body).
just add root html tag