[XML-SIG] Re: [4suite] ReleaseNode interface in 4XSLT
Mike Olson
Mike.Olson@fourthought.com
Sun, 13 May 2001 12:27:00 -0600
"Martin v. Loewis" wrote:
>
> [yes, I indeed meant to cross-post to xml-sig]
>
> > Wouldn't it be better to make up a Reader class for minidom which
> > implements a releaseNode method similar to what you have above? The
> > idea behind the reader architecture is to manage such things.
>
> How would that work? Assume there was a reader class for minidom, and
> the XSLT runtime had a node object. How can you release the node?
>
> Or do you need to know the reader class which originally created that
> node as well? That would be not so good: the node might not have been
> created by a reader at all, as it might have come directly from the
> DOM implementation.
This is why I vote for either the implementation has the releaseNode
function, or the node itself. Readers are great for an abstract way of
creating a DOM (atleast until we all support level III), but without a
releationship between a node instance and its reader they don't work
very well for releasing them. I also did not think of your point of
nodes created without a reader but it is a good one.
--
Mike Olson Principal Consultant
mike.olson@fourthought.com (303)583-9900 x 102
Fourthought, Inc. http://Fourthought.com
Software-engineering, knowledge-management, XML, CORBA, Linux, Python