[jdom-interest] comments & XSL
Brett McLaughlin
brett at newInstance.com
Thu Aug 2 16:56:18 PDT 2001
> Here no comment handling AT ALL!
>
> ?? Do you have any idea about it ??
Sure. It was never done ;-) I've just made a change and committed it to CVS,
which should handle this for you. Here's the comment/log on my patch:
This is a change to SAXOutputter that does several things. First, it allows
the
developer to set an org.xml.sax.ext.LexicalHandler on the SAXOutputter, as
shown here:
Method 1:
SAXOutputter outputter = new SAXOutputter(contentHandler, errorHandler,
dtdHandler, entityResolver,
lexicalHandler);
where each argument is the instance of the class to have output fired to.
Method 2:
SAXOutputter outputter = new SAXOutputter(contentHandler);
outputter.setLexicalHandler(lexicalHandler);
where each argument is the instance of the class to have output fired to.
Additionally, I've implemented behavior that will cause comments in the JDOM
Document to fire the comment() method on the LexicalHandler instance set,
if
it exists. Note, however, that I have NOT yet added any other behavior
related
to LexicalHandler.
Let me know if this helps... it should.
---
Brett McLaughlin
Enhydra Strategist: http://www.enhydra.org
Lutris Technologies: http://www.lutris.com
O'Reilly Author: http://www.newInstance.com
More information about the jdom-interest
mailing list