Examples of PendingUpdateList


Examples of client.net.sf.saxon.ce.trans.update.PendingUpdateList

        if (!(element instanceof HTMLNodeWrapper && ((HTMLNodeWrapper)element).getUnderlyingNode() instanceof Element)) {
            return null;
        }

        Element parent = (Element)((HTMLNodeWrapper)element).getUnderlyingNode();
        final PendingUpdateList pul = context.getController().getPendingUpdateList();
        SequenceIterator iter = content.iterate(context);
        while (true) {
            Item att = iter.next();
            if (att == null) {
                break;
            }
            if (att instanceof NodeInfo && ((NodeInfo)att).getNodeKind() == Type.ATTRIBUTE) {
                pul.add(new SetAttributeAction(parent, ((NodeInfo)att).getURI(), ((NodeInfo)att).getLocalPart(), att.getStringValue()));
            }
        }

        return null;
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.update.PendingUpdateList

        if (!(element instanceof HTMLNodeWrapper && ((HTMLNodeWrapper)element).getUnderlyingNode() instanceof Element)) {
            return null;
        }

        Element parent = (Element)((HTMLNodeWrapper)element).getUnderlyingNode();
        final PendingUpdateList pul = context.getController().getPendingUpdateList();
        SequenceIterator iter = content.iterate(context);
        while (true) {
            Item att = iter.next();
            if (att == null) {
                break;
            }
            if (att instanceof NodeInfo && ((NodeInfo)att).getNodeKind() == Type.ATTRIBUTE) {
                pul.add(new RemoveAttributeAction(parent, ((NodeInfo)att).getURI(), ((NodeInfo)att).getLocalPart()));
            }
        }

        return null;
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.update.PendingUpdateList

        initialContextItem = null;
        initialMode = null;
        initialTemplate = null;
        initialTemplateName = null;
        clearPerTransformationData();
        pendingUpdateList = new PendingUpdateList(config);
        targetNode = null;
        commandType = APIcommand.NONE;
        resultDocumentPool = null;
        openHTMLWriter = null;
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.update.PendingUpdateList

            throw err;
        }
        controller.closeResult(out, c2);
       
        if (command == APIcommand.UPDATE_HTML){
          PendingUpdateList list = controller.getPendingUpdateList();
          if (action == REPLACE_CONTENT && command == APIcommand.UPDATE_HTML) {
            int existingChildren = targetNode.getChildCount();
              for (int i=0; i<existingChildren; i++) {
                  Node child = targetNode.getChild(i);
                  list.add(new DeleteAction(child));
              }
          }
 
          list.add(new InsertAction(container, targetNode, InsertAction.LAST));
        }
        //controller.setResultTree(absoluteResultURI.toString(), root);
        return null;
    }
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.