Package com.volantis.mcs.dom

Examples of com.volantis.mcs.dom.DocType


        XMLDeclaration declaration = document.getDeclaration();
        if (declaration != null) {
            documentWriter.outputXMLDeclaration(declaration);
        }

        DocType docType = document.getDocType();
        if (docType != null) {
            documentWriter.outputDocType(docType);
        }

        assertEquals("Protocol string should match",
View Full Code Here


    //   Page element methods.
    // ========================================================================

    // Javadoc inherited from super class.
    protected void doProtocolString(Document document) {
        DocType docType = domFactory.createDocType(
                "WML", null, null,
                "<!ENTITY nbsp \"&#160;\">\n" +
                "<!ENTITY quot \"&#34;\">\n" +
                "<!ENTITY amp \"&#38;#38;\">\n" +
                "<!ENTITY apos \"&#39;\">\n" +
View Full Code Here

            String publicId, String systemId, String internalDTD,
            String expectedOutput) throws IOException {

        StringWriter writer = new StringWriter();

        DocType docType = new DocTypeImpl(
                "root", publicId, systemId, internalDTD, MarkupFamily.SGML);

        DocumentWriter documentWriter = new XMLDocumentWriter(writer);
        documentWriter.outputDocType(docType);
        assertEquals(expectedOutput, writer.getBuffer().toString());
View Full Code Here

            XMLDeclaration declaration = document.getDeclaration();
            if (declaration != null) {
                writer.outputXMLDeclaration(declaration);
            }

            DocType docType = document.getDocType();
            if (docType != null) {
                Element element = document.getRootElement();
                String rootElement = element.getName();

                MarkupFamily family = docType.getMarkupFamily();
                String expectedRoot = docType.getRoot();
                if (!family
                        .compareRootElementNames(rootElement, expectedRoot)) {
                    throw new IllegalStateException(
                            "Expected root element name" + expectedRoot +
                                    " does not match actual root element name " +
View Full Code Here

        supportsDissectingPanes = true;
    }

    protected void doProtocolString(Document document) {
        DocType docType = domFactory.createDocType(
                "HTML", "-//W3C//DTD HTML 4.01 Transitional//EN",
                "http://www.w3.org/TR/html4/loose.dtd",
                null, MarkupFamily.SGML);
        document.setDocType(docType);
    }
View Full Code Here

        // hr is supported
    }

    // javadoc inherited
    protected void doProtocolString(Document document) {
        DocType docType = domFactory.createDocType(
                "html", "-//WAPFORUM//DTD XHTML Mobile 1.0//EN",
                "http://www.wapforum.org/DTD/xhtml-mobile10.dtd", null,
                MarkupFamily.XML);
        document.setDocType(docType);
View Full Code Here

        supportsLocalSourceImg = true;
    }

    // Javadoc inherited from super class.
    protected void doProtocolString(Document document) {
        DocType docType = domFactory.createDocType(
                "html", "-//OPENWAVE//DTD XHTML Mobile 1.0//EN",
                "http://www.openwave.com/dtd/xhtml-mobile10.dtd", null,
                MarkupFamily.XML);
        document.setDocType(docType);
    }
View Full Code Here

        supportsNestedTables = false;
    }

    // Javadoc inherited.
    protected void doProtocolString(Document document) {
        DocType docType = domFactory.createDocType(
                "html", "-//POS//DTD WCA HTML 1.1//EN",
                "http://www.palm.com/dev/webclippinghtml-dtd-11.dtd", null,
                MarkupFamily.SGML);
        document.setDocType(docType);
    }
View Full Code Here

        }
    }

    // Javadoc inherited from super class.
    protected void doProtocolString(Document document) {
        DocType docType = domFactory.createDocType(
                "html", "-//W3C//DTD XHTML 1.0 Strict//EN",
                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd", null,
                MarkupFamily.XML);
        document.setDocType(docType);
    }
View Full Code Here

    // ==========================================================================
    //   Page element methods
    // ==========================================================================

    protected void doProtocolString(Document document) {
        DocType docType = domFactory.createDocType(
                "HTML", "-//W3C//DTD HTML 4.0//EN",
                "http://www.w3.org/TR/REC-html40/loose.dtd",
                null, MarkupFamily.SGML);
        document.setDocType(docType);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.dom.DocType

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.