KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > om > Namespace


1 package com.icl.saxon.om;
2
3 /**
4   * An object representing a Namespace
5   * @author <A HREF="mailto:mhkay@iclway.co.uk>Michael H. Kay</A>
6   */

7
8 public class Namespace {
9
10     /**
11     * Null namespace
12     */

13     
14     public static final String JavaDoc NULL = "";
15     public static final short NULL_CODE = 0;
16
17     /**
18     * Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".
19     */

20     public static final String JavaDoc XML = "http://www.w3.org/XML/1998/namespace";
21     public static final short XML_CODE = 1;
22
23     /**
24     * Fixed namespace name for XMLNS: "http://www.w3.org/2000/xmlns/". Actually, no namespace URL
25     * is defined for the "xmlns" prefix, in the namespaces recommendation, this value
26     * is taken from the DOM Level 2 spec.
27     */

28     public static final String JavaDoc XMLNS = "http://www.w3.org/2000/xmlns/";
29
30     /**
31     * Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"
32     */

33     public static final String JavaDoc XSLT = "http://www.w3.org/1999/XSL/Transform";
34     public static final short XSLT_CODE = 2;
35
36     /**
37     * Fixed namespace name for SAXON: "http://icl.com/saxon"
38     */

39     public static final String JavaDoc SAXON = "http://icl.com/saxon";
40     public static final short SAXON_CODE = 3;
41
42     /**
43     * Fixed namespace name for SAXON DTD extension: "http://icl.com/saxon/dtd"
44     */

45     public static final String JavaDoc DTD = "http://icl.com/saxon/dtd";
46
47     /**
48     * Fixed namespace name for EXSLT/Common: "http://exslt.org/common"
49     */

50     public static final String JavaDoc EXSLT_COMMON = "http://exslt.org/common";
51
52     /**
53     * Fixed namespace name for EXSLT/math: "http://exslt.org/math"
54     */

55     public static final String JavaDoc EXSLT_MATH = "http://exslt.org/math";
56
57     /**
58     * Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"
59     */

60     public static final String JavaDoc EXSLT_SETS = "http://exslt.org/sets";
61
62     /**
63     * Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"
64     */

65     public static final String JavaDoc EXSLT_DATES_AND_TIMES = "http://exslt.org/dates-and-times";
66
67     /**
68     * Fixed namespace name for EXSLT/functions: "http://exslt.org/functions"
69     */

70     public static final String JavaDoc EXSLT_FUNCTIONS = "http://exslt.org/functions";
71     public static final short EXSLT_FUNCTIONS_CODE = 4;
72     /**
73     * Recognize the Microsoft namespace so we can give a suitably sarcastic error message
74     */

75     
76     public static final String JavaDoc MICROSOFT_XSL = "http://www.w3.org/TR/WD-xsl";
77
78 }
79
80 //
81
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
82
// you may not use this file except in compliance with the License. You may obtain a copy of the
83
// License at http://www.mozilla.org/MPL/
84
//
85
// Software distributed under the License is distributed on an "AS IS" basis,
86
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
87
// See the License for the specific language governing rights and limitations under the License.
88
//
89
// The Original Code is: all this file.
90
//
91
// The Initial Developer of the Original Code is
92
// Michael Kay of International Computers Limited (mhkay@iclway.co.uk).
93
//
94
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
95
//
96
// Contributor(s): none.
97
//
98
Popular Tags