• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XSL Problem

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Xsl File
[<xsl:stylesheet version="1.0" >
<xsl utput method="html" > ]
The line in my code that bombs is when I do the following
Templates template = factory.newTemplates(xslFile);
This line keeps throwing a TransformerException (NullPointerException)
I am starting to mess with XSLT and I am not sure if my XSL file is set correctly. Or if something else is causing the problem.
Any help will be greatly appreciated.
------------------
Sun Certified Programmer on the Java 2 Platform
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure it will solve your problem, but xsl:stylesheet element should be:
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
and there should be "/" at the end of xsl:otput
<xsl:output method='html'/>
[This message has been edited by Mapraputa Is (edited December 17, 2001).]
 
Tom Ben
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for pointing those out to men.

Originally posted by Mapraputa Is:
I am not sure it will solve your problem, but xsl:stylesheet element should be:
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
and there should be "/" at the end of xsl tput
<xsl utput method='html'[b]/
>
[This message has been edited by Mapraputa Is (edited December 17, 2001).][/B]


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic