📄 outputkeys.html
字号:
<DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.METHOD">Constant Field Values</A></DL></DL><HR><A NAME="VERSION"><!-- --></A><H3>VERSION</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>VERSION</B></PRE><DL><DD>version = <var>nmtoken</var>. <p><code>version</code> specifies the version of the output method.</p> <p>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.</p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.VERSION">Constant Field Values</A></DL></DL><HR><A NAME="ENCODING"><!-- --></A><H3>ENCODING</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>ENCODING</B></PRE><DL><DD>encoding = <var>string</var>. <p><code>encoding</code> specifies the preferred character encoding that the Transformer should use to encode sequences of characters as sequences of bytes. The value of the attribute 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 <code>charset</code> registered with the Internet Assigned Numbers Authority <a href="#IANA">[IANA]</a>, <a href="#RFC2278">[RFC2278]</a> or start with <code>X-</code>.</p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.ENCODING">Constant Field Values</A></DL></DL><HR><A NAME="OMIT_XML_DECLARATION"><!-- --></A><H3>OMIT_XML_DECLARATION</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>OMIT_XML_DECLARATION</B></PRE><DL><DD>omit-xml-declaration = "yes" | "no". <p><code>omit-xml-declaration</code> specifies whether the XSLT processor should output an XML declaration; the value must be <code>yes</code> or <code>no</code>.</p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.OMIT_XML_DECLARATION">Constant Field Values</A></DL></DL><HR><A NAME="STANDALONE"><!-- --></A><H3>STANDALONE</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>STANDALONE</B></PRE><DL><DD>standalone = "yes" | "no". <p><code>standalone</code> specifies whether the Transformer should output a standalone document declaration; the value must be <code>yes</code> or <code>no</code>.</p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.STANDALONE">Constant Field Values</A></DL></DL><HR><A NAME="DOCTYPE_PUBLIC"><!-- --></A><H3>DOCTYPE_PUBLIC</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>DOCTYPE_PUBLIC</B></PRE><DL><DD>doctype-public = <var>string</var>. <p>See the documentation for the <A HREF="../../../javax/xml/transform/OutputKeys.html#DOCTYPE_SYSTEM"><CODE>DOCTYPE_SYSTEM</CODE></A> property for a description of what the value of the key should be.</p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.DOCTYPE_PUBLIC">Constant Field Values</A></DL></DL><HR><A NAME="DOCTYPE_SYSTEM"><!-- --></A><H3>DOCTYPE_SYSTEM</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>DOCTYPE_SYSTEM</B></PRE><DL><DD>doctype-system = <var>string</var>. <p><code>doctype-public</code> specifies the public identifier to be used in the document type declaration.</p> <p>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 doctype-public attribute should be ignored unless the doctype-system attribute is specified.</p> <p>If the doctype-public or doctype-system attributes 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 attribute is specified, then the output method should output PUBLIC followed by the specified public identifier; if the doctype-system attribute is also specified, it should also output the specified system identifier following the public identifier. If the doctype-system attribute is specified but the doctype-public attribute is not specified, then the output method should output SYSTEM followed by the specified system identifier.</p> <p><code>doctype-system</code> specifies the system identifier to be used in the document type declaration.</p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.DOCTYPE_SYSTEM">Constant Field Values</A></DL></DL><HR><A NAME="CDATA_SECTION_ELEMENTS"><!-- --></A><H3>CDATA_SECTION_ELEMENTS</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CDATA_SECTION_ELEMENTS</B></PRE><DL><DD>cdata-section-elements = <var>expanded names</var>. <p><code>cdata-section-elements</code> specifies a whitespace delimited list of the names of elements whose text node children should be output using CDATA sections.</p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation.</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.CDATA_SECTION_ELEMENTS">Constant Field Values</A></DL></DL><HR><A NAME="INDENT"><!-- --></A><H3>INDENT</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>INDENT</B></PRE><DL><DD>indent = "yes" | "no". <p><code>indent</code> specifies whether the Transformer may add additional whitespace when outputting the result tree; the value must be <code>yes</code> or <code>no</code>. </p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.INDENT">Constant Field Values</A></DL></DL><HR><A NAME="MEDIA_TYPE"><!-- --></A><H3>MEDIA_TYPE</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>MEDIA_TYPE</B></PRE><DL><DD>media-type = <var>string</var>. <p><code>media-type</code> specifies the media type (MIME content type) of the data that results from outputting the result tree. The <code>charset</code> parameter should not be specified explicitly; instead, when the top-level media type is <code>text</code>, a <code>charset</code> parameter should be added according to the character encoding actually used by the output method. </p><P><DL><DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>, <A HREF="../../../constant-values.html#javax.xml.transform.OutputKeys.MEDIA_TYPE">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../javax/xml/transform/Transformer.html" title="class in javax.xml.transform"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="OutputKeys.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#methods_inherited_from_class_java.lang.Object">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | METHOD</FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -