blob: 7ba1d08fa10ed2ac86daa58e111064242663707f [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE s1 SYSTEM 'dtd/document.dtd'>
<s1 title='Installation'>
<s2 title='Unpacking the Files'>
<p>
&ParserName; is packaged as a ZIP file for all platforms
and operating systems. The parser release is also packaged
as Tar GZip files as a convenience for UNIX users. You can
extract the ZIP files using the Java <ref>jar</ref> command
to unpack the distribution.
</p>
<source>jar xf &ParserName;-bin.&parserversion;.zip
jar xf &ParserName;-src.&parserversion;.zip
jar xf &ParserName;-tools.&parserversion;.zip</source>
<p>
All of these commands create a sub-directory called
"&parserdir;" in the current directory, except for the command to unpack
the &quot;tools&quot; distribution, since you may install this anywhere you like.
</p>
</s2>
<s2 title='Files in the Binary Package'>
<table>
<tr>
<td>LICENSE</td>
<td>License for &ParserName;</td>
</tr>
<tr>
<td>Readme.html</td>
<td>Web page redirect to docs/html/index.html</td>
</tr>
<tr>
<td>xercesImpl.jar</td>
<td>Jar file containing all the parser class files that implement
one of the standard API&apos;s supported by the parser</td>
</tr>
<tr>
<td>xmlParserAPIs.jar</td>
<td>Jar file containing all the standard API&apos;s implemented by
the parser. Currently, &ParserName; supports DOM level 2, SAX
2.0 R2 PR1, and the <code>javax.xml.parsers</code> part of JAXP
1.1. </td>
</tr>
<tr>
<td>xercesSamples.jar</td>
<td>Jar file containing all sample class files</td>
</tr>
<tr>
<td>data/</td>
<td>Directory containing sample XML data files</td>
</tr>
<tr>
<td>docs/</td>
<td>Directory containing documentation</td>
</tr>
<tr>
<td>docs/javadocs/</td>
<td>Directory containing Javadoc API for parser framework</td>
</tr>
<tr>
<td>samples/</td>
<td>Directory containing the source code for the samples</td>
</tr>
</table>
<note>
To use &ParserName; you do not need the source files.
However, if you want to recompile the sources you need to
download the source package and have the contents of the tools
package (or equivalent) available.
</note>
</s2>
<s2 title='Files in the Source Package'>
<table>
<tr>
<td>LICENSE</td>
<td>License for &ParserName;</td>
</tr>
<tr>
<td>build.bat</td>
<td>Batch file for invoking Ant build for Windows users</td>
</tr>
<tr>
<td>build.sh</td>
<td>Shell script for invoking Ant build for UNIX users</td>
</tr>
<tr>
<td>build.xml</td>
<td>Ant build file -- read README file before building</td>
</tr>
<tr>
<td>README</td>
<td>Build instructions</td>
</tr>
<tr>
<td>Readme.html</td>
<td>Web page redirect required for building documentation</td>
</tr>
<tr>
<td>STATUS</td>
<td>Current source code status information</td>
</tr>
<tr>
<td>TODO</td>
<td>Current list of "todo" items</td>
</tr>
<tr>
<td>ISSUES</td>
<td>Current open issues that need to be resolved</td>
</tr>
<tr>
<td>data/</td>
<td>Directory containing sample XML data files</td>
</tr>
<tr>
<td>docs/</td>
<td>Directory containing documentation, in XML form</td>
</tr>
<tr>
<td>samples/</td>
<td>Directory containing source code for samples</td>
</tr>
<tr>
<td>src/</td>
<td>
Directory containing source code for parser and supplemental
APIs
</td>
</tr>
</table>
<note>
In order to compile the source code using Ant or to build the
release distributions yourself, you must have the contents of
<code>&ParserName;-tools.&parserversion;.zip</code>
on your classpath; i.e., you will need access to a version of ant,
xalan, StyleBook and an XML parser such as xerces.
For ease of use, we recommend extracting
<code>&ParserName;-tools.&parserversion;.zip</code>
in your xerces root directory; the build.sh and build.bat scripts
are written for this case.
</note>
</s2>
<s2 title='Changes in Xerces jar files'>
<p>In order to accomodate the very common case in which xerces is
used with an XSL processor such as xalan, between Xerces 2.0.0 beta 3
and beta 4 a change in the default organization of xerces&apos;s jar
files was introduced. As well as the <code>xercesSamples.jar</code>
file, which we still produce, xerces formerly came with a file called
<code>xerces.jar</code>. This file contained all of the
parser&apos;s functionality. Two files are now included:
<code>xercesImpl.jar</code>, our implementation of various API&apos;s,
and <code>xmlParserAPIs.jar</code>, the API&apos;s themselves. This
was done so that, if your XSLT processor ships with API&apos;s at the
same level as those supported by &ParserName;, you can avoid putting
<code>xmlParserAPIs.jar</code> on your classpath.</p>
<p>Should you wish to use the old form of the jarfiles, we have
included several ant targets for backward compatibility. An
&quot;ant target&quot; is an argument given to ant, our build tool,
that tells it which portions of the <code>build.xml</code> file to
apply. If you are on a Windows system and you wish to get only the
old xerces jar files, you would execute <code>build.bat
oldjars</code>. If you want to regenerate new versions of the xerces
binary, source and tools distributions with the old-style jarfiles,
you would execute <code>build.bat oldall</code>. The situation is
analogous for Unix users, except that <code>build.sh</code> would be
used instead of <code>build.bat</code>. For further information and
more options, please look inside build.xml itself; all possibilities
are documented there.
</p>
</s2>
</s1>