Package client.net.sf.saxon.ce.dom

Examples of client.net.sf.saxon.ce.dom.HTMLDocumentWrapper


        com.google.gwt.dom.client.Document page = ((Node)jsValue).getOwnerDocument();
        if (page == null ) {
       com.google.gwt.dom.client.Document doc = (Document)jsValue;
       DocType jsDocType = (doc == Document.get())? DocType.UNKNOWN : DocType.NONHTML;
       HTMLDocumentWrapper docWrapper =  new HTMLDocumentWrapper(doc, doc.getURL(), config, jsDocType);
       return SingletonIterator.makeIterator(docWrapper);
        } else {
      DocType jsDocType = (page == Document.get())? DocType.UNKNOWN : DocType.NONHTML;
          HTMLDocumentWrapper htmlDoc = new HTMLDocumentWrapper(page, page.getURL(), config, jsDocType);
          HTMLNodeWrapper htmlNode = htmlDoc.wrap((Node) jsValue);
          return SingletonIterator.makeIterator(htmlNode);
        }         
   }
View Full Code Here


              if (nodeType > 0 && nodeType != Node.DOCUMENT_NODE) {
                // add a document node wrapper
                Node sourceNode = (Node)inSourceDoc;
                Document sourceDoc = sourceNode.getOwnerDocument();
                  HTMLDocumentWrapper htmlDoc = new HTMLDocumentWrapper(sourceDoc, sourceDoc.getURL(), config, DocType.UNKNOWN);
                  fetchedSourceDoc = htmlDoc.wrap(sourceNode);
              } else {
                fetchedSourceDoc = SaxonceApi.getDocSynchronously(inSourceDoc, config);
              }
            }
            // this method only runs if transformInvoked == false - need to get sourceDoc reference if not invoked
View Full Code Here

   
    public DocumentInfo getHostPage(){
      // attempt to initialise this only once - in the Configuration constructor led
      // to NamePool exception
        Document page = Document.get();
        return new HTMLDocumentWrapper(page, page.getURL(), this, DocType.UNKNOWN);
    }
View Full Code Here

            throw new XPathException("null returned for " + url);
          }
        } catch (Exception ec) {
          throw new XPathException("XML parser error: " + ec.getMessage());
        }
        return new HTMLDocumentWrapper(jsDoc, url, Configuration.this, DocType.NONHTML);
    }
View Full Code Here

        return new HTMLDocumentWrapper(jsDoc, url, Configuration.this, DocType.NONHTML);
    }
   
  
    public DocumentInfo wrapHTMLDocument(com.google.gwt.dom.client.Document doc, String uri) {
      return new HTMLDocumentWrapper(doc, uri, Configuration.this, DocType.UNKNOWN);
    }
View Full Code Here

    public DocumentInfo wrapHTMLDocument(com.google.gwt.dom.client.Document doc, String uri) {
      return new HTMLDocumentWrapper(doc, uri, Configuration.this, DocType.UNKNOWN);
    }
   
    public DocumentInfo wrapXMLDocument(Node doc, String uri) {
      return new HTMLDocumentWrapper(doc, uri, Configuration.this, DocType.NONHTML);
    }
View Full Code Here

              contextItem = currentContextItem;
              if (LogConfiguration.loggingIsEnabled() && contextItem.getNodeKind() == Type.ELEMENT) {
                contextNodeName = controller.getNamePool().getLocalName(contextItem.getNameCode());
              }
            } else {
              contextItem = new HTMLDocumentWrapper(page, page.getURL(), context.getConfiguration(), DocType.UNKNOWN);
            }
            if (LogConfiguration.loggingIsEnabled()) {
              contextNodeName = (contextNodeName.equals("")? "" : " context node: " + contextNodeName);
            }
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.dom.HTMLDocumentWrapper

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.