My initial intention was to do the same thing in Xalan-C. However, I was worried that tracking the lifetime of the nodes would be expensive.
The joys of garbage collection... Michael Kay