• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

XSLT error

 
Ranch Hand
Posts: 507
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4568
9
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 28394
100
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic