public ForwardAxis (DoubleLinkAxis axis, bool isdesorself) {
this.isDss = isdesorself;
this.isAttribute = Asttree.IsAttribute (axis);
this.topNode = axis;
this.rootNode = axis;
while ( this.rootNode.Input != null ) {
this.rootNode = (DoubleLinkAxis)(this.rootNode.Input);
}
// better to calculate it out, since it's used so often, and if the top is self then the whole tree is self
this.isSelfAxis = Asttree.IsSelf (this.topNode);
}
}