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
10
* http://www.apache.org/licenses/LICENSE-2.0
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.
19
* $Id: XSLProcessorVersion.java,v 1.2 2009/12/10 03:18:35 matthewoliver Exp $
21
package org.apache.xalan.processor;
24
* Administrative class to keep track of the version number of
26
* <P>See also: org/apache/xalan/res/XSLTInfo.properties</P>
27
* @deprecated To be replaced by org.apache.xalan.Version.getVersion()
30
public class XSLProcessorVersion
34
* Print the processor version to the command line.
36
* @param argv command line arguments, unused.
38
public static void main(String argv[])
40
System.out.println(S_VERSION);
44
* Constant name of product.
46
public static final String PRODUCT = "Xalan";
49
* Implementation Language.
51
public static final String LANGUAGE = "Java";
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
60
* Clients should carefully consider the implications
61
* of new versions as external interfaces and behaviour
64
public static final int VERSION = 2;
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.
74
public static final int RELEASE = 7;
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.
85
public static final int MAINTENANCE = 1;
88
* Development Drop Number.
89
* Optional identifier designates development drop of
90
* a specific release. D01 is the first development drop
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.
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.
104
public static final int DEVELOPMENT = 0;
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>
111
public static final String S_VERSION = PRODUCT+" "+LANGUAGE+" "
112
+VERSION+"."+RELEASE+"."
113
+(DEVELOPMENT > 0 ? ("D"+DEVELOPMENT)