public int getTargetNode ( XPathContext xctxt , int sourceNode ) throws TransformerException { int target = DTM . NULL ; XPath countMatchPattern = getCountMatchPattern ( xctxt , sourceNode ) ; if ( Constants . NUMBERLEVEL_ANY == m_level ) { target = findPrecedingOrAncestorOrSelf ( xctxt , m_fromMatchPattern , countMatchPattern , sourceNode , this ) ; } else { target = findAncestor ( xctxt , m_fromMatchPattern , countMatchPattern , sourceNode , this ) ; } return target ; }
Get the target node that will be counted ..