EnvironmentCheck is the name of the utility; it introspects your environment for info about currently found Xalan, Xerces, DOM, SAX, and JAXP files. org.apache.env.Which from the xml-commons project is a newer and much cleaner version of the same thing; I'll be posting info on it more in the days to come.
You can ask Xalan directly: org.apache.xalan.Version.getVersion() or just call main() from the command line. (Note that the XSLProcessorVersion class is deprecated and should be removed after our final 2.4 build in favor of this new Version class) Or you can run this stylesheet in your current environment (you can even just add the xmlns:xalan=... namespace decl and the extension call to an existing stylesheet you have). For production environments, especially servlet engines, etc., this is the most accurate way, since you're just running a stylesheet in the same way your production code does: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan"> <xsl:output indent="yes"/> <xsl:template match="/"> <out> <xsl:copy-of select="xalan:checkEnvironment()"/> </out> </xsl:template> </xsl:stylesheet> Note that EnvironmentCheck and Which will both introspect the code to get the version number (as above) *and* will attempt to find 'xalan.jar' in the classpath, and will check it's .jar file size. If this works, you'll know if you have an ASF-shipped version; unfortunately I do not have data for JAXP and JDK embedded versions, so this jar file size check sometimes doesn't work (it will just report 'jar file unknown version' or something, which is fine). Or, we could ask the Sun folks to list this kind of useful information in their documentation... 8-} Of course, Edwin does have a very useful if unofficial JAXP FAQ at ===== - Shane <eof .sig="'When I use a word,' Humpty Dumpty said, in a very scornful tone, 'it means just what I choose it to mean - neither more nor less'" "Oohayu oyod?!"=gis. /> __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com
