Module java.xml

Class OutputKeys

    • Field Detail

      • VERSION

        public static final String VERSION
        version = nmtoken.

        version specifies the version of the output method.

        When the output method is "xml", the version value specifies the version of XML to be used for outputting the result tree. The default value for the xml output method is 1.0. When the output method is "html", the version value indicates the version of the HTML. The default value for the xml output method is 4.0, which specifies that the result should be output as HTML conforming to the HTML 4.0 Recommendation [HTML]. If the output method is "text", the version property is ignored.

        See Also:
        section 16 of the XSL Transformations (XSLT) W3C Recommendation, Constant Field Values
      • ENCODING

        public static final String ENCODING
        encoding = string.

        encoding specifies the preferred character encoding that the Transformer should use to encode sequences of characters as sequences of bytes. The value of the encoding property should be treated case-insensitively. The value must only contain characters in the range #x21 to #x7E (i.e., printable ASCII characters). The value should either be a charset registered with the Internet Assigned Numbers Authority [IANA], [RFC2278] or start with X-.

        See Also:
        section 16 of the XSL Transformations (XSLT) W3C Recommendation, Constant Field Values
      • DOCTYPE_SYSTEM

        public static final String DOCTYPE_SYSTEM
        doctype-system = string.

        doctype-system specifies the system identifier to be used in the document type declaration.

        If the doctype-system property is specified, the xml output method should output a document type declaration immediately before the first element. The name following <!DOCTYPE should be the name of the first element. If doctype-public property is also specified, then the xml output method should output PUBLIC followed by the public identifier and then the system identifier; otherwise, it should output SYSTEM followed by the system identifier. The internal subset should be empty. The value of the doctype-public property should be ignored unless the doctype-system property is specified.

        If the doctype-public or doctype-system properties are specified, then the html output method should output a document type declaration immediately before the first element. The name following <!DOCTYPE should be HTML or html. If the doctype-public property is specified, then the output method should output PUBLIC followed by the specified public identifier; if the doctype-system property is also specified, it should also output the specified system identifier following the public identifier. If the doctype-system property is specified but the doctype-public property is not specified, then the output method should output SYSTEM followed by the specified system identifier.

        doctype-system specifies the system identifier to be used in the document type declaration.

        See Also:
        section 16 of the XSL Transformations (XSLT) W3C Recommendation, Constant Field Values
      • MEDIA_TYPE

        public static final String MEDIA_TYPE
        media-type = string.

        media-type specifies the media type (MIME content type) of the data that results from outputting the result tree. The charset parameter should not be specified explicitly; instead, when the top-level media type is text, a charset parameter should be added according to the character encoding actually used by the output method.

        See Also:
        s ection 16 of the XSL Transformations (XSLT) W3C Recommendation, Constant Field Values