Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XSLTransform constructors are flawed

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <jcowan AT reutershealth.com>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XSLTransform constructors are flawed
  • Date: Sat, 4 Sep 2004 13:04:34 -0400

Elliotte Rusty Harold scripsit:

> When a Document object is passed to an XSLTransform constructor it is
> written into a StringBuffer which is then passed to TrAX as a
> StringReader. Thus it gets parsed twice. In any case, it is more
> efficient just to pass in the Reader/InputStream/File/URL rather than
> a Document.

I'm stunned that you do this. It would seem so straightforward to
use SAXConverter, souped up a bit to make it an XMLReader rather than
just a ContentHandler. (If you remember, I suggested a while back
that SAXConverter produce an XMLReader.)

--
One Word to write them all, John Cowan <jcowan AT reutershealth.com>
One Access to find them, http://www.reutershealth.com
One Excel to count them all, http://www.ccil.org/~cowan
And thus to Windows bind them. --Mike Champion




Archive powered by MHonArc 2.6.24.

Top of Page