1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the  "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *     http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18/*
19 * $Id: XSLProcessorVersion.src 468640 2006-10-28 06:53:53Z minchau $
20 */
21package org.apache.xalan.processor;
22
23/**
24 * Administrative class to keep track of the version number of
25 * the Xalan release.
26 * <P>See also: org/apache/xalan/res/XSLTInfo.properties</P>
27 * @deprecated To be replaced by org.apache.xalan.Version.getVersion()
28 * @xsl.usage general
29 */
30public class XSLProcessorVersion
31{
32
33  /**
34   * Print the processor version to the command line.
35   *
36   * @param argv command line arguments, unused.
37   */
38  public static void main(String argv[])
39  {
40    System.out.println(S_VERSION);
41  }
42
43  /**
44   * Constant name of product.
45   */
46  public static final String PRODUCT = "Xalan";
47
48  /**
49   * Implementation Language.
50   */
51  public static final String LANGUAGE = "Java";
52
53  /**
54   * Major version number.
55   * Version number. This changes only when there is a
56   *          significant, externally apparent enhancement from
57   *          the previous release. 'n' represents the n'th
58   *          version.
59   *
60   *          Clients should carefully consider the implications
61   *          of new versions as external interfaces and behaviour
62   *          may have changed.
63   */
64  public static final int VERSION = @version.VERSION@;
65
66  /**
67   * Release Number.
68   * Release number. This changes when:
69   *            -  a new set of functionality is to be added, eg,
70   *               implementation of a new W3C specification.
71   *            -  API or behaviour change.
72   *            -  its designated as a reference release.
73   */
74  public static final int RELEASE = @version.RELEASE@;
75
76  /**
77   * Maintenance Drop Number.
78   * Optional identifier used to designate maintenance
79   *          drop applied to a specific release and contains
80   *          fixes for defects reported. It maintains compatibility
81   *          with the release and contains no API changes.
82   *          When missing, it designates the final and complete
83   *          development drop for a release.
84   */
85  public static final int MAINTENANCE = @version.MINOR@;
86
87  /**
88   * Development Drop Number.
89   * Optional identifier designates development drop of
90   *          a specific release. D01 is the first development drop
91   *          of a new release.
92   *
93   *          Development drops are works in progress towards a
94   *          compeleted, final release. A specific development drop
95   *          may not completely implement all aspects of a new
96   *          feature, which may take several development drops to
97   *          complete. At the point of the final drop for the
98   *          release, the D suffix will be omitted.
99   *
100   *          Each 'D' drops can contain functional enhancements as
101   *          well as defect fixes. 'D' drops may not be as stable as
102   *          the final releases.
103   */
104  public static final int DEVELOPMENT = 0;
105
106  /**
107   * Version String like <CODE>"<B>Xalan</B> <B>Language</B>
108   * v.r[.dd| <B>D</B>nn]"</CODE>.
109   * <P>Semantics of the version string are identical to the Xerces project.</P>
110   */
111  public static final String S_VERSION = PRODUCT+" "+LANGUAGE+" "
112                                   +VERSION+"."+RELEASE+"."
113                                   +(DEVELOPMENT > 0 ? ("D"+DEVELOPMENT)
114                                     : (""+MAINTENANCE));
115
116}
117