PreserveWhitespace() public abstract method

public abstract PreserveWhitespace ( XPathNavigator node ) : bool
node XPathNavigator
return bool
示例#1
0
 internal int getNonWSCount(XsltContext context) {
     if (NonWSCount == 0) {
         for(int i=0; i < _Stk.Count; i++) {
             XPathNavigator nav = _Stk[i] as XPathNavigator;
             if (nav.NodeType != XPathNodeType.Whitespace || context.PreserveWhitespace(nav)) {
                 NonWSCount++;
             }
         }
     }
     return NonWSCount;
 }