Examples of buildDocument()


Examples of net.sf.saxon.query.StaticQueryContext.buildDocument()

        XQueryExpression exp = runtimeConfig.getXQueryExpressionPool().getCompiledExpression(xpath);
        DynamicQueryContext dynamicContext = new DynamicQueryContext(config);
        StringReader reader = new StringReader(xml);

        dynamicContext.setContextItem(sqc.buildDocument(new StreamSource(reader)));

        return createListOfXmlNodes(exp, dynamicContext);
    }

    /**
 
View Full Code Here

Examples of nl.vu.few.anytimereasoning.workbench.utils.XMLManager.buildDocument()

  }

  private void saveResults(RunResult results, String filename)
  {
    XMLManager xmlManager = new XMLManager();
    Document doc = xmlManager.buildDocument(results, filename);
    XMLOutputter xmlOut = new XMLOutputter();
    xmlOut.outputToFileAppend(doc, filename);
  }

  private void initLogger(String logFile)
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

        getFirstarea(),
        srcDocumentid,
        language);
    Document srcDoc;
    try {
      srcDoc = builder.buildDocument(publication, srcUrl);
    } catch (DocumentBuildException e) {
      throw new BuildException(e);
    }
    ResourcesManager resourcesMgr = new ResourcesManager(srcDoc);
    List resources = new ArrayList(Arrays.asList(resourcesMgr.getResources()));
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

        getSecarea(),
        destDocumentid,
        language);
    Document destDoc;
    try {
      destDoc = builder.buildDocument(publication, destUrl);
    } catch (DocumentBuildException e) {
      throw new BuildException(e);
    }
    resourcesMgr = new ResourcesManager(destDoc);
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

          getFirstarea(),
          srcDocumentid,
          language);
      Document doc;
      try {
        doc = builder.buildDocument(publication, url);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }
      File srcFile = doc.getFile();
      if (!srcFile.exists()) {
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

        String rights)
        throws BuildException, DocumentBuildException, DocumentException {

        DocumentBuilder builder = getPublication().getDocumentBuilder();
        String url = builder.buildCanonicalUrl(getPublication(), area, documentId, lang);
        Document doc = builder.buildDocument(getPublication(), url);
        DublinCore dc = doc.getDublinCore();
        dc.setValue(DublinCore.ELEMENT_CREATOR, creator);
        dc.setValue(DublinCore.ELEMENT_TITLE, title);
        dc.setValue(DublinCore.ELEMENT_DESCRIPTION, description);
        dc.setValue(DublinCore.ELEMENT_SUBJECT, subject);
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

                        if (url.startsWith(contextPath + "/" + publication.getId())) {
                            final String webappUrl = url.substring(contextPath.length());
                           
                            if (builder.isDocument(publication, webappUrl)) {
                                Document targetDocument = builder.buildDocument(publication, webappUrl);

                                if (matches(targetDocument, originalTargetDocument)) {
                                    String newTargetUrl = getNewTargetURL(targetDocument,
                                            originalTargetDocument,
                                            newTargetDocument);
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

      Document newdocument;
      WorkflowFactory factory = WorkflowFactory.newInstance();
     
      log("init workflow history");
      try {
        document = builder.buildDocument(publication, srcUrl);
        newdocument = builder.buildDocument(publication, destUrl);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }
      try {
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

      WorkflowFactory factory = WorkflowFactory.newInstance();
     
      log("init workflow history");
      try {
        document = builder.buildDocument(publication, srcUrl);
        newdocument = builder.buildDocument(publication, destUrl);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }
      try {
        if (factory.hasWorkflow(document)) {
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

        Publication publication = getPublication();
        DocumentBuilder builder = publication.getDocumentBuilder();
        String url = builder.buildCanonicalUrl(publication, area, documentId, language);
        Document document;
        try {
            document = builder.buildDocument(publication, url);
        } catch (Exception e) {
            throw new ExecutionException(e);
        }
        return document;
    }
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.