XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 17th, 2004, 10:33 AM
Xaake Xaake is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 Xaake User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Error loading stylesheet in Mozilla

Hello!

I have a problem, I've simplified the code as much as I could:

file: test.xml
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<TITLE>
Hello World
</TITLE>


file: test.xsl
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">

<xsl:value-of select="TITLE"/>

</xsl:template>
</xsl:stylesheet>


This works fine in IE6 but fails in Mozilla firefox 0.8 with the error:
"Error loading stylesheet: Parsing an XSLT stylesheet failed."

I've narrowed it down to the href="test.xsl" in the text.xml file.

Strange this is that if I write href="a.xsl" I get a file not found error. So the file in the example above IS found but can't be loaded!!!

Even stranger is that if I write a complete adress to the file like this:
href="c:\temp\xmltest\test.xsl" it works as it should without problems. If the path is href="http://localhost/xmltest/test.xsl" it does not work.
I need to be able to write relative paths, and webpaths.

Could someone please help me, I am out of ideas, and I am not good at this!

P.S. I use XSL 1.0 D.S.

Thanks in advance
/Rickard Haake

Last edited by Xaake : February 17th, 2004 at 10:37 AM. Reason: Adding info

Reply With Quote
  #2  
Old February 17th, 2004, 11:16 AM
MattSidesinger's Avatar
MattSidesinger MattSidesinger is offline
Java PHP Oracle Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: C-Bus OH-IO
Posts: 204 MattSidesinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 5
Send a message via AIM to MattSidesinger
I was able to repeat the error.

In the XML file, I got rid of the type="text/xsl" and now it works.

I am using Firefox 0.8.2004020.

Reply With Quote
  #3  
Old February 17th, 2004, 11:23 AM
MattSidesinger's Avatar
MattSidesinger MattSidesinger is offline
Java PHP Oracle Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: C-Bus OH-IO
Posts: 204 MattSidesinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 5
Send a message via AIM to MattSidesinger
It doesn't work in IE though, bummer.

I will keep trying.

Reply With Quote
  #4  
Old February 23rd, 2004, 10:07 AM
Xaake Xaake is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 Xaake User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Found a solution

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

Works, I tried that namespace before, but not with the version="1.0" then it did not work, so I overlooked it.

/Rickard Haake

Reply With Quote
  #5  
Old June 12th, 2004, 04:11 AM
Knutschfussl Knutschfussl is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 Knutschfussl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Still not working

Hey guys,
just a little thing - just in case anybody ever comes back to the thread - I'm having the same problem as described above but with trying the here found solution I only get my browser to ignore the XML and XSL (trying Mozilla, Safari, IE)!!!! I'm pretty sure that's not what we want, coz then I wouldn't need to do it in XML, would I?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Error loading stylesheet in Mozilla


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT