File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSLT error

 
Yohan Weerasinghe
Ranch Hand
Posts: 507
Java Netbeans IDE Oracle
  • 0
  • 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: 4549
8
Java Netbeans IDE Scala
  • 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
  • 0
  • 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
Pie
Posts: 20208
26
MySQL Database
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic