org.apache.commons.jxpath.ri.JXPathContextReferenceImpl |
Line |
(work in progress) - trying to integrate with Xalan Object ctxNode = getNativeContextNode(expression); if (ctxNode != null) { System.err.println("WILL USE XALAN: " + xpath); CachedXPathAPI api = new CachedXPathAPI(); try { if (expression instanceof Path) { Node node = api.selectSingleNode((Node)ctxNode, xpath); System.err.println("NODE: " + node); if (node == null) { return null; } return new DOMNodePointer(node, null).getValue(); } else { XObject object = api.eval((Node)ctxNode, xpath); switch (object.getType()) { case XObject.CLASS_STRING: return object.str(); case XObject.CLASS_NUMBER: return new Double(object.num()); case XObject.CLASS_BOOLEAN: return new Boolean(object.bool()); default: System.err.println("OTHER TYPE: " + object.getTypeString()); } } } catch (TransformerException e) { |
498 |
Auto-generated catch block e.printStackTrace(); } return } |
524 |
org.apache.commons.jxpath.ri.model.container.ContainerPointer |
Line |
what if this is a collection? |
177 |
org.apache.commons.jxpath.ri.model.dynamic.DynamicPropertiesModelTest |
Line |
more iterator testing with maps |
35 |