CIS 97YT Index > Using the XML Disc - Windows

Using the XML Disc - Windows

In this explanation, we will presume that you're putting everything on your C: drive. If you want to use a different drive, that's fine; you'll just have to “translate” the drive letter in these instructions.

First, copy the xmljar directory from the CD-ROM to your C: drive.

Note also that the version numbers for some of the packages on the disc are greater than those installed at De Anza; your disc contains more recent versions.

All of the XML tools on this disc require Java 1.3 or above. If you don't have Java installed on your system, go to the windows directory on the CD-ROM and double-click the icon labelled j2re-1_3_1_03-win.exe. This will install the Java runtime environment on your machine. (Depending on how your system is set up, you may not see the .exe in your file manager window.)

Now you must modify the batch files to work on your system. As instructed on that page, you'll copy and paste the commands into a file that you'll save on your system. However, the commands you copied are set up for the computers at De Anza, where the xmljar directory is on the F: drive. That means you'll have to go through and change all the F: to C: to match the setup on your machine. Thus, the wellformed.bat file would look like this, presuming that you had the xmljar directory on the C: drive.

echo off
java -cp c:\xmljar\xerces-2_1_0\xercesImpl.jar;c:\xmljar\xerces-2_1_0\xmlParserAPIs.jar;c:\xmljar\xerces-2_1_0\xercesSamples.jar dom.Counter %1

What's On The Disc

This section is provided for those folks who just have to know what is on the disc. Thus, it's going to use a lot of terminology that hasn't been explained in the class yet. Don't worry; you don't have to read this section to use the tools.

The xmljar directory

xerces-2_1_0

The Xerces XML parser. This is the tool used to check for well-formedness and validity with DTDs

crimson-1.1.3

Another XML parser. We don't use it in this course.

msv

Sun's Multi-Schema Validator. This is the tool used to check XML files for validity in conjunction with Relax NG grammars.

jing.jar

Another tool used to validate XML files in conjunction with Relax NG. We don't use this one in the course.

xalan-j_2_4_0

The Xalan transformation program. This is the tool that we will use to transform XML to XHTML.

xpath_visualizer_1_0_1

This utility lets you type XPath expressions and see which nodes in an XML document match that expression. The xpathvis.bat batch file is set up to run to the program on the computers at De Anza.

Xerlin

A not-very-sophisticated XML editor. To run the editor under Windows, go into the directory (C:\xmljar\Xerlin) and run the Xerlin.bat file.

batik-1.5

A set of tools for viewing and manipulating Scalable Vector Graphics (SVG) files. You can run it with this command on Windows:

java -jar C:\xmljar\batik-1.5\batik-squiggle.jar
fop-0.20.4

A tool for converting documents from XSL Formatting Objects (a page layout markup language) to PDF. See the “bonus lecture notes” for more information about XSL Formatting Objects.

The windows directory

j2re-1_3_1_03-win.exe

The Java Runtime Environment (JRE). All of the files whose names begin with install-windows are part of the JRE.

mozilla-win32-1.0-installer.exe

Mozilla 1.0. Double-click the icon to start the install process.