Package net.sf.saxon.pattern

Examples of net.sf.saxon.pattern.NodeTest.matches()


    MatchContext newContext = new MatchContext();
    if (mc.elementArcs != null) {
      for (PathMapArc arc : mc.elementArcs) {
        AxisExpression ae = arc.getStep();
        NodeTest test = ae.getNodeTest();
        if (test == null || test.matches(Type.ELEMENT, nameCode, typeCode)) {
          newContext.bulidContext(arc.getTarget());
          newContext.matchedElement = true;
        }
        if (ae.getAxis() == Axis.DESCENDANT || ae.getAxis() == Axis.DESCENDANT_OR_SELF) {
          newContext.processArc(arc);
View Full Code Here


    }
    if (mc.attributeArcs != null) {
      for (PathMapArc arc : mc.attributeArcs) {
        AxisExpression ae = arc.getStep();
        NodeTest test = ae.getNodeTest();
        if (test == null || test.matches(Type.ATTRIBUTE, nameCode, typeCode)) {
          super.attribute(nameCode, typeCode, value, locationId, properties);
          return;
        }
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.