KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xml > utils > Constants


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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: Constants.java,v 1.4 2004/02/17 04:21:14 minchau Exp $
18  */

19 package org.apache.xml.utils;
20
21 /**
22  * Primary constants used by the XSLT Processor
23  * @xsl.usage advanced
24  */

25 public class Constants
26 {
27
28   /**
29    * Mnemonics for standard XML Namespace URIs, as Java Strings:
30    * <ul>
31    * <li>S_XMLNAMESPACEURI (http://www.w3.org/XML/1998/namespace) is the
32    * URI permanantly assigned to the "xml:" prefix. This is used for some
33    * features built into the XML specification itself, such as xml:space
34    * and xml:lang. It was defined by the W3C's XML Namespaces spec.</li>
35    * <li>S_XSLNAMESPACEURL (http://www.w3.org/1999/XSL/Transform) is the
36    * URI which indicates that a name may be an XSLT directive. In most
37    * XSLT stylesheets, this is bound to the "xsl:" prefix. It's defined
38    * by the W3C's XSLT Recommendation.</li>
39    * <li>S_OLDXSLNAMESPACEURL (http://www.w3.org/XSL/Transform/1.0) was
40    * used in early prototypes of XSLT processors for much the same purpose
41    * as S_XSLNAMESPACEURL. It is now considered obsolete, and the version
42    * of XSLT which it signified is not fully compatable with the final
43    * XSLT Recommendation, so what it really signifies is a badly obsolete
44    * stylesheet.</li>
45    * </ul> */

46   public static final String JavaDoc
47     S_XMLNAMESPACEURI = "http://www.w3.org/XML/1998/namespace",
48     S_XSLNAMESPACEURL = "http://www.w3.org/1999/XSL/Transform",
49     S_OLDXSLNAMESPACEURL = "http://www.w3.org/XSL/Transform/1.0";
50
51   /** Authorship mnemonics, as Java Strings. Not standardized,
52    * as far as I know.
53    * <ul>
54    * <li>S_VENDOR -- the name of the organization/individual who published
55    * this XSLT processor. </li>
56    * <li>S_VENDORURL -- URL where one can attempt to retrieve more
57    * information about this publisher and product.</li>
58    * </ul>
59    */

60   public static final String JavaDoc
61     S_VENDOR = "Apache Software Foundation",
62     S_VENDORURL = "http://xml.apache.org";
63
64   /** S_BUILTIN_EXTENSIONS_URL is a mnemonic for the XML Namespace
65    *(http://xml.apache.org/xalan) predefined to signify Xalan's
66    * built-in XSLT Extensions. When used in stylesheets, this is often
67    * bound to the "xalan:" prefix.
68    */

69   public static final String JavaDoc
70     S_BUILTIN_EXTENSIONS_URL = "http://xml.apache.org/xalan";
71
72   /**
73    * The old built-in extension url. It is still supported for
74    * backward compatibility.
75    */

76   public static final String JavaDoc
77     S_BUILTIN_OLD_EXTENSIONS_URL = "http://xml.apache.org/xslt";
78   
79   /**
80    * Xalan extension namespaces.
81    */

82   public static final String JavaDoc
83     // The old namespace for Java extension
84
S_EXTENSIONS_OLD_JAVA_URL = "http://xml.apache.org/xslt/java",
85     // The new namespace for Java extension
86
S_EXTENSIONS_JAVA_URL = "http://xml.apache.org/xalan/java",
87     S_EXTENSIONS_LOTUSXSL_JAVA_URL = "http://xsl.lotus.com/java",
88     S_EXTENSIONS_XALANLIB_URL = "http://xml.apache.org/xalan",
89     S_EXTENSIONS_REDIRECT_URL = "http://xml.apache.org/xalan/redirect",
90     S_EXTENSIONS_PIPE_URL = "http://xml.apache.org/xalan/PipeDocument",
91     S_EXTENSIONS_SQL_URL = "http://xml.apache.org/xalan/sql";
92   
93   /**
94    * EXSLT extension namespaces.
95    */

96   public static final String JavaDoc
97     S_EXSLT_COMMON_URL = "http://exslt.org/common",
98     S_EXSLT_MATH_URL = "http://exslt.org/math",
99     S_EXSLT_SETS_URL = "http://exslt.org/sets",
100     S_EXSLT_DATETIME_URL = "http://exslt.org/dates-and-times",
101     S_EXSLT_FUNCTIONS_URL = "http://exslt.org/functions",
102     S_EXSLT_DYNAMIC_URL = "http://exslt.org/dynamic",
103     S_EXSLT_STRINGS_URL = "http://exslt.org/strings";
104     
105     
106   /**
107    * The minimum version of XSLT supported by this processor.
108    */

109   public static final double XSLTVERSUPPORTED = 1.0;
110 }
111
Popular Tags