001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the "License"); 007 * you may not use this file except in compliance with the License. 008 * You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 /* 019 * $Id: SerializerConstants.java 468654 2006-10-28 07:09:23Z minchau $ 020 */ 021 package org.apache.xml.serializer; 022 023 /** 024 * Constants used in serialization, such as the string "xmlns" 025 * @xsl.usage internal 026 */ 027 interface SerializerConstants 028 { 029 030 /** To insert ]]> in a CDATA section by ending the last CDATA section with 031 * ]] and starting the next CDATA section with > 032 */ 033 static final String CDATA_CONTINUE = "]]]]><![CDATA[>"; 034 /** 035 * The constant "]]>" 036 */ 037 static final String CDATA_DELIMITER_CLOSE = "]]>"; 038 static final String CDATA_DELIMITER_OPEN = "<![CDATA["; 039 040 static final String EMPTYSTRING = ""; 041 042 static final String ENTITY_AMP = "&"; 043 static final String ENTITY_CRLF = "
"; 044 static final String ENTITY_GT = ">"; 045 static final String ENTITY_LT = "<"; 046 static final String ENTITY_QUOT = """; 047 048 static final String XML_PREFIX = "xml"; 049 static final String XMLNS_PREFIX = "xmlns"; 050 static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/"; 051 052 public static final String DEFAULT_SAX_SERIALIZER=SerializerBase.PKG_NAME+".ToXMLSAXHandler"; 053 054 /** 055 * Define the XML version. 056 */ 057 static final String XMLVERSION11 = "1.1"; 058 static final String XMLVERSION10 = "1.0"; 059 }