Both a suggestion *and* wisdom in one!  Thanks, Gary.

-----Original Message-----
From: Gary L Peskin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 17:11
To: [EMAIL PROTECTED]
Subject: Re: Xalan 2.2 D7 increasing memory footprint?


TransformerHandler.getTransformer().setParameter().

Gary

Rick Bullotta wrote:
>
> Almost there...with one missing piece of the puzzle.  Using a technique
that
> involves TemplateHandlers, TransformerHandlers, a custom XMLReader class,
> and other exotica, I've got it basically working, but there does not
appear
> to be any way to set stylesheet parameters with this technique, which is a
> must-have for our application.  Any wisdom & suggestions welcomed!
>
> - Rick
>
> -----Original Message-----
> From: Li Liang [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 13:44
> To: [EMAIL PROTECTED]
> Subject: RE: Xalan 2.2 D7 increasing memory footprint?
>
> You can do the "parsing" yourself. TransformerHandler is a SAX
> ContentHandler. For example, if you already have a DOM in memory, you
> can write a DOM2SAXSerilizer to traverse the tree, and fire SAX events
> into TransformerHandler, that is, call startElement(), endElement(),
> etc. of the TransformerHandler directly.
>
> -----Original Message-----
> From: Rick Bullotta [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 1:36 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Xalan 2.2 D7 increasing memory footprint?
>
> Good stuff, but focused on parsing an external XML document - any
> thoughts
> on sample code demonstrating how to "feed" SAX events programmatically
> to
> the transformer without having to create any type of in-memory XML
> document?
>
> -----Original Message-----
> From: Gunnlaugur Thor Briem [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 11:54
> To: [EMAIL PROTECTED]
> Subject: RE: Xalan 2.2 D7 increasing memory footprint?
>
> Yep, http://xml.apache.org/xalan-j/usagepatterns.html
> is dripping with sample code! :) In particular you want
> http://xml.apache.org/xalan-j/usagepatterns.html#sax ...
>
> Regards,
>
>         - Gulli
>
> -----Original Message-----
> From: Rick Bullotta [mailto:[EMAIL PROTECTED]]
> Sent: 23. juli 2001 15:49
> To: [EMAIL PROTECTED]
> Subject: RE: Xalan 2.2 D7 increasing memory footprint?
>
> Thanks for the suggestion.  Any sample code available demonstrating
> this?

Reply via email to