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;