001: /*
002: * Copyright 1999-2004 The Apache Software Foundation.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: /*
017: * $Id: Constants.java,v 1.4 2004/02/17 04:21:14 minchau Exp $
018: */
019: package org.apache.xml.utils;
020:
021: /**
022: * Primary constants used by the XSLT Processor
023: * @xsl.usage advanced
024: */
025: public class Constants {
026:
027: /**
028: * Mnemonics for standard XML Namespace URIs, as Java Strings:
029: * <ul>
030: * <li>S_XMLNAMESPACEURI (http://www.w3.org/XML/1998/namespace) is the
031: * URI permanantly assigned to the "xml:" prefix. This is used for some
032: * features built into the XML specification itself, such as xml:space
033: * and xml:lang. It was defined by the W3C's XML Namespaces spec.</li>
034: * <li>S_XSLNAMESPACEURL (http://www.w3.org/1999/XSL/Transform) is the
035: * URI which indicates that a name may be an XSLT directive. In most
036: * XSLT stylesheets, this is bound to the "xsl:" prefix. It's defined
037: * by the W3C's XSLT Recommendation.</li>
038: * <li>S_OLDXSLNAMESPACEURL (http://www.w3.org/XSL/Transform/1.0) was
039: * used in early prototypes of XSLT processors for much the same purpose
040: * as S_XSLNAMESPACEURL. It is now considered obsolete, and the version
041: * of XSLT which it signified is not fully compatable with the final
042: * XSLT Recommendation, so what it really signifies is a badly obsolete
043: * stylesheet.</li>
044: * </ul> */
045: public static final String S_XMLNAMESPACEURI = "http://www.w3.org/XML/1998/namespace",
046: S_XSLNAMESPACEURL = "http://www.w3.org/1999/XSL/Transform",
047: S_OLDXSLNAMESPACEURL = "http://www.w3.org/XSL/Transform/1.0";
048:
049: /** Authorship mnemonics, as Java Strings. Not standardized,
050: * as far as I know.
051: * <ul>
052: * <li>S_VENDOR -- the name of the organization/individual who published
053: * this XSLT processor. </li>
054: * <li>S_VENDORURL -- URL where one can attempt to retrieve more
055: * information about this publisher and product.</li>
056: * </ul>
057: */
058: public static final String S_VENDOR = "Apache Software Foundation",
059: S_VENDORURL = "http://xml.apache.org";
060:
061: /** S_BUILTIN_EXTENSIONS_URL is a mnemonic for the XML Namespace
062: *(http://xml.apache.org/xalan) predefined to signify Xalan's
063: * built-in XSLT Extensions. When used in stylesheets, this is often
064: * bound to the "xalan:" prefix.
065: */
066: public static final String S_BUILTIN_EXTENSIONS_URL = "http://xml.apache.org/xalan";
067:
068: /**
069: * The old built-in extension url. It is still supported for
070: * backward compatibility.
071: */
072: public static final String S_BUILTIN_OLD_EXTENSIONS_URL = "http://xml.apache.org/xslt";
073:
074: /**
075: * Xalan extension namespaces.
076: */
077: public static final String
078: // The old namespace for Java extension
079: S_EXTENSIONS_OLD_JAVA_URL = "http://xml.apache.org/xslt/java",
080: // The new namespace for Java extension
081: S_EXTENSIONS_JAVA_URL = "http://xml.apache.org/xalan/java",
082: S_EXTENSIONS_LOTUSXSL_JAVA_URL = "http://xsl.lotus.com/java",
083: S_EXTENSIONS_XALANLIB_URL = "http://xml.apache.org/xalan",
084: S_EXTENSIONS_REDIRECT_URL = "http://xml.apache.org/xalan/redirect",
085: S_EXTENSIONS_PIPE_URL = "http://xml.apache.org/xalan/PipeDocument",
086: S_EXTENSIONS_SQL_URL = "http://xml.apache.org/xalan/sql";
087:
088: /**
089: * EXSLT extension namespaces.
090: */
091: public static final String S_EXSLT_COMMON_URL = "http://exslt.org/common",
092: S_EXSLT_MATH_URL = "http://exslt.org/math",
093: S_EXSLT_SETS_URL = "http://exslt.org/sets",
094: S_EXSLT_DATETIME_URL = "http://exslt.org/dates-and-times",
095: S_EXSLT_FUNCTIONS_URL = "http://exslt.org/functions",
096: S_EXSLT_DYNAMIC_URL = "http://exslt.org/dynamic",
097: S_EXSLT_STRINGS_URL = "http://exslt.org/strings";
098:
099: /**
100: * The minimum version of XSLT supported by this processor.
101: */
102: public static final double XSLTVERSUPPORTED = 1.0;
103: }
|