< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/Constants.java

Print this page
rev 1063 : 8172974: [JAXP] XALAN: Wrong result when transforming namespace unaware StAX Input
   1 /*
   2  * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.impl;
  22 
  23 import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
  24 import java.util.Enumeration;
  25 import java.util.NoSuchElementException;
  26 
  27 /**
  28  * Commonly used constants.
  29  *
  30  * @xerces.internal
  31  *
  32  * @author Andy Clark, IBM
  33  *
  34  */
  35 public final class Constants {
  36 
  37     //
  38     // Constants
  39     //
  40     // Schema Types:
  41     public static final String NS_XMLSCHEMA = "http://www.w3.org/2001/XMLSchema".intern();
  42     public static final String NS_DTD = "http://www.w3.org/TR/REC-xml".intern();
  43 
  44     // Schema Versions:
  45     public static final String W3C_XML_SCHEMA10_NS_URI = "http://www.w3.org/XML/XMLSchema/v1.0".intern();
  46 
  47     // Schema features
  48     public static final String SUN_SCHEMA_FEATURE_PREFIX = "http://java.sun.com/xml/schema/features/";
  49     public static final String SUN_REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE = "report-ignored-element-content-whitespace";
  50 
  51     //stax properties
  52 
  53     public static final String ZEPHYR_PROPERTY_PREFIX = "http://java.sun.com/xml/stream/properties/" ;
  54     public static final String STAX_PROPERTIES = "stax-properties" ;
  55     public static final String STAX_ENTITY_RESOLVER_PROPERTY = "internal/stax-entity-resolver";
  56     public static final String STAX_REPORT_CDATA_EVENT = "report-cdata-event";
  57     public static final String READER_IN_DEFINED_STATE = ZEPHYR_PROPERTY_PREFIX + "reader-in-defined-state" ;
  58     public static final String ADD_NAMESPACE_DECL_AS_ATTRIBUTE = "add-namespacedecl-as-attrbiute";
  59     public static final String ESCAPE_CHARACTERS = "escapeCharacters";
  60     public static final String REUSE_INSTANCE = "reuse-instance" ;
  61 
  62     //DOM properties
  63     public static final String SUN_DOM_PROPERTY_PREFIX = "http://java.sun.com/xml/dom/properties/" ;
  64     public static final String SUN_DOM_ANCESTOR_CHECCK = "ancestor-check";
  65 
  66     /**
  67      * If true, ignore DOCTYPE declaration as if it wasn't present at all.
  68      * Note that this is a violation of the XML recommendation.
  69      * The full property name is prefixed by {@link #ZEPHYR_PROPERTY_PREFIX}.
  70      */
  71     public static final String IGNORE_EXTERNAL_DTD = "ignore-external-dtd";
  72 
  73     // sax features
  74 
  75     /** SAX feature prefix ("http://xml.org/sax/features/"). */
  76     public static final String SAX_FEATURE_PREFIX = "http://xml.org/sax/features/";
  77 

  78     public static final String NAMESPACES_FEATURE = "namespaces";
  79 
  80     /** Namespace prefixes feature ("namespace-prefixes"). */
  81     public static final String NAMESPACE_PREFIXES_FEATURE = "namespace-prefixes";
  82 
  83     /** String interning feature ("string-interning"). */
  84     public static final String STRING_INTERNING_FEATURE = "string-interning";
  85 
  86     /** Validation feature ("validation"). */
  87     public static final String VALIDATION_FEATURE = "validation";
  88 
  89     /** External general entities feature ("external-general-entities "). */
  90     public static final String EXTERNAL_GENERAL_ENTITIES_FEATURE = "external-general-entities";
  91 
  92     /** External parameter entities feature ("external-parameter-entities "). */
  93     public static final String EXTERNAL_PARAMETER_ENTITIES_FEATURE = "external-parameter-entities";
  94 
  95     /** Lexical handler parameter entities feature ("lexical-handler/parameter-entities"). */
  96     public static final String LEXICAL_HANDLER_PARAMETER_ENTITIES_FEATURE = "lexical-handler/parameter-entities";
  97 


   1 /*
   2  * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *     http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.impl;
  22 
  23 import com.sun.org.apache.xerces.internal.utils.SecuritySupport;
  24 import java.util.Enumeration;
  25 import java.util.NoSuchElementException;
  26 
  27 /**
  28  * Commonly used constants.
  29  *
  30  * @xerces.internal
  31  *
  32  * @author Andy Clark, IBM
  33  *
  34  */
  35 public final class Constants {
  36 
  37     //
  38     // Constants
  39     //
  40     // Schema Types:
  41     public static final String NS_XMLSCHEMA = "http://www.w3.org/2001/XMLSchema".intern();
  42     public static final String NS_DTD = "http://www.w3.org/TR/REC-xml".intern();
  43 
  44     // Schema Versions:
  45     public static final String W3C_XML_SCHEMA10_NS_URI = "http://www.w3.org/XML/XMLSchema/v1.0".intern();
  46 
  47     // Schema features
  48     public static final String SUN_SCHEMA_FEATURE_PREFIX = "http://java.sun.com/xml/schema/features/";
  49     public static final String SUN_REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE = "report-ignored-element-content-whitespace";
  50 
  51     // stax properties

  52     public static final String ZEPHYR_PROPERTY_PREFIX = "http://java.sun.com/xml/stream/properties/" ;
  53     public static final String STAX_PROPERTIES = "stax-properties" ;
  54     public static final String STAX_ENTITY_RESOLVER_PROPERTY = "internal/stax-entity-resolver";
  55     public static final String STAX_REPORT_CDATA_EVENT = "report-cdata-event";
  56     public static final String READER_IN_DEFINED_STATE = ZEPHYR_PROPERTY_PREFIX + "reader-in-defined-state" ;
  57     public static final String ADD_NAMESPACE_DECL_AS_ATTRIBUTE = "add-namespacedecl-as-attrbiute";
  58     public static final String ESCAPE_CHARACTERS = "escapeCharacters";
  59     public static final String REUSE_INSTANCE = "reuse-instance" ;
  60 
  61     // DOM properties
  62     public static final String SUN_DOM_PROPERTY_PREFIX = "http://java.sun.com/xml/dom/properties/" ;
  63     public static final String SUN_DOM_ANCESTOR_CHECCK = "ancestor-check";
  64 
  65     /**
  66      * If true, ignore DOCTYPE declaration as if it wasn't present at all.
  67      * Note that this is a violation of the XML recommendation.
  68      * The full property name is prefixed by {@link #ZEPHYR_PROPERTY_PREFIX}.
  69      */
  70     public static final String IGNORE_EXTERNAL_DTD = "ignore-external-dtd";
  71 
  72     // sax features
  73 
  74     /** SAX feature prefix ("http://xml.org/sax/features/"). */
  75     public static final String SAX_FEATURE_PREFIX = "http://xml.org/sax/features/";
  76 
  77     /** Namespaces feature ("namespaces"). */
  78     public static final String NAMESPACES_FEATURE = "namespaces";
  79 
  80     /** Namespace prefixes feature ("namespace-prefixes"). */
  81     public static final String NAMESPACE_PREFIXES_FEATURE = "namespace-prefixes";
  82 
  83     /** String interning feature ("string-interning"). */
  84     public static final String STRING_INTERNING_FEATURE = "string-interning";
  85 
  86     /** Validation feature ("validation"). */
  87     public static final String VALIDATION_FEATURE = "validation";
  88 
  89     /** External general entities feature ("external-general-entities "). */
  90     public static final String EXTERNAL_GENERAL_ENTITIES_FEATURE = "external-general-entities";
  91 
  92     /** External parameter entities feature ("external-parameter-entities "). */
  93     public static final String EXTERNAL_PARAMETER_ENTITIES_FEATURE = "external-parameter-entities";
  94 
  95     /** Lexical handler parameter entities feature ("lexical-handler/parameter-entities"). */
  96     public static final String LEXICAL_HANDLER_PARAMETER_ENTITIES_FEATURE = "lexical-handler/parameter-entities";
  97 


< prev index next >