How to get the Schematron Testing Framework (stf) to run in Lighthouse 64 Puppy Linux 6.02 Beta 2 |
Friday, February 3rd, 2017 22:56:21 GMT |
Software |
The operating system with which I accomplished the below was Lighthouse 64 Puppy Linux 6.02 Beta 2.
So, I've been trying to figure how to use the XML-validation language Schematron, so I'll have a way to validate concept map files I generate or modify with XSLT instead of VUE.
In addition to Schematron, I also stumbled across some Java software called the Schematron Testing Framework (stf), which I'm not yet sure I'm going to need, but, figured out how to run anyway just in case I ever do need it.
Here's my entire "properties.xml" file:
Quoted from the official web page about libre, open-source editions of Saxon:
Quoted from the official XML Calabash web page:
Here's the official Apache xml-commons web page.
Quoted from the official Apache Ant home page:
I've been messing around with XML and XSLT lately, since I want to use XSLT to do some clever things with VUE: Visual Understanding Environment concept maps. (Here's my slightly modified version of VUE.)
It took me a while, but I finally figured out I needed to download some other Java software, and edit the "properties.xml" file included with the Schematron Testing Framework (stf) to tell it where to find that other software in my system.
In addition to the Schematron Testing Framework (stf) itself, I had to download the following three Java programs. I lazily downloaded binaries instead of compiling anything from scratch. (Possibly other versions than the ones I used would work.)
"Saxon-HE (Home Edition) is the open-source version of the Saxon XSLT and XQuery processor."
"XML Calabash is an implementation of XProc: An XML Pipeline Language."
I also used:
"Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other."
With everything installed and the "properties.xml" properly configured, all I had to do to run Schematron Testing Framework (stf) was go to stf's "example" folder, open a console there, and type:
That resulted in this output:
To confirm that Schematron Testing Framework (stf) was really reading the example XML files "foo-1.xml" and "foo-2.xml", I edited them, which, as expected, changed the output of the "ant" command a bit: