internal bool MoveToAttribute(string name, string URN, int depth) {
if (! this.subtree.IsAttribute) {
return false;
}
if (! Equal (this.subtree.TopNode.Name, this.subtree.TopNode.Urn, name, URN) ) {
return false;
}
bool result = false;
// no stack element for single attribute, so dealing with it seperately
if (this.subtree.TopNode.Input == null) {
return (this.subtree.IsDss || (depth == 1));
}
foreach (AxisElement eaxis in this.stack) {
if ((eaxis.isMatch) && ( eaxis.CurNode == this.subtree.TopNode.Input )) {
result = true;
}
}
return result;
}