Examples of DocType


Examples of org.jdom2.DocType

    @Test
  @Ignore
  // TODO
    public void testRTOutputDocumentFull() {
      Document doc = new Document();
      DocType dt = new DocType("root");
      dt.setInternalSubset(" ");
      doc.addContent(dt);
      doc.addContent(new Comment("This is a document"));
      doc.addContent(new ProcessingInstruction("jdomtest", ""));
      Element e = new Element("root");
      e.addContent(new EntityRef("ref"));
View Full Code Here

Examples of org.ogce.xregistry.utils.XRegClientConstants.DocType

        return ServiceConstants.ERROR_STATUS;
      }
        ApplicationGlobalContext context = (ApplicationGlobalContext)facesContext.getExternalContext().getSessionMap().get("applicationGlobalContext");
          StringBuffer resultsAsStr = new StringBuffer();
          resultsAsStr.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
      DocType type = XRegClientConstants.DocType.valueOf(doctype);
            switch (type) {
            case AppDesc:
              String [] splitNames = objectName.split("#");
            if(splitNames != null && splitNames.length == 2){
              resultsAsStr.append(context.getRegService().getAppDesc(splitNames[0], splitNames[1]));
View Full Code Here

Examples of org.pdf4j.saxon.instruct.Doctype

    public Expression compile(Executable exec) throws XPathException {
        Expression content = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true);
        if (content == null) {
            content = Literal.makeEmptySequence();
        }
        Doctype inst = new Doctype(content);
        return inst;
    }
View Full Code Here

Examples of org.thymeleaf.dom.DocType

        final String docTypePublicId = handler.getDocTypePublicId();
        final String docTypeSystemId = handler.getDocTypeSystemId();
       
        // The DOCTYPE root element name could be null if we are parsing
        // a non-complete document, a fragment, without a DOCTYPE declaration.
        final DocType docType =
                (docTypeRootElementName != null?
                        new DocType(docTypeRootElementName, docTypePublicId, docTypeSystemId, docTypeClause) :
                        null);
       
        final List<Node> rootNodes = handler.getRootNodes();
       
        final String xmlVersion = handler.getXmlVersion();
View Full Code Here

Examples of org.zkoss.idom.DocType

  }
  private final Document processDocType(final Document doc) {
    if (!_outDocType)
      return doc;

    final DocType dt = doc.getDocType();
    if (dt == null)
      return doc;

    final String sysid = dt.getSystemId();
    if (sysid != null && sysid.length() > 0)
      _tfmr.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, sysid);
    final String pubid = dt.getPublicId();
    if (pubid != null && pubid.length() > 0)
      _tfmr.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, pubid);
    return doc;
  }
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.