File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Exception Handling in XSLT ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Exception Handling in XSLT ???" Watch "Exception Handling in XSLT ???" New topic

Exception Handling in XSLT ???

Sachin Kumar Khandelwal

Joined: Dec 02, 2003
Posts: 8

Using xslt is really very efficient and easy instead of DOM,also it improves the maintainability.
I tried using the java classes in XSLT, which is beneficial at certain situation.But found one problem , i'm not able to catch any Exception thrown inside the XSLT.
is there any way we can do that???

plz help

thanking in advance,

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
XSLT doesn't have the concept of exceptions so I'm afraid there's nothing much you can do. Then again, I'm not sure whether I understand what you mean by "exceptions" in this context so perhaps you would like to elaborate a bit?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Exception Handling in XSLT ???
It's not a secret anymore!