2 * Licensed to the Apache Software Foundation (ASF) under one
\r
3 * or more contributor license agreements. See the NOTICE file
\r
4 * distributed with this work for additional information
\r
5 * regarding copyright ownership. The ASF licenses this file
\r
6 * to you under the Apache License, Version 2.0 (the "License");
\r
7 * you may not use this file except in compliance with the License.
\r
8 * You may obtain a copy of the License at
\r
10 * http://www.apache.org/licenses/LICENSE-2.0
\r
12 * Unless required by applicable law or agreed to in writing, software
\r
13 * distributed under the License is distributed on an "AS IS" BASIS,
\r
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
15 * See the License for the specific language governing permissions and
\r
16 * limitations under the License.
\r
22 package org.apache.xml.serializer.dom3;
\r
25 * DOM Constants used by the DOM Level 3 LSSerializer implementation.
\r
27 * @xsl.usage internal
\r
29 final class DOMConstants {
\r
31 // Constants: DOM Level 3 feature ids
\r
33 public static final String DOM3_REC_URL = "http://www.w3.org/TR/DOM-Level-3-LS";
\r
35 public static final String XERCES_URL = "http://xml.apache.org/xerces-2j";
\r
37 // The namespace used to qualified DOM Level 3 DOMConfiguration parameters
\r
38 public static final String S_DOM3_PROPERTIES_NS = "{"
\r
39 + DOMConstants.DOM3_REC_URL + "}";
\r
41 public static final String S_XERCES_PROPERTIES_NS = "{"
\r
42 + DOMConstants.XERCES_URL + "}";
\r
44 // xmlns namespaces
\r
45 private static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/";
\r
48 private static final String XMLNS_PREFIX = "xmlns";
\r
50 // ************************************************************************
\r
51 // DOM Level 3 DOM Configuration parameter names
\r
52 // ************************************************************************
\r
53 // DOM Level 3 parameters defined in Core
\r
54 public static final String DOM_CANONICAL_FORM = "canonical-form"; // Unsupported, we only appear to support this
\r
56 public static final String DOM_CDATA_SECTIONS = "cdata-sections";
\r
58 public static final String DOM_CHECK_CHAR_NORMALIZATION = "check-character-normalization"; // Unsupported
\r
60 public static final String DOM_COMMENTS = "comments";
\r
62 public static final String DOM_DATATYPE_NORMALIZATION = "datatype-normalization"; // Unsupported
\r
64 public static final String DOM_ELEMENT_CONTENT_WHITESPACE = "element-content-whitespace";
\r
66 public static final String DOM_ENTITIES = "entities";
\r
68 public static final String DOM_INFOSET = "infoset";
\r
70 public static final String DOM_NAMESPACES = "namespaces";
\r
72 public static final String DOM_NAMESPACE_DECLARATIONS = "namespace-declarations";
\r
74 public static final String DOM_NORMALIZE_CHARACTERS = "normalize-characters"; // Unsupported
\r
76 public static final String DOM_SPLIT_CDATA = "split-cdata-sections";
\r
78 public static final String DOM_VALIDATE_IF_SCHEMA = "validate-if-schema"; // Unsopported
\r
80 public static final String DOM_VALIDATE = "validate"; // Unsopported
\r
82 public static final String DOM_WELLFORMED = "well-formed";
\r
85 public static final String DOM_DISCARD_DEFAULT_CONTENT = "discard-default-content";
\r
87 public static final String DOM_FORMAT_PRETTY_PRINT = "format-pretty-print";
\r
89 public static final String DOM_IGNORE_UNKNOWN_CHARACTER_DENORMALIZATIONS = "ignore-unknown-character-denormalizations"; // Unsupported
\r
91 public static final String DOM_XMLDECL = "xml-declaration";
\r
94 public static final String DOM_ERROR_HANDLER = "error-handler";
\r
96 public static final String DOM_SCHEMA_TYPE = "schema-type"; // Unsupported
\r
98 public static final String DOM_SCHEMA_LOCATION = "schema-location"; // Unsupported
\r
100 // ************************************************************************
\r
102 // XSL Output properties
\r
103 // The xsl:output 'indent' property used in LSSerializer
\r
104 public static final String S_XSL_OUTPUT_INDENT = "indent";
\r
106 // The xsl:output 'indent' property used in LSSerializer
\r
107 public static final String S_XSL_OUTPUT_ENCODING = "encoding";
\r
109 // The xsl:output 'omit-xml-declaration' property used in LSSerializer
\r
110 public static final String S_XSL_OUTPUT_OMIT_XML_DECL = "omit-xml-declaration";
\r
112 // The xerces serializer specific 'omit-xml-declaration' property used in LSSerializer
\r
113 public static final String S_XML_VERSION = "xml-version";
\r
116 public static final String S_XSL_VALUE_ENTITIES = "org/apache/xml/serializer/XMLEntities";
\r
118 // Parameter values
\r
119 public static final String DOM3_EXPLICIT_TRUE = "explicit:yes";
\r
121 public static final String DOM3_DEFAULT_TRUE = "default:yes";
\r
123 public static final String DOM3_EXPLICIT_FALSE = "explicit:no";
\r
125 public static final String DOM3_DEFAULT_FALSE = "default:no";
\r
128 public static final String DOM_EXCEPTION_FEATURE_NOT_FOUND = "FEATURE_NOT_FOUND";
\r
130 public static final String DOM_EXCEPTION_FEATURE_NOT_SUPPORTED = "FEATURE_NOT_SUPPORTED";
\r
132 public static final String DOM_LSEXCEPTION_SERIALIZER_ERR = "SERIALIZER_ERROR";
\r