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