Brion --

You must be looking at some old code because I couldn't find that line. 
All I can find is a reference to the now static method createDocument()
in the DOMHelper class.  I believe that this is here only temporarily as
we transition away from some of the old interfaces.  In any event, it is
only used to handle the case where a DOMResult is passed in with a null
node, an unlikely occurrence.

Please feel free to add this into bugzilla if you'd like.

Gary

"Swanson, Brion" wrote:
> 
> I found the following snippet of code in
> org.apache.xalan.transformer.TransformerImpl.java:
> 
> public ContentHandler createResultContentHandler(
>           Result outputTarget, OutputProperties format) {
> 
>       // ...code skipped...
> 
>       if (null != outputNode)
>       {
>             // ...more code ignored...
>       }
>       else
>       {
>         doc = getXPathContext().getDOMHelper().createDocument();
>           // ...etc
>         }
> }
> 
> What confuses me is that I cannot find a 'getDOMHelper' method anywhere in
> the Xalan 2 package.  Also, even if it did exist, the DOMHelper class claims
> it is deprecated - so why is it being used to create a Document?
> 
> If anyone can help clear this up for me, I'd greatly appreciate it.
> 
> Thank you,
> Brion Swanson
> 
> --------------
> Brion Swanson
> Software Engineer (Co-op)
> West Group - Public Records
> [EMAIL PROTECTED]
> 716-327-6164 (x6164)

Reply via email to