[jdom-interest] org.jdom.contrib.transform.JDomResult

Laurent Bihanic laurent.bihanic at atosorigin.com
Wed Apr 4 04:12:59 PDT 2001


Most (if not all) XSLT processors will recognize a SAXResult and know how to 
use it.  What can an XSLT processor do with an unknown subclass of Result? 
The only two methods Result defines are getSystemId() and setSystemId().

With your class, how will the XSLT processor get access to the wrapped SAXResult?


Edoardo Comar wrote:

> Hi I was looking at JDomResult and wandered why it extends SAXResult,
> and has to override its setters so not to change its internals.
> I'd change it such that :
> JDomResult implements Result
> *wraps* a privately held SAXResult
> adds its raison-d'etre, the getDocument()  method
> Edo

More information about the jdom-interest mailing list