• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSLT error

 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a XML file and a XSLT file, but when I open the XML file, it tells me "invalid style sheet" in opera, and in FF it displays the text in one single line. I can't understand what is the error. Here is the XML file



Here is the XSLT file



Please help me to find the error. I am pretty much new to this subject, so please be kind enough to give me an explanation. Thanks
 
Matthew Brown
Bartender
Posts: 4568
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried those files in Firefox, and it started working once I changed the XSL file to put the output in <html> tags.
 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew Brown wrote:I just tried those files in Firefox, and it started working once I changed the XSL file to put the output in <html> tags.


WOW!!! THANKS FOR THE HELP!!! I AM SO GLAD!!! Anyway why is that?
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess: your XSLT document says you're producing XML. (It says that because you didn't include an <xsl:output> element which said otherwise, and you didn't output an opening <HTML> tag to signal your intention to produce HTML.) But then you didn't produce XML.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic