Make sure that the batch or shell files include the correct path to SAXON.
In my case
export CLASSPATH=".:/Applications/oxygen 10/lib/saxon9sa.jar"
Add in Oxygen under Tools -> External Tools a new command line.

write your XSpec document using the included RelaxNG schema
![]()
leading to this view in the editor
![]()
Refer in your XSpec file to the XSLT stylesheet you want to test
<description xmlns="http://www.jenitennison.com/xslt/xspec"
xmlns:sc="http://www.sc.com"
xmlns:dcterms="http://purl.org/dc/terms/"
stylesheet="producten.xsl"
xslt-version="2.0">...
Write your testscenarios following the instructions on the XSpec Wiki
<scenario label="productname">
<context href="test.xml" select="/sc:indexfeed/sc:list[1]/sc:product[1]/sc:productname[1]"/>
<expect label="becomes dcterms:title">
<dcterms:title>Wii power</dcterms:title>
</expect>
</scenario>
To test, run your external tool from Oxygen
![]()
For getting your testresults in the browser
![]()
Now the next step is to learn to write better tests. I keep you current.
Comments