Package org.exist.xquery

Examples of org.exist.xquery.AnyNodeTest


  }
 
  public void validate() throws XPathException {
    if (select == null) {
      select = new XSLPathExpr(getXSLContext());
      select.add(new LocationStep(getContext(), Constants.SELF_AXIS, new AnyNodeTest()));
    }
   
  }
View Full Code Here


  public static void parse(XQueryContext context, String pattern, XSLPathExpr content) throws XPathException {
    boolean xpointer = false;
   
    //TODO: rewrite RootNode?
    if (pattern.equals("//")) {
      content.add(new LocationStep(context, Constants.SELF_AXIS, new AnyNodeTest()));
      return;
    }
    if (pattern.equals("/")) {
      content.add(new LocationStep(context, Constants.SELF_AXIS, new AnyNodeTest()));
      return;
    }
   
    Source source = new StringSource(pattern);
        Reader reader;
View Full Code Here

                LocationStep location = (LocationStep) expr;
                //TODO: rewrite
                if (location.getAxis() == Constants.ATTRIBUTE_AXIS)
                    ;
                else if (!"node()".equals(location.getTest().toString())) {
                    ((PathExpr)path).add(new LocationStep(getContext(), Constants.CHILD_AXIS, new AnyNodeTest()));
                } else {
                    location.setAxis(Constants.CHILD_AXIS);
                }
            }
        }
View Full Code Here

 
  public ForEach(XSLContext context) {
    super(context);
   
    childNodes = new PathExpr(getContext());
    childNodes.add(new LocationStep(getContext(), Constants.CHILD_AXIS, new AnyNodeTest()));

  }
View Full Code Here

  private LocationStep anyChild;

  public ApplyTemplates(XSLContext context) {
    super(context);

    anyChild = new LocationStep(getContext(), Constants.CHILD_AXIS, new AnyNodeTest());
  }
View Full Code Here

TOP

Related Classes of org.exist.xquery.AnyNodeTest

Copyright © 2018 www.massapicom. 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.