jaxp/src/share/classes/javax/xml/transform/OutputKeys.java
author ohair
Mon, 14 Apr 2008 14:52:27 -0700
changeset 311 3c14f21bf3f7
parent 6 7f561c08de6b
permissions -rw-r--r--
6484686: The next directory looks like it is no longer part of the build (deploy makefiles) Summary: Getting rid of the _OUTPUTDIR settings. Using BUILD_PARENT_DIRECTORY instead. This solves problems with the "/build/windows-i586*" paths getting mangled on Windows builds (fastdebug builds in particular). Reviewed-by: tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
/*
7f561c08de6b Initial load
duke
parents:
diff changeset
     2
 * Copyright 2000-2005 Sun Microsystems, Inc.  All Rights Reserved.
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
7f561c08de6b Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
7f561c08de6b Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
7f561c08de6b Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
 * have any questions.
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
package javax.xml.transform;
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
/**
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
 * Provides string constants that can be used to set
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
 * output properties for a Transformer, or to retrieve
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
 * output properties from a Transformer or Templates object.
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
 * <p>All the fields in this class are read-only.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
 *
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
 * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
 *  section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
 */
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
public class OutputKeys {
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
     * Default constructor is private on purpose.  This class is
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
     * only for static variable access, and should never be constructed.
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
    private OutputKeys() { }
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
     * method = "xml" | "html" | "text" | <var>expanded name</var>.
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
     * <p>The value of the method property identifies the overall method that
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
     * should be used for outputting the result tree.  Other non-namespaced
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
     * values may be used, such as "xhtml", but, if accepted, the handling
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
     * of such values is implementation defined.  If any of the method values
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
     * are not accepted and are not namespace qualified,
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
     * then {@link javax.xml.transform.Transformer#setOutputProperty}
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
     * or {@link javax.xml.transform.Transformer#setOutputProperties} will
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
     * throw a {@link java.lang.IllegalArgumentException}.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
     *  section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
    public static final String METHOD = "method";
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
     * version = <var>nmtoken</var>.
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
     * <p><code>version</code> specifies the version of the output
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
     * method.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
     * <p>When the output method is "xml", the version value specifies the
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
     * version of XML to be used for outputting the result tree. The default
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
     * value for the xml output method is 1.0. When the output method is
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
     * "html", the version value indicates the version of the HTML.
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
     * The default value for the xml output method is 4.0, which specifies
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
     * that the result should be output as HTML conforming to the HTML 4.0
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
     * Recommendation [HTML].  If the output method is "text", the version
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
     * property is ignored.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
     *  section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
    public static final String VERSION = "version";
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
     * encoding = <var>string</var>.
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
     * <p><code>encoding</code> specifies the preferred character
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
     * encoding that the Transformer should use to encode sequences of
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
     * characters as sequences of bytes. The value of the encoding property should be
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
     * treated case-insensitively. The value must only contain characters in
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
     * the range #x21 to #x7E (i.e., printable ASCII characters). The value
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
     * should either be a <code>charset</code> registered with the Internet
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
     * Assigned Numbers Authority <a href="http://www.iana.org/">[IANA]</a>,
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
     * <a href="http://www.ietf.org/rfc/rfc2278.txt">[RFC2278]</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
     * or start with <code>X-</code>.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
     * section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
    public static final String ENCODING = "encoding";
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
     * omit-xml-declaration = "yes" | "no".
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
     * <p><code>omit-xml-declaration</code> specifies whether the XSLT
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
     * processor should output an XML declaration; the value must be
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
     * <code>yes</code> or <code>no</code>.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
     *  section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
    public static final String OMIT_XML_DECLARATION = "omit-xml-declaration";
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
7f561c08de6b Initial load
duke
parents:
diff changeset
   108
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   109
     * standalone = "yes" | "no".
7f561c08de6b Initial load
duke
parents:
diff changeset
   110
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   111
     * <p><code>standalone</code> specifies whether the Transformer
7f561c08de6b Initial load
duke
parents:
diff changeset
   112
     * should output a standalone document declaration; the value must be
7f561c08de6b Initial load
duke
parents:
diff changeset
   113
     * <code>yes</code> or <code>no</code>.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   114
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
   115
     *  section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   116
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   117
    public static final String STANDALONE = "standalone";
7f561c08de6b Initial load
duke
parents:
diff changeset
   118
7f561c08de6b Initial load
duke
parents:
diff changeset
   119
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   120
     * doctype-public = <var>string</var>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   121
     * <p>See the documentation for the {@link #DOCTYPE_SYSTEM} property
7f561c08de6b Initial load
duke
parents:
diff changeset
   122
     * for a description of what the value of the key should be.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   123
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   124
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
   125
     *  section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   126
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
    public static final String DOCTYPE_PUBLIC = "doctype-public";
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   130
     * doctype-system = <var>string</var>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   131
     * <p><code>doctype-system</code> specifies the system identifier
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
     * to be used in the document type declaration.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   133
     * <p>If the doctype-system property is specified, the xml output method
7f561c08de6b Initial load
duke
parents:
diff changeset
   134
     * should output a document type declaration immediately before the first
7f561c08de6b Initial load
duke
parents:
diff changeset
   135
     * element. The name following &lt;!DOCTYPE should be the name of the first
7f561c08de6b Initial load
duke
parents:
diff changeset
   136
     * element. If doctype-public property is also specified, then the xml
7f561c08de6b Initial load
duke
parents:
diff changeset
   137
     * output method should output PUBLIC followed by the public identifier
7f561c08de6b Initial load
duke
parents:
diff changeset
   138
     * and then the system identifier; otherwise, it should output SYSTEM
7f561c08de6b Initial load
duke
parents:
diff changeset
   139
     * followed by the system identifier. The internal subset should be empty.
7f561c08de6b Initial load
duke
parents:
diff changeset
   140
     * The value of the doctype-public property should be ignored unless the doctype-system
7f561c08de6b Initial load
duke
parents:
diff changeset
   141
     * property is specified.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   142
     * <p>If the doctype-public or doctype-system properties are specified,
7f561c08de6b Initial load
duke
parents:
diff changeset
   143
     * then the html output method should output a document type declaration
7f561c08de6b Initial load
duke
parents:
diff changeset
   144
     * immediately before the first element. The name following &lt;!DOCTYPE
7f561c08de6b Initial load
duke
parents:
diff changeset
   145
     * should be HTML or html. If the doctype-public property is specified,
7f561c08de6b Initial load
duke
parents:
diff changeset
   146
     * then the output method should output PUBLIC followed by the specified
7f561c08de6b Initial load
duke
parents:
diff changeset
   147
     * public identifier; if the doctype-system property is also specified,
7f561c08de6b Initial load
duke
parents:
diff changeset
   148
     * it should also output the specified system identifier following the
7f561c08de6b Initial load
duke
parents:
diff changeset
   149
     * public identifier. If the doctype-system property is specified but
7f561c08de6b Initial load
duke
parents:
diff changeset
   150
     * the doctype-public property is not specified, then the output method
7f561c08de6b Initial load
duke
parents:
diff changeset
   151
     * should output SYSTEM followed by the specified system identifier.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   152
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   153
     * <p><code>doctype-system</code> specifies the system identifier
7f561c08de6b Initial load
duke
parents:
diff changeset
   154
     * to be used in the document type declaration.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   155
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
   156
     *  section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   157
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   158
    public static final String DOCTYPE_SYSTEM = "doctype-system";
7f561c08de6b Initial load
duke
parents:
diff changeset
   159
7f561c08de6b Initial load
duke
parents:
diff changeset
   160
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   161
     * cdata-section-elements = <var>expanded names</var>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   162
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   163
     * <p><code>cdata-section-elements</code> specifies a whitespace delimited
7f561c08de6b Initial load
duke
parents:
diff changeset
   164
     * list of the names of elements whose text node children should be output
7f561c08de6b Initial load
duke
parents:
diff changeset
   165
     * using CDATA sections. Note that these names must use the format
7f561c08de6b Initial load
duke
parents:
diff changeset
   166
     * described in the section Qualfied Name Representation in
7f561c08de6b Initial load
duke
parents:
diff changeset
   167
     * {@link javax.xml.transform}.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   168
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   169
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
   170
     *  section 16 of the XSL Transformations (XSLT) W3C Recommendation.</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   171
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   172
    public static final String CDATA_SECTION_ELEMENTS =
7f561c08de6b Initial load
duke
parents:
diff changeset
   173
        "cdata-section-elements";
7f561c08de6b Initial load
duke
parents:
diff changeset
   174
7f561c08de6b Initial load
duke
parents:
diff changeset
   175
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   176
     * indent = "yes" | "no".
7f561c08de6b Initial load
duke
parents:
diff changeset
   177
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   178
     * <p><code>indent</code> specifies whether the Transformer may
7f561c08de6b Initial load
duke
parents:
diff changeset
   179
     * add additional whitespace when outputting the result tree; the value
7f561c08de6b Initial load
duke
parents:
diff changeset
   180
     * must be <code>yes</code> or <code>no</code>.  </p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   181
     * @see <a href="http://www.w3.org/TR/xslt#output">
7f561c08de6b Initial load
duke
parents:
diff changeset
   182
     *  section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   183
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   184
    public static final String INDENT = "indent";
7f561c08de6b Initial load
duke
parents:
diff changeset
   185
7f561c08de6b Initial load
duke
parents:
diff changeset
   186
    /**
7f561c08de6b Initial load
duke
parents:
diff changeset
   187
     * media-type = <var>string</var>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   188
     *
7f561c08de6b Initial load
duke
parents:
diff changeset
   189
     * <p><code>media-type</code> specifies the media type (MIME
7f561c08de6b Initial load
duke
parents:
diff changeset
   190
     * content type) of the data that results from outputting the result
7f561c08de6b Initial load
duke
parents:
diff changeset
   191
     * tree. The <code>charset</code> parameter should not be specified
7f561c08de6b Initial load
duke
parents:
diff changeset
   192
     * explicitly; instead, when the top-level media type is
7f561c08de6b Initial load
duke
parents:
diff changeset
   193
     * <code>text</code>, a <code>charset</code> parameter should be added
7f561c08de6b Initial load
duke
parents:
diff changeset
   194
     * according to the character encoding actually used by the output
7f561c08de6b Initial load
duke
parents:
diff changeset
   195
     * method.  </p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   196
     * @see <a href="http://www.w3.org/TR/xslt#output">s
7f561c08de6b Initial load
duke
parents:
diff changeset
   197
     * ection 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   198
     */
7f561c08de6b Initial load
duke
parents:
diff changeset
   199
    public static final String MEDIA_TYPE = "media-type";
7f561c08de6b Initial load
duke
parents:
diff changeset
   200
}