I was writing a xslt to transform a xml to xhtml.
the main outline of the code is:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml" >
<xsl:template match="/">
<html>
<body>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
i tried to validate it at
http://validator.w3.org/, but it fails.
the errors i get are:
Line 8 column 24: there is no attribute "version"
Line 8 column 40: there is no attribute "xmlns:xsl"
Line 9 column 6: there is no attribute "xmlns".
Line 9 column 37: element "xsl:stylesheet" undefined.
Line 14 column 24: there is no attribute "match".
Line 14 column 27: element "xsl:template" undefined.
Line 16 column 17: document type does not allow element "body" here.
Line 18 column 14: end tag for "html" which is not finished.
Line 21 column 17: no document element.
I had also refered to the site
http://www.objectsbydesign.com/projects/xslt/xhtml.html whose tutorial is based on a reference to XSLT Programmer's Reference page. 250-261
I really need some one to guide and correct my errors.I need to get it to be a valid xhtml.thanx alot