On 11 Dec 2001, Christian Nentwich wrote: > > I'm trying to find out how the ancestor:: axis works.. The > DefaultNavigator returns an AncestorAxisIterator, which calls the object > model navigator's getParentAxisIterator method. > > I don't understand why the ancestor iterator (in util) returns a pointer > to the parent iterator (instead of calling the object model's > getAncestorAxisIterator). Can someone enlighten me?
I thnk its based on the StackIterator, which calls for the parent iterator, and then that object's parent, and then that object's parent, and so forth. Ancestor ends up being just a synthesis of the Parent axis recursively applied. It's one of those axes that you get 'for free' when you provide a parent axis iterator. -bob _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest