Package org.exist.dom

Examples of org.exist.dom.NodeAtExist


      }
     
      //XXX: performance !?! how to get subelements sequence?? fast...
      if (!matched) {
        if (item instanceof ElementAtExist || item instanceof DocumentAtExist) {
          NodeAtExist node = (NodeAtExist) item;
         
          NodeList children = node.getChildNodes();
          for (int i=0; i<children.getLength(); i++) {
            NodeAtExist child = (NodeAtExist)children.item(i);
           
//            if (child instanceof Text) {
//                        MemTreeBuilder builder = context.getDocumentBuilder();
//                    builder.characters(item.getStringValue());
//                    result.add(item);
View Full Code Here


   
    NodeList children = node.getChildNodes();
    for (int i=0; i<children.getLength(); i++) {
      constructer = null;
     
      NodeAtExist child = (NodeAtExist)children.item(i);
      if (isXSLElement(child)) {
        XSLElement xslElement = (XSLElement) child;
        content.add(xslElement.compile(context));
      } else {
        constructer = getNodeConstructor(context, child, content);
View Full Code Here

    if (!node.hasChildNodes())
      return;
   
    NodeList children = node.getChildNodes();
    for (int i=0; i<children.getLength(); i++) {
      NodeAtExist child = (NodeAtExist)children.item(i);
      if (isXSLElement(child)) {
        XSLElement xslElement = (XSLElement) child;
        xslElement.preprocess(context);
      } else {
        preprocessNode(context, child);
View Full Code Here

    DocumentAtExist document = getDocumentAtExist();
   
    nl = new NodeListImpl();
    int nextNode = document.getFirstChildFor(getNodeNumber());
    while (nextNode > getNodeNumber()) {
      NodeAtExist n = document.getNode(nextNode);

      if (n instanceof ElementAtExist) {
        n = new XSLElement((ElementAtExist) n);
      }
     
View Full Code Here

  @Override
  public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException {

    if (!contextSequence.isEmpty() && contextSequence.hasOne()) {
      NodeAtExist docNode = (NodeAtExist) args[0].itemAt(0);
      return new StringValue(docNode.getNodeId().toString());
    }

    return new StringValue("generate-id"); // XXX: error?
  }
View Full Code Here

TOP

Related Classes of org.exist.dom.NodeAtExist

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.