cornelombaard Posted October 31, 2011 Share Posted October 31, 2011 I am a newbie! I get the following error:Error loading stylesheet: Parsing an XSLT stylesheet failed.I created a xml document and attached a sxl stylesheet to the document. Here is the stylesheet and the include statement in the xml document follows after that: <?xml version="1.0"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"><xsl:template match="/"><HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl"><HEAD><TITLE>Major League Baseball Statistics</TITLE></HEAD><BODY><H1>Major League Baseball Statistics</H1><HR></HR>Copyright 1999<A HREF="http://www.macfaq.com/personal.html">Elliotte Rusty Harold</A><BR /><A HREF="mailto:elharo@metalab.unc.edu">elharo@metalab.unc.edu</A></BODY></HTML></xsl:template></xsl:stylesheet> Here is the statement in the xml document that includes the stylkesheet: <?xml-stylesheet type="text/xsl" href="baseball.xsl" ?> Any help will be appreciated Link to comment Share on other sites More sharing options...
Martin Honnen Posted October 31, 2011 Share Posted October 31, 2011 Well the W3C XSLT stylesheet language that was standardized in 1999 uses elements in the namespace http://www.w3.org/1999/XSL/Transform. Your stylesheet uses a different namespace of an earlier working draft of the language. Only old MSXML versions support that version, all other standards compliant XSLT processors don't support the working draft version.So basically you need to use the language specified in http://www.w3.org/TR/xslt, not that working draft version. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.