Package org.apache.xalan.xsltc.dom

Examples of org.apache.xalan.xsltc.dom.DOMAdapter


  if (dom instanceof MultiDOM) {
            final MultiDOM multiDOM = (MultiDOM) dom;

      // Create DOMAdapter and register with MultiDOM
      DOMAdapter domAdapter = new DOMAdapter(idom,
                translet.getNamesArray(),
    translet.getNamespaceArray());
            multiDOM.addDOMAdapter(domAdapter);

      NodeIterator iter1 = multiDOM.getAxisIterator(Axis.CHILD);
      NodeIterator iter2 = multiDOM.getAxisIterator(Axis.CHILD);
            NodeIterator iter = new AbsoluteIterator(
                new StepIterator(iter1, iter2));

       iter.setStartNode(DOM.ROOTNODE | domAdapter.getMultiDOMMask());
      return iter;
  }
        else {
      runTimeError(RUN_TIME_INTERNAL_ERR, "nodeList2Iterator()");
      return null;
View Full Code Here



    public final DOMAdapter makeDOMAdapter(DOM dom)
  throws TransletException {
  if (dom instanceof DOMImpl) {
      return new DOMAdapter((DOMImpl)dom, namesArray, namespaceArray);
  }
  else {
      throw new TransletException("wrong type of source DOM");
  }
    }
View Full Code Here

TOP

Related Classes of org.apache.xalan.xsltc.dom.DOMAdapter

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.