constants.java
来自「java jdk 1.4的源码」· Java 代码 · 共 520 行 · 第 1/2 页
JAVA
520 行
/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xalan" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 1999, Lotus * Development Corporation., http://www.lotus.com. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */package org.apache.xalan.templates;import org.apache.xml.utils.res.XResourceBundle;/** * <meta name="usage" content="advanced"/> * Primary constants used in the TransformerImpl classes. */public class Constants{ /** * Mnemonics for standard XML Namespace URIs, as Java Strings: * <ul> * <li>S_XMLNAMESPACEURI (http://www.w3.org/XML/1998/namespace) is the * URI permanantly assigned to the "xml:" prefix. This is used for some * features built into the XML specification itself, such as xml:space * and xml:lang. It was defined by the W3C's XML Namespaces spec.</li> * <li>S_XSLNAMESPACEURL (http://www.w3.org/1999/XSL/Transform) is the * URI which indicates that a name may be an XSLT directive. In most * XSLT stylesheets, this is bound to the "xsl:" prefix. It's defined * by the W3C's XSLT Recommendation.</li> * <li>S_OLDXSLNAMESPACEURL (http://www.w3.org/XSL/Transform/1.0) was * used in early prototypes of XSLT processors for much the same purpose * as S_XSLNAMESPACEURL. It is now considered obsolete, and the version * of XSLT which it signified is not fully compatable with the final * XSLT Recommendation, so what it really signifies is a badly obsolete * stylesheet.</li> * </ul> */ public static final String S_XMLNAMESPACEURI = "http://www.w3.org/XML/1998/namespace", S_XSLNAMESPACEURL = "http://www.w3.org/1999/XSL/Transform", S_OLDXSLNAMESPACEURL = "http://www.w3.org/XSL/Transform/1.0"; /** Authorship mnemonics, as Java Strings. Not standardized, * as far as I know. * <ul> * <li>S_VENDOR -- the name of the organization/individual who published * this XSLT processor. </li> * <li>S_VENDORURL -- URL where one can attempt to retrieve more * information about this publisher and product.</li> * </ul> */ public static final String S_VENDOR = "Apache Software Foundation", S_VENDORURL = "http://xml.apache.org"; /** S_BUILTIN_EXTENSIONS_URL is a mnemonic for the XML Namespace *(http://xml.apache.org/xalan) predefined to signify Xalan's * built-in XSLT Extensions. When used in stylesheets, this is often * bound to the "xalan:" prefix. */ public static final String S_BUILTIN_EXTENSIONS_URL = "http://xml.apache.org/xalan"; /** * The old built-in extension url. It is still supported for * backward compatibility. */ public static final String S_BUILTIN_OLD_EXTENSIONS_URL = "http://xml.apache.org/xslt"; /** * Xalan extension namespaces. */ public static final String // The old namespace for Java extension S_EXTENSIONS_OLD_JAVA_URL = "http://xml.apache.org/xslt/java", // The new namespace for Java extension S_EXTENSIONS_JAVA_URL = "http://xml.apache.org/xalan/java", S_EXTENSIONS_LOTUSXSL_JAVA_URL = "http://xsl.lotus.com/java", S_EXTENSIONS_XALANLIB_URL = "http://xml.apache.org/xalan", S_EXTENSIONS_REDIRECT_URL = "http://xml.apache.org/xalan/redirect", S_EXTENSIONS_PIPE_URL = "http://xml.apache.org/xalan/PipeDocument", S_EXTENSIONS_SQL_URL = "http://xml.apache.org/xalan/sql"; /** * EXSLT extension namespaces. */ public static final String S_EXSLT_COMMON_URL = "http://exslt.org/common", S_EXSLT_MATH_URL = "http://exslt.org/math", S_EXSLT_SETS_URL = "http://exslt.org/sets", S_EXSLT_DATETIME_URL = "http://exslt.org/dates-and-times", S_EXSLT_FUNCTIONS_URL = "http://exslt.org/functions", S_EXSLT_DYNAMIC_URL = "http://exslt.org/dynamic", S_EXSLT_STRINGS_URL = "http://exslt.org/strings"; /** * The minimum version of XSLT supported by this processor. */ public static final double XSLTVERSUPPORTED = 1.0; /** * IDs for XSL element types. These are associated * with the string literals in the TransformerImpl class. * Don't change the numbers. NOTE THAT THESE ARE NOT IN * ALPHABETICAL ORDER! * (It's a pity Java doesn't have a real Enumerated Mnemonic * datatype... or a C-like preprocessor in lieu thereof which * could be used to generate and maintain synch between these lists.) */ public static final int ELEMNAME_UNDEFINED = -1, ELEMNAME_WITHPARAM = 2, ELEMNAME_ADDATTRIBUTE = 4, ELEMNAME_ANCHOR = 22, // ELEMNAME_ANCHOR_PATTERN = 23, ELEMNAME_APPLY_TEMPLATES = 50, ELEMNAME_USE = 34, ELEMNAME_CHILDREN = 6, ELEMNAME_CHOOSE = 37, ELEMNAME_COMMENT = 59, // my own ELEMNAME_CONSTRUCT = 7, // my own ELEMNAME_CONTENTS = 8, ELEMNAME_COPY = 9, ELEMNAME_COPY_OF = 74, ELEMNAME_DECIMALFORMAT = 83, ELEMNAME_DEFINEATTRIBUTESET = 40, // ELEMNAME_DEFINECONSTANT = 29, // ELEMNAME_DEFINEMACRO = 10, ELEMNAME_DEFINESCRIPT = 11, ELEMNAME_DISPLAYIF = 12, // my own ELEMNAME_EMPTY = 14, ELEMNAME_EVAL = 15, ELEMNAME_EXPECTEDCHILDREN = 16, ELEMNAME_EXTENSION = 54, ELEMNAME_EXTENSIONHANDLER = 63, ELEMNAME_FOREACH = 28, ELEMNAME_KEY = 31, ELEMNAME_IF = 36, ELEMNAME_IMPORT = 26, ELEMNAME_INCLUDE = 27, ELEMNAME_CALLTEMPLATE = 17, ELEMNAME_PARAMVARIABLE = 41, ELEMNAME_NUMBER = 35, ELEMNAME_NSALIAS = 84, ELEMNAME_OTHERWISE = 39, ELEMNAME_PI = 58, ELEMNAME_PRESERVESPACE = 33, ELEMNAME_REMOVEATTRIBUTE = 5, ELEMNAME_TEMPLATE = 19, ELEMNAME_SORT = 64, ELEMNAME_STRIPSPACE = 32, ELEMNAME_STYLESHEET = 25, ELEMNAME_TEXT = 42, ELEMNAME_VALUEOF = 30, ELEMNAME_WHEN = 38, // Pattern by example support ELEMNAME_ROOT = 44, ELEMNAME_ANY = 45, ELEMNAME_ELEMENT = 46, ELEMNAME_TARGETELEMENT = 47, ELEMNAME_ATTRIBUTE = 48, ELEMNAME_TARGETATTRIBUTE = 49, ELEMNAME_URL = 52, // my own ELEMNAME_CALL = 55, // my own // ELEMNAME_WITHPARAM = 56, ELEMNAME_FALLBACK = 57, // my own ELEMNAME_TARGETPI = 60, // my own ELEMNAME_TARGETCOMMENT = 61, // my own ELEMNAME_TARGETTEXT = 62, // my own ELEMNAME_CSSSTYLECONVERSION = 65, // my own ELEMNAME_COUNTER = 66, ELEMNAME_COUNTERS = 67, ELEMNAME_COUNTERINCREMENT = 68, ELEMNAME_COUNTERRESET = 69, ELEMNAME_COUNTERSCOPE = 71, ELEMNAME_APPLY_IMPORTS = 72, ELEMNAME_VARIABLE = 73, ELEMNAME_MESSAGE = 75, ELEMNAME_LOCALE = 76, ELEMNAME_LITERALRESULT = 77, ELEMNAME_TEXTLITERALRESULT = 78, ELEMNAME_EXTENSIONCALL = 79, ELEMNAME_EXTENSIONDECL = 85, ELEMNAME_EXTENSIONSCRIPT = 86, ELEMNAME_OUTPUT = 80, ELEMNAME_COMPONENT = 81, ELEMNAME_SCRIPT = 82; // Next free number: 90 (88 and 89 used for EXSLT elements); /** * Literals for XSL element names. Note that there are more * names than IDs, because some names map to the same ID. */ public static final String ELEMNAME_ANCHOR_STRING = "anchor", ELEMNAME_ANY_STRING = "any", // pattern-by-example support ELEMNAME_APPLY_IMPORTS_STRING = "apply-imports", ELEMNAME_APPLY_TEMPLATES_STRING = "apply-templates", ELEMNAME_ARG_STRING = "arg", ELEMNAME_ATTRIBUTESET_STRING = "attribute-set", ELEMNAME_ATTRIBUTE_STRING = "attribute", // pattern-by-example support ELEMNAME_CALLTEMPLATEARG_STRING = "invoke-arg", ELEMNAME_CALLTEMPLATE_STRING = "call-template", ELEMNAME_CALL_STRING = "call", ELEMNAME_CHILDREN_STRING = "children", ELEMNAME_CHOOSE_STRING = "choose", ELEMNAME_COMMENT_STRING = "comment", ELEMNAME_COMPONENT_STRING = "component", ELEMNAME_CONSTRUCT_STRING = "construct", // my own ELEMNAME_CONTENTS_STRING = "contents", ELEMNAME_COPY_OF_STRING ="copy-of", ELEMNAME_COPY_STRING = "copy", ELEMNAME_COUNTERINCREMENT_STRING = "counter-increment", ELEMNAME_COUNTERRESET_STRING = "counter-reset", ELEMNAME_COUNTERSCOPE_STRING = "counter-scope", ELEMNAME_COUNTERS_STRING = "counters", ELEMNAME_COUNTER_STRING = "counter", ELEMNAME_CSSSTYLECONVERSION_STRING = "css-style-conversion", ELEMNAME_DECIMALFORMAT_STRING = "decimal-format", ELEMNAME_DISPLAYIF_STRING = "display-if", // my own ELEMNAME_ELEMENT_STRING = "element", // pattern-by-example support ELEMNAME_EMPTY_STRING = "empty", ELEMNAME_EVAL_STRING = "eval", ELEMNAME_EXPECTEDCHILDREN_STRING = "expectedchildren", ELEMNAME_EXTENSIONHANDLER_STRING = "code-dispatcher", ELEMNAME_EXTENSION_STRING = "functions", ELEMNAME_FALLBACK_STRING = "fallback", ELEMNAME_FOREACH_STRING = "for-each", ELEMNAME_IF_STRING = "if", ELEMNAME_IMPORT_STRING = "import", ELEMNAME_INCLUDE_STRING = "include", ELEMNAME_KEY_STRING = "key", ELEMNAME_LOCALE_STRING = "locale", ELEMNAME_MESSAGE_STRING = "message",
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?