943,719 Members | Top Members by Rank

Dec 7th, 2007
0

Error loading stylesheet: Parsing an XSLT stylesheet failed

Expand Post »
I'm having a problem with my XML and XSL pages. My XSL sheet is not complete yet, but when I go to view my XML to see how it looks so far, I get an error saying, "Error loading stylesheet: Parsing an XSLT stylesheet failed." Does anyone know why this could be happening. I am using Mozilla, I know that the browser matters, but I've done other web pages that have turned out fine. Thank you
Reputation Points: 10
Solved Threads: 0
Newbie Poster
lionburn50 is offline Offline
4 posts
since Apr 2007
Dec 8th, 2007
0

Re: Error loading stylesheet: Parsing an XSLT stylesheet failed

There could be various reasons. To name a few:
1. Invalid/Wrong path to the stylesheet
2. Invalid characters in the stylesheet
3. Improper syntax
4. Insufficient Permissions on the file

Open the XSL file directly through FF. If the problem is any of 1-3, then it will tell you on which line the error occured.
Reputation Points: 116
Solved Threads: 243
Veteran Poster
hielo is offline Offline
1,123 posts
since Dec 2007
Dec 8th, 2007
0

Re: Error loading stylesheet: Parsing an XSLT stylesheet failed

That's the problem I'm having, Nothing will show up, except the "Error loading stylesheet: Parsing an XSLT stylesheet failed" message.. it won't show me what line or anything, it is so annoying because I don't know what is wrong with it.

Thank you anyways!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
lionburn50 is offline Offline
4 posts
since Apr 2007
Dec 8th, 2007
0

Re: Error loading stylesheet: Parsing an XSLT stylesheet failed

"Error loading stylesheet..." is typically reported by the XSL parser, not the browser. What I am suggesting is to open up Firefox and type(as an example):
http://www.yoursite.com/Project/myFile.xsl

Firefox will not try to parse/interpret your XSL file. But it will try to create a "tree-node" representative of the document. Things that the browser will spot easily for you are for example:
& instead of &
or unclosed elements (<br> instead of <br />) or mismatching elements (<span><div></div></span>)
etc.
IF the problem on the file are permissions, the browser will also report it because it will not be able to retrieve it from the server.
Reputation Points: 116
Solved Threads: 243
Veteran Poster
hielo is offline Offline
1,123 posts
since Dec 2007
Jan 2nd, 2008
0

Re: Error loading stylesheet: Parsing an XSLT stylesheet failed

Click to Expand / Collapse  Quote originally posted by lionburn50 ...
I'm having a problem with my XML and XSL pages. My XSL sheet is not complete yet, but when I go to view my XML to see how it looks so far, I get an error saying, "Error loading stylesheet: Parsing an XSLT stylesheet failed." Does anyone know why this could be happening. I am using Mozilla, I know that the browser matters, but I've done other web pages that have turned out fine. Thank you
What MIME/Type encoding are you using and is the stylesheet loaded from a server or your local machine?

In Mozilla - go to Tools > Page Info and see what the Type attribute displays
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ritgrad83 is offline Offline
14 posts
since Feb 2007
Apr 30th, 2008
0

Re: Error loading stylesheet: Parsing an XSLT stylesheet failed

Click to Expand / Collapse  Quote originally posted by lionburn50 ...
I'm having a problem with my XML and XSL pages. My XSL sheet is not complete yet, but when I go to view my XML to see how it looks so far, I get an error saying, "Error loading stylesheet: Parsing an XSLT stylesheet failed." Does anyone know why this could be happening. I am using Mozilla, I know that the browser matters, but I've done other web pages that have turned out fine. Thank you
please help!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
antakos is offline Offline
1 posts
since Apr 2008
Apr 30th, 2008
0

Re: Error loading stylesheet: Parsing an XSLT stylesheet failed

Click to Expand / Collapse  Quote originally posted by antakos ...
please help!
Post your code, we are not mind readers to find out where is problem in code you writing
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Apr 10th, 2010
0
Re: Error loading stylesheet: Parsing an XSLT stylesheet failed
Click to Expand / Collapse  Quote originally posted by antakos ...
please help!
Hi ,

"Error loading stylesheet: Parsing an XSLT stylesheet failed."

Solution: Use " : " instead of " - "

e.g: <xsl-stylesheet version = "1.0"
xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
........
........
........
<xsl-stylesheet>


Here use <xsl:stylesheet ...> instead of <xsl-stylesheet....>

cheers !
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cooltechie is offline Offline
1 posts
since Apr 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in RSS, Web Services and SOAP Forum Timeline: @pathparam vs @queryparam
Next Thread in RSS, Web Services and SOAP Forum Timeline: setClass() - SOAP PHP implementation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC