1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Licensed to the Apache Software Foundation (ASF) under one or more 7 * contributor license agreements. See the NOTICE file distributed with 8 * this work for additional information regarding copyright ownership. 9 * The ASF licenses this file to You under the Apache License, Version 2.0 10 * (the "License"); you may not use this file except in compliance with 11 * the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 21 22 package com.sun.org.apache.xml.internal.utils; 23 24 /** 25 * Primary constants used by the XSLT Processor 26 * @xsl.usage advanced 27 */ 28 public class Constants 29 { 30 31 /** 32 * Mnemonics for standard XML Namespace URIs, as Java Strings: 33 * <ul> 34 * <li>S_XMLNAMESPACEURI (http://www.w3.org/XML/1998/namespace) is the 35 * URI permanantly assigned to the "xml:" prefix. This is used for some 36 * features built into the XML specification itself, such as xml:space 37 * and xml:lang. It was defined by the W3C's XML Namespaces spec.</li> 38 * <li>S_XSLNAMESPACEURL (http://www.w3.org/1999/XSL/Transform) is the 39 * URI which indicates that a name may be an XSLT directive. In most 40 * XSLT stylesheets, this is bound to the "xsl:" prefix. It's defined 41 * by the W3C's XSLT Recommendation.</li> 42 * <li>S_OLDXSLNAMESPACEURL (http://www.w3.org/XSL/Transform/1.0) was 43 * used in early prototypes of XSLT processors for much the same purpose 44 * as S_XSLNAMESPACEURL. It is now considered obsolete, and the version 45 * of XSLT which it signified is not fully compatable with the final 46 * XSLT Recommendation, so what it really signifies is a badly obsolete 47 * stylesheet.</li> 48 * </ul> */ 49 public static final String 50 S_XMLNAMESPACEURI = "http://www.w3.org/XML/1998/namespace", 51 S_XSLNAMESPACEURL = "http://www.w3.org/1999/XSL/Transform", 52 S_OLDXSLNAMESPACEURL = "http://www.w3.org/XSL/Transform/1.0"; 53 54 /** Authorship mnemonics, as Java Strings. Not standardized, 55 * as far as I know. 56 * <ul> 57 * <li>S_VENDOR -- the name of the organization/individual who published 58 * this XSLT processor. </li> 59 * <li>S_VENDORURL -- URL where one can attempt to retrieve more 60 * information about this publisher and product.</li> 61 * </ul> 62 */ 63 public static final String 64 S_VENDOR = "Apache Software Foundation", 65 S_VENDORURL = "http://xml.apache.org"; 66 67 /** S_BUILTIN_EXTENSIONS_URL is a mnemonic for the XML Namespace 68 *(http://xml.apache.org/xalan) predefined to signify Xalan's 69 * built-in XSLT Extensions. When used in stylesheets, this is often 70 * bound to the "xalan:" prefix. 71 */ 72 public static final String 73 S_BUILTIN_EXTENSIONS_URL = "http://xml.apache.org/xalan"; 74 75 /** 76 * The old built-in extension url. It is still supported for 77 * backward compatibility. 78 */ 79 public static final String 80 S_BUILTIN_OLD_EXTENSIONS_URL = "http://xml.apache.org/xslt"; 81 82 /** 83 * Xalan extension namespaces. 84 */ 85 public static final String 86 // The old namespace for Java extension 87 S_EXTENSIONS_OLD_JAVA_URL = "http://xml.apache.org/xslt/java", 88 // The new namespace for Java extension 89 S_EXTENSIONS_JAVA_URL = "http://xml.apache.org/xalan/java", 90 S_EXTENSIONS_LOTUSXSL_JAVA_URL = "http://xsl.lotus.com/java", 91 S_EXTENSIONS_XALANLIB_URL = "http://xml.apache.org/xalan", 92 S_EXTENSIONS_REDIRECT_URL = "http://xml.apache.org/xalan/redirect", 93 S_EXTENSIONS_PIPE_URL = "http://xml.apache.org/xalan/PipeDocument", 94 S_EXTENSIONS_SQL_URL = "http://xml.apache.org/xalan/sql"; 95 96 /** 97 * EXSLT extension namespaces. 98 */ 99 public static final String 100 S_EXSLT_COMMON_URL = "http://exslt.org/common", 101 S_EXSLT_MATH_URL = "http://exslt.org/math", 102 S_EXSLT_SETS_URL = "http://exslt.org/sets", 103 S_EXSLT_DATETIME_URL = "http://exslt.org/dates-and-times", 104 S_EXSLT_FUNCTIONS_URL = "http://exslt.org/functions", 105 S_EXSLT_DYNAMIC_URL = "http://exslt.org/dynamic", 106 S_EXSLT_STRINGS_URL = "http://exslt.org/strings"; 107 108 109 /** 110 * The minimum version of XSLT supported by this processor. 111 */ 112 public static final double XSLTVERSUPPORTED = 1.0; 113 } 114