Elliotte Rusty Harold wrote:
At 1:37 PM +0200 9/13/02, Diez B. Roggisch wrote:
However, the & and < entities are resolved into their characters, & and <. Currently, I parse every char array passed by the characters-event and re-insert the entity. This slows down the whole process a great deal.
Is there a possiblity to turn this behaviour off?
No, and that's a good thing. Stop reinserting the entity references. You don't need to do this, and it's almost certainly introduced bugs into your transformation.
I'm sorry, but obviously I didn't make my point clear: I want to use the SAX event stream as input for another xml parser. So if I insert this:
<foo> bar &baz </foo>
I get (as expected)
<foo> bar &baz </foo>
If I feed that into the next parser, it complains about
org.xml.sax.SAXParseException: The reference to entity "baz" must end with the ';' delimiter
So - I'll have to rewrite that. Even if I could somehow force xalan _not_ to fill the whole memory, I afterwards read the transformed xml into castor, which will bloat things then. So I'm stuck there.
Diez
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
