Yes.  That is what I was looking into as well but there are a number of
callers.  Actually, I was thinking of passing in an XPathContext because
that seems to be available when needed.  There are some cases where an
empty NodeSetDTM is created and never populated so those don't really
need an XPathContext (or DTMManager) if it isn't available which it
isn't in some cases.

Here is my list of callers to the NodeSetDTM constructor:

org.apache.xalan.extensions.XSLProcessorContext
          .xalan.templates.ElemNumber
          .xalan.transformer.Counters
          .xalan.transformer.CountersTable
          .xpath.axes.LocPathIterator
          .xpath.axes.UnionPathIterator
          .xpath.functions.FuncExtFunction
          .xpath.objects.XNodeSet
          .xpath.objects.XObject
          .xpath.objects.XRTreeFrag

If you could do this, it would be great since I have lots of real work
to do :)
Also, please be sure to update bug 2642.

Gary


[EMAIL PROTECTED] wrote:
> 
> No, that's what I'm thinking too. I was thinking of passing in a DTMManager
> when we create a NodeSetDTM. The question is, when we create these things,
> do we always have one available?
> I'll look into it some more.
> Thanks,
> Myriam
> 
> 
>                     Gary L Peskin
>                     <garyp@firstec       To:     [EMAIL PROTECTED]
>                     h.com>               cc:     (bcc: Myriam Midy/CAM/Lotus)
>                                          Subject:     Re: Using XPath id() function 
>in
>                     07/16/01 03:48        Xalan's XPathAPI
>                     PM
>                     Please respond
>                     to xalan-dev
> 
> 
> 
> Myriam --
> 
> I entered this as bugzilla 2642.  The problem is that
> org.apache.xpath.NodeSetDTM returns null for getDTM().  Is this what
> you're talking about?  If so, please go ahead and fix it since I was
> still trying to figure out where to get the DTMManager into NodeSetDTM.
> If you're thinking about something else, please let me know.
> 
> Actually, please let me know one way or the other.
> 
> Gary
> 
> [EMAIL PROTECTED] wrote:
> >
> > Gary, are you looking at fixing this bug? I think I know what needs to be
> > done, but I don't want to do anymore if you're already working on it.
> >
> > Thanks,
> > Myriam

Reply via email to