Home | History | Annotate | Download | only in utils
      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: Constants.java 468655 2006-10-28 07:12:06Z minchau $
     20  */
     21 package org.apache.xml.utils;
     22 
     23 /**
     24  * Primary constants used by the XSLT Processor
     25  * @xsl.usage advanced
     26  */
     27 public class Constants
     28 {
     29 
     30   /**
     31    * Mnemonics for standard XML Namespace URIs, as Java Strings:
     32    * <ul>
     33    * <li>S_XMLNAMESPACEURI (http://www.w3.org/XML/1998/namespace) is the
     34    * URI permanantly assigned to the "xml:" prefix. This is used for some
     35    * features built into the XML specification itself, such as xml:space
     36    * and xml:lang. It was defined by the W3C's XML Namespaces spec.</li>
     37    * <li>S_XSLNAMESPACEURL (http://www.w3.org/1999/XSL/Transform) is the
     38    * URI which indicates that a name may be an XSLT directive. In most
     39    * XSLT stylesheets, this is bound to the "xsl:" prefix. It's defined
     40    * by the W3C's XSLT Recommendation.</li>
     41    * <li>S_OLDXSLNAMESPACEURL (http://www.w3.org/XSL/Transform/1.0) was
     42    * used in early prototypes of XSLT processors for much the same purpose
     43    * as S_XSLNAMESPACEURL. It is now considered obsolete, and the version
     44    * of XSLT which it signified is not fully compatable with the final
     45    * XSLT Recommendation, so what it really signifies is a badly obsolete
     46    * stylesheet.</li>
     47    * </ul> */
     48   public static final String
     49 	S_XMLNAMESPACEURI = "http://www.w3.org/XML/1998/namespace",
     50 	S_XSLNAMESPACEURL = "http://www.w3.org/1999/XSL/Transform",
     51 	S_OLDXSLNAMESPACEURL = "http://www.w3.org/XSL/Transform/1.0";
     52 
     53   /** Authorship mnemonics, as Java Strings. Not standardized,
     54    * as far as I know.
     55    * <ul>
     56    * <li>S_VENDOR -- the name of the organization/individual who published
     57    * this XSLT processor. </li>
     58    * <li>S_VENDORURL -- URL where one can attempt to retrieve more
     59    * information about this publisher and product.</li>
     60    * </ul>
     61    */
     62   public static final String
     63 	S_VENDOR = "Apache Software Foundation",
     64 	S_VENDORURL = "http://xml.apache.org";
     65 
     66   /** S_BUILTIN_EXTENSIONS_URL is a mnemonic for the XML Namespace
     67    *(http://xml.apache.org/xalan) predefined to signify Xalan's
     68    * built-in XSLT Extensions. When used in stylesheets, this is often
     69    * bound to the "xalan:" prefix.
     70    */
     71   public static final String
     72     S_BUILTIN_EXTENSIONS_URL = "http://xml.apache.org/xalan";
     73 
     74   /**
     75    * The old built-in extension url. It is still supported for
     76    * backward compatibility.
     77    */
     78   public static final String
     79     S_BUILTIN_OLD_EXTENSIONS_URL = "http://xml.apache.org/xslt";
     80 
     81   /**
     82    * Xalan extension namespaces.
     83    */
     84   public static final String
     85     // The old namespace for Java extension
     86     S_EXTENSIONS_OLD_JAVA_URL = "http://xml.apache.org/xslt/java",
     87     // The new namespace for Java extension
     88     S_EXTENSIONS_JAVA_URL = "http://xml.apache.org/xalan/java",
     89     S_EXTENSIONS_LOTUSXSL_JAVA_URL = "http://xsl.lotus.com/java",
     90     S_EXTENSIONS_XALANLIB_URL = "http://xml.apache.org/xalan",
     91     S_EXTENSIONS_REDIRECT_URL = "http://xml.apache.org/xalan/redirect",
     92     S_EXTENSIONS_PIPE_URL = "http://xml.apache.org/xalan/PipeDocument",
     93     S_EXTENSIONS_SQL_URL = "http://xml.apache.org/xalan/sql";
     94 
     95   /**
     96    * EXSLT extension namespaces.
     97    */
     98   public static final String
     99     S_EXSLT_COMMON_URL = "http://exslt.org/common",
    100     S_EXSLT_MATH_URL = "http://exslt.org/math",
    101     S_EXSLT_SETS_URL = "http://exslt.org/sets",
    102     S_EXSLT_DATETIME_URL = "http://exslt.org/dates-and-times",
    103     S_EXSLT_FUNCTIONS_URL = "http://exslt.org/functions",
    104     S_EXSLT_DYNAMIC_URL = "http://exslt.org/dynamic",
    105     S_EXSLT_STRINGS_URL = "http://exslt.org/strings";
    106 
    107 
    108   /**
    109    * The minimum version of XSLT supported by this processor.
    110    */
    111   public static final double XSLTVERSUPPORTED = 1.0;
    112 }
    113