com.sun.org.apache.xml.internal.utils.Constants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxp-ri Show documentation
Show all versions of jaxp-ri Show documentation
Java API for XML Processing Reference Implementation
The newest version!
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
* https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
* or packager/legal/LICENSE.txt. See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
*
* GPL Classpath Exception:
* Oracle designates this particular file as subject to the "Classpath"
* exception as provided by Oracle in the GPL Version 2 section of the License
* file that accompanied this code.
*
* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*
* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
*
*
* This file incorporates work covered by the following copyright and
* permission notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: Constants.java,v 1.8 2010-11-01 04:34:51 joehw Exp $
*/
package com.sun.org.apache.xml.internal.utils;
/**
* Primary constants used by the XSLT Processor
* @xsl.usage advanced
*/
public class Constants
{
/**
* Mnemonics for standard XML Namespace URIs, as Java Strings:
*
* - 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.
* - 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.
* - 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.
*
*/
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.
*
* - S_VENDOR -- the name of the organization/individual who published
* this XSLT processor.
* - S_VENDORURL -- URL where one can attempt to retrieve more
* information about this publisher and product.
*
*/
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;
}