hawkeye Posted March 26, 2006 Share Posted March 26, 2006 Hello,I would like to be able to validate my xsl stylesheets in a similar way to validating xhtml or css at http://validator.w3.org. However, the validator on the website is giving me doctype errors, even though I have included:<xsl:output method="html" encoding="ISO-8859-1" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>I am trying to validate http://eddy.umcus.org/website/test.xsl for use with the xml file http://eddy.umcus.org/website/test.xmland schema http://eddy.umcus.org/website/entry.xsdThanks.Hawkeye Link to comment Share on other sites More sharing options...
boen_robot Posted March 26, 2006 Share Posted March 26, 2006 W3C has a Schema validator. However, they don't have XML or XSLT validators. The only way you could validate an XSLT would be to get it's XHTML output via server side scripting language and validate it instead. Link to comment Share on other sites More sharing options...
hawkeye Posted March 26, 2006 Author Share Posted March 26, 2006 W3C has a Schema validator. However, they don't have XML or XSLT validators. The only way you could validate an XSLT would be to get it's XHTML output via server side scripting language and validate it instead.<{POST_SNAPBACK}> Thanks, is that easy to do in php 4.42? Link to comment Share on other sites More sharing options...
boen_robot Posted March 26, 2006 Share Posted March 26, 2006 Actually, no. It requres some kind of extension before you are even able to run any code for the XSLT processor. I don't know what extension exactly is needed and how to install it. If you're able to figure it out by going through the manual or something, please let me know. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now