01: /*
02: * Copyright 2001-2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: /*
17: * $Id: SerializerConstants.java,v 1.6 2005/03/02 23:08:08 ytalwar Exp $
18: */
19: package org.apache.xml.serializer;
20:
21: /**
22: * Constants used in serialization, such as the string "xmlns"
23: * @xsl.usage internal
24: */
25: interface SerializerConstants {
26:
27: /** To insert ]]> in a CDATA section by ending the last CDATA section with
28: * ]] and starting the next CDATA section with >
29: */
30: static final String CDATA_CONTINUE = "]]]]><![CDATA[>";
31: /**
32: * The constant "]]>"
33: */
34: static final String CDATA_DELIMITER_CLOSE = "]]>";
35: static final String CDATA_DELIMITER_OPEN = "<![CDATA[";
36:
37: static final String EMPTYSTRING = "";
38:
39: static final String ENTITY_AMP = "&";
40: static final String ENTITY_CRLF = "
";
41: static final String ENTITY_GT = ">";
42: static final String ENTITY_LT = "<";
43: static final String ENTITY_QUOT = """;
44:
45: static final String XML_PREFIX = "xml";
46: static final String XMLNS_PREFIX = "xmlns";
47: static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/";
48:
49: public static final String DEFAULT_SAX_SERIALIZER = "org.apache.xml.serializer.ToXMLSAXHandler";
50:
51: /**
52: * Define the XML version.
53: */
54: static final String XMLVERSION11 = "1.1";
55: static final String XMLVERSION10 = "1.0";
56: }
|