SunQuest
           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:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old May 15th, 2003, 12:42 AM
lewisneal lewisneal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 6 lewisneal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
view xml file - mozilla/phoenix vs IE6

I can view my pimadd1.xml file in IE6 - it tabulates fine.
However in Mozilla and Phoenix (latest nightlies) I get the error message "Error loading stylesheet: Parsing a XSLT stylesheet failed." In earlier nightlies I used to get a grey screen.
Using a larger file pimadd1 in Mozilla (latest nightly) the browser crashes.
Here are the sample files (I have shortened but format is same):
pimadd1.xml -
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="pimaddress_book.xsl"?>
<Addressbook>
<entry>
<confidential>""</confidential>
<CATEGORIES>Signs</CATEGORIES>
<FIRSTNAME>Alf</FIRSTNAME>
<LASTNAME>Della</LASTNAME>
<JOBTITLE1>""</JOBTITLE1>
</entry>
<entry>
<confidential>""</confidential>
<CATEGORIES>Connectors</CATEGORIES>
<FIRSTNAME>John</FIRSTNAME>
<LASTNAME>Smith</LASTNAME>
<JOBTITLE1></JOBTITLE1>
</entry>
</Addressbook>
[end] and pimaddress_book.xsl
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<table border="2" bgcolor="white">
<tr>
<th>confidential</th>
<th>CATEGORIES</th>
<th>FIRSTNAME</th>
<th>LASTNAME</th>
<th>JOBTITLE1</th>
</tr>
<xsl:for-each select="Addressbook/entry">
<tr>
<td><xsl:value-of select="confidential"/></td>
<td><xsl:value-of select="CATEGORIES"/></td>
<td><xsl:value-of select="FIRSTNAME"/></td>
<td><xsl:value-of select="LASTNAME"/></td>
<td><xsl:value-of select="JOBTITLE1"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
[end]

Any ideas?

Many Thanks
Lewis

Reply With Quote
  #2  
Old May 15th, 2003, 01:08 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
Where is your xsl:template and xsl:stylesheet closing tags?

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


Put those at the bottom of the XSL file

Reply With Quote
  #3  
Old May 15th, 2003, 07:53 PM
lewisneal lewisneal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 6 lewisneal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have added the tags but I get the same error message in Mozilla and Firebird (phoenix).
The file displays fine in IE. Is there some different xml coding required for Mozilla?

Thanks

Lewis

Reply With Quote
  #4  
Old May 16th, 2003, 01:28 AM
lewisneal lewisneal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 6 lewisneal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
More info:
The xml files display in Opera 7.11 with no error messages. However the display is not tabulated.

Lewis

Reply With Quote
  #5  
Old May 17th, 2003, 06:33 PM
DarrenJ DarrenJ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 42 DarrenJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 21 sec
Reputation Power: 6
Opera doesn't support XSL. So in that browser it won't work.
http://www.opera.com/docs/specs/#xml

For Mozilla/Phoenix... It could be MIME type your web server is returning to the browser. If web server isn't returning application/xml as MIME type then you'll get problems in Mozilla and Mozilla based browsers.
FAQ on this page http://www.mozilla.org/projects/xslt/. Question no. 1
__________________
Best regards
Darren

Last edited by DarrenJ : May 17th, 2003 at 06:36 PM.

Reply With Quote
  #6  
Old May 19th, 2003, 12:56 AM
lewisneal lewisneal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 6 lewisneal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Darren you are right about opera. Opera displays the text unformatted but at least it doesn't crash!
In Mozilla preferences "Helper Applications" I have added text/xml and application/xml as new MIME types. What do I put for "When a file of this type is encountered"?
I have tried both default application and open it with mozilla.exe - but it has crashed both times.

Thanks

Lewis

Reply With Quote
  #7  
Old May 19th, 2003, 11:33 AM
DarrenJ DarrenJ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 42 DarrenJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 21 sec
Reputation Power: 6
Actually it's your web server that need to return right mime tipe if it will shows correct i Mozilla. I don't think that preferences in Mozilla self has anything to do with this.

Have you tried to run those files localy on your computer? Don't use http://localhost but go to File menu and chose Open File.

Last edited by DarrenJ : May 19th, 2003 at 11:37 AM.

Reply With Quote
  #8  
Old May 21st, 2003, 01:57 AM
lewisneal lewisneal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 6 lewisneal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
File > Open File > file.xml
is the method I have used to open the xml files.
I have also tried Open Web location
which results in the same error or crash.

Lewis

Reply With Quote
  #9  
Old May 21st, 2003, 02:05 AM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
Quote:
I have added the tags but I get the same error message in Mozilla and Firebird (phoenix).

I think you mean Mozilla (phoenix). Firebird is a database.
__________________
~ Joe Penn

Reply With Quote
  #10  
Old May 22nd, 2003, 09:46 PM
lewisneal lewisneal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 6 lewisneal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your help people!
I realised the path to my address_book.xsl file was incorrect - Fixed it and the text now displays but still (untabulated).
Joe, I am using the latest nightly of Mozilla Firebird which used to be known as Phoenix.

Thanks

Lewis

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > view xml file - mozilla/phoenix vs IE6


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 1 hosted by Hostway