Jump to content

Error Loading Xsl Style Sheet

Recommended Posts

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

Edited by cornelombaard
Link to post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...