I noted that TreeWalker::traverse comes in different flavors, but the one used 
in XalanTransform::compileStylesheet was
traverse(XalanNode *pos) which did not concern itself with parent nodes, so I 
changed that and it
works like a charm. 

/Rob

> 
> Ah, I think I see the problem. The TreeWalker::traverse 
> method assumes that the node passed to it is the
> _main_ node of the DOM, which means that calling 
> XalanNode::getParent() of it will return NULL. 
> However, in my case, getParent() will _not_ return NULL 
> (because its a subtree node) meaning that the traversal 
> will continue.
> 
> A check ought to be made that if getParent() returns the same 
> value as that of the original node passed to
> traverse, the traversal should terminate.
> 
> I'll try compile that and get back.
> 

Reply via email to