19f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/* 29f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Licensed to the Apache Software Foundation (ASF) under one 39f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * or more contributor license agreements. See the NOTICE file 49f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * distributed with this work for additional information 59f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * regarding copyright ownership. The ASF licenses this file 69f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * to you under the Apache License, Version 2.0 (the "License"); 79f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * you may not use this file except in compliance with the License. 89f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * You may obtain a copy of the License at 99f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * http://www.apache.org/licenses/LICENSE-2.0 119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Unless required by applicable law or agreed to in writing, software 139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * distributed under the License is distributed on an "AS IS" BASIS, 149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * See the License for the specific language governing permissions and 169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * limitations under the License. 179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/* 199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * $Id: $ 209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonpackage org.apache.xml.serializer.dom3; 239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/** 259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * DOM Constants used by the DOM Level 3 LSSerializer implementation. 269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @xsl.usage internal 289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonfinal class DOMConstants { 309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // 319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // Constants: DOM Level 3 feature ids 329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // 339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM3_REC_URL = "http://www.w3.org/TR/DOM-Level-3-LS"; 349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String XERCES_URL = "http://xml.apache.org/xerces-2j"; 369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 379f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // The namespace used to qualified DOM Level 3 DOMConfiguration parameters 389f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String S_DOM3_PROPERTIES_NS = "{" 399f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson + DOMConstants.DOM3_REC_URL + "}"; 409f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 419f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String S_XERCES_PROPERTIES_NS = "{" 429f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson + DOMConstants.XERCES_URL + "}"; 439f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 449f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // xmlns namespaces 459f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson private static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/"; 469f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 479f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // namespace prefix 489f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson private static final String XMLNS_PREFIX = "xmlns"; 499f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 509f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // ************************************************************************ 519f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // DOM Level 3 DOM Configuration parameter names 529f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // ************************************************************************ 539f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // DOM Level 3 parameters defined in Core 549f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_CANONICAL_FORM = "canonical-form"; // Unsupported, we only appear to support this 559f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 569f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_CDATA_SECTIONS = "cdata-sections"; 579f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 589f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_CHECK_CHAR_NORMALIZATION = "check-character-normalization"; // Unsupported 599f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 609f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_COMMENTS = "comments"; 619f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 629f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_DATATYPE_NORMALIZATION = "datatype-normalization"; // Unsupported 639f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 649f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_ELEMENT_CONTENT_WHITESPACE = "element-content-whitespace"; 659f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 669f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_ENTITIES = "entities"; 679f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 689f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_INFOSET = "infoset"; 699f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 709f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_NAMESPACES = "namespaces"; 719f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 729f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_NAMESPACE_DECLARATIONS = "namespace-declarations"; 739f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 749f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_NORMALIZE_CHARACTERS = "normalize-characters"; // Unsupported 759f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 769f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_SPLIT_CDATA = "split-cdata-sections"; 779f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 789f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_VALIDATE_IF_SCHEMA = "validate-if-schema"; // Unsopported 799f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 809f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_VALIDATE = "validate"; // Unsopported 819f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 829f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_WELLFORMED = "well-formed"; 839f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 849f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // DOM Level 3 Save 859f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_DISCARD_DEFAULT_CONTENT = "discard-default-content"; 869f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 879f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_FORMAT_PRETTY_PRINT = "format-pretty-print"; 889f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 899f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_IGNORE_UNKNOWN_CHARACTER_DENORMALIZATIONS = "ignore-unknown-character-denormalizations"; // Unsupported 909f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 919f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_XMLDECL = "xml-declaration"; 929f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 939f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // DOM Properties 949f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_ERROR_HANDLER = "error-handler"; 959f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 969f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_SCHEMA_TYPE = "schema-type"; // Unsupported 979f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 989f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_SCHEMA_LOCATION = "schema-location"; // Unsupported 999f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1009f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // ************************************************************************ 1019f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1029f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // XSL Output properties 1039f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // The xsl:output 'indent' property used in LSSerializer 1049f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String S_XSL_OUTPUT_INDENT = "indent"; 1059f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1069f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // The xsl:output 'indent' property used in LSSerializer 1079f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String S_XSL_OUTPUT_ENCODING = "encoding"; 1089f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1099f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // The xsl:output 'omit-xml-declaration' property used in LSSerializer 1109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String S_XSL_OUTPUT_OMIT_XML_DECL = "omit-xml-declaration"; 1119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // The xerces serializer specific 'omit-xml-declaration' property used in LSSerializer 1139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String S_XML_VERSION = "xml-version"; 1149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // 1169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String S_XSL_VALUE_ENTITIES = "org/apache/xml/serializer/XMLEntities"; 1179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // Parameter values 1199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM3_EXPLICIT_TRUE = "explicit:yes"; 1209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM3_DEFAULT_TRUE = "default:yes"; 1229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM3_EXPLICIT_FALSE = "explicit:no"; 1249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM3_DEFAULT_FALSE = "default:no"; 1269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // DOM Exceptions 1289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_EXCEPTION_FEATURE_NOT_FOUND = "FEATURE_NOT_FOUND"; 1299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_EXCEPTION_FEATURE_NOT_SUPPORTED = "FEATURE_NOT_SUPPORTED"; 1319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public static final String DOM_LSEXCEPTION_SERIALIZER_ERR = "SERIALIZER_ERROR"; 1339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson} 135