Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception coming while transforming

 
sanchit dua
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the following is the filter post processing logic:


throwing an exception:

How to fix it.. As I'm newbie to use Transformer class.
Thanks!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That exception points out a flaw in your input XML document, NOT your program.

Where is the XML input coming from?

Bill
 
sanchit dua
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The xml elements are being read from a jsp page using an xsl file as:

customers.jsp


customers.xsl as:


Thanks!
 
Paul Clapham
Sheriff
Posts: 21318
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message is referring to the actual XML that is being processed, not the program which is producing that XML. Therefore you should look at the actual XML that is being processed and not at the program which is producing that XML.
 
sanchit dua
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually the project is based on applying xslt on jsp pages and there is no such xml file in this project.
But why its giving exception even if the contents are to be read from jsp file..?

Thanks.!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic