Hi again,
I was a little inaccurate. Since you're using
Xalan 1, which doesn't support SAX 2.0, you
need to use it as a DocumentHandler. So you
do something like this:
parser.setDocumentHandler(processor.getDocumentHandler());
parser.parse();
and the parser will emit its parsing events
into the processor's SAX event handler. From
those, the processor will constructs its
internal document model for processing. When
the endDocument() event arrives (the last SAX
parse event), the processor starts performing
the transformation.
ContentHandler is the SAX 2.0 equivalent of
the (SAX 1.0) DocumentHandler. If you were
using Xalan 2, it would be very easy for you
to just follow one of the usage examples at
http://xml.apache.org/xalan-j/usagepatterns.html
Picture a chorus chanting "upgrade, upgrade"!
Moving to Xalan 2 really is worth it.
Anyway, I hope that's clearer. Cheers,
- Gulli
-----Original Message-----
From: Samina Islam [mailto:[EMAIL PROTECTED]]
Sent: 30. j�l� 2001 19:24
To: [EMAIL PROTECTED]
Subject: RE: entity
sorry, I did not understand what you meant.
>Instead of using XSLTProcessor.process, you should use the
>XSLT processor as a SAX ContentHandler,
how can I use the XSLT processor as a SAX contentHandler?
thanks!
Samina
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]