[jdom-interest] Re: [jdom-commits] CVS Update:
jdom/src/java/org/jdom/transform
Elliotte Rusty Harold
elharo at metalab.unc.edu
Mon May 5 18:14:04 PDT 2003
At 3:04 PM -0700 5/5/03, Jason Hunter wrote:
>An XSLException reads to me like it's a problem in the XSL file (like a
>parse error) more than a generic problem in the act of doing an XSL
>transform. I guess that's why I went with this name.
Both are possible. Currently we just have one exception for both
cases. If the exception is thrown by a constructor, it probably a
problem is a problem in the XSL file. (It could also be a plain
vanilla IOException, but TrAX doesn't throw those separately. We
could always check that with getCause or getException though.)
If the problem occurs during the transform the most likely causes are
an IOException or a malformed input document. There are also a few
cases where a stylesheet bug is not exposed except with the right
input document. Many of these cases are optional to report. That is,
some engines will throw an exception and others will recover.
However, these are rare. This is much less common in practice than
IOExceptions and malformed input documents.
--
Elliotte Rusty Harold
elharo at metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
More information about the jdom-interest
mailing list