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