Skip to content

Installation on Windows

Sandro edited this page Jan 10, 2016 · 8 revisions

Requirements

XSpec requires the Saxon XSLT and XQuery processor which can be downloaded from:

For this installation the Saxon JAR (e.g. saxon9he.jar) is assumed to be in C:\xspec.

Windows Installation

  1. Clone the master branch of XSpec from GitHub:

    git clone https://github.com/expath/xspec.git

    For this installation both XSpec and Saxon are assumed to be in C:\xspec.

  2. Open c:\xspec\bin\xspec.bat in your favourite text editor and change the value on line 3 to the location of your Saxon JAR. For example:

    SET CP=C:\xspec\saxon9he.jar
    
  3. Open up a command prompt, navigate to C:\xspec\ and test the batch script with this command:

    xspec.bat
    

    The output should be the following usage summary:

    File not found.
    Usage:
       xspec filename [coverage]
         filename should specify an XSpec document
         if coverage is specified, outputs test coverage report
    

Congratulations! You have successfully installed XSpec!