1/*
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
9 *
10 *     http://www.apache.org/licenses/LICENSE-2.0
11 *
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.
17 */
18/*
19 * $Id: SerializerConstants.java 468654 2006-10-28 07:09:23Z minchau $
20 */
21package org.apache.xml.serializer;
22
23/**
24 * Constants used in serialization, such as the string "xmlns"
25 * @xsl.usage internal
26 */
27interface SerializerConstants
28{
29
30    /** To insert ]]> in a CDATA section by ending the last CDATA section with
31     * ]] and starting the next CDATA section with >
32     */
33    static final String CDATA_CONTINUE = "]]]]><![CDATA[>";
34    /**
35     * The constant "]]>"
36     */
37    static final String CDATA_DELIMITER_CLOSE = "]]>";
38    static final String CDATA_DELIMITER_OPEN = "<![CDATA[";
39
40    static final String EMPTYSTRING = "";
41
42    static final String ENTITY_AMP = "&amp;";
43    static final String ENTITY_CRLF = "&#xA;";
44    static final String ENTITY_GT = "&gt;";
45    static final String ENTITY_LT = "&lt;";
46    static final String ENTITY_QUOT = "&quot;";
47
48    static final String XML_PREFIX = "xml";
49    static final String XMLNS_PREFIX = "xmlns";
50    static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/";
51
52    public static final String DEFAULT_SAX_SERIALIZER=SerializerBase.PKG_NAME+".ToXMLSAXHandler";
53
54    /**
55     * Define the XML version.
56     */
57    static final String XMLVERSION11 = "1.1";
58    static final String XMLVERSION10 = "1.0";
59}
60