- Retrieve the latest distribution from the Web site at
http://www.w3.org/RDF/Implementations/SiRPAC/
- Ungzip and untar the package with command similar to
gtar -zxvf SiRPAC-1.0.tar.gz
This will create a new subdirectory where all the distribution files are.
- Copy the whole 'org' subtree somewhere where your CLASSPATH points to now OR
add the SiRPAC distribution directory to your CLASSPATH
cp -r org ~/classes OR setenv CLASSPATH $HOME/SiRPAC-1.0
- Install the general SAX driver to your system.
You can find Java source code from
http://www.microstar.com/XML/SAX/.
- Install any SAX compliant XML parser to your system.
You can find several of them from the same URI
http://www.microstar.com/XML/SAX/.
- Run the compiler with command
java -Dsax.parser=<classname> org.w3c.rdf.SiRPAC sourcefile
or
java -Dorg.xml.sax.parser=<classname> org.w3c.rdf.SiRPAC sourcefile
Where <classname> is your SAX compliant XML parser of choice.
- Note 29-Jul-98: Having developed SiRPAC with the
AElfred parser,
I did not test other SAX parsers. Today, I checked
MSXML,
XP, and
XML4J
and not one single one of them worked. They all complained about
"Unimplemented interface method" which means they are not 100%
compatible with the latest SAX V1.0 specification. Please use
AElfred until this gets fixed.
(More technical: it seems only AElfred supports methods for
reading the source document using InputSource instead of plain
URL class access.)
- Note 8-Sep-98: Olivier Marce reported
DXP
works with SiRPAC.