DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   RSS, Web Services and SOAP (http://www.daniweb.com/forums/forum151.html)
-   -   Error loading stylesheet: Parsing an XSLT stylesheet failed (http://www.daniweb.com/forums/thread100168.html)

lionburn50 Dec 7th, 2007 9:30 pm
Error loading stylesheet: Parsing an XSLT stylesheet failed
 
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

hielo Dec 8th, 2007 2:41 am
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.

lionburn50 Dec 8th, 2007 12:00 pm
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!!

hielo Dec 8th, 2007 10:29 pm
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.

ritgrad83 Jan 2nd, 2008 7:37 pm
Re: Error loading stylesheet: Parsing an XSLT stylesheet failed
 
Quote:

Originally Posted by lionburn50 (Post 486571)
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

antakos Apr 30th, 2008 5:37 am
Re: Error loading stylesheet: Parsing an XSLT stylesheet failed
 
Quote:

Originally Posted by lionburn50 (Post 486571)
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!

peter_budo Apr 30th, 2008 7:55 am
Re: Error loading stylesheet: Parsing an XSLT stylesheet failed
 
Quote:

Originally Posted by antakos (Post 596265)
please help!


Post your code, we are not mind readers to find out where is problem in code you writing


All times are GMT -4. The time now is 4:03 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC