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 |
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:
A simple Schematron demo for PHP 5.6.28 and Saxon/C 1.0.2 |
Sunday, February 5th, 2017 04:38:05 GMT |
Today, I figured out how to use the XML-validation language Schematron with PHP 5.6.28 and the XSLT processor Saxon/C 1.0.2.
And since examples of using Schematron with PHP plus Saxon/C currently seem to be quite rare on the web - possibly even nonexistent, except for my own - I put together this GitHub repo:
Everything else is unmodified stuff from the official Schematron repo.
Soon, I'll be able to be far more sure I'm generating valid VUE: Visual Understanding Environment concept maps with tools other than VUE itself. (Here's my slightly modified version of VUE.)
I only authored the PHP script and the "README.md" file. The included Schematron schema and XML files are my slightly modified versions of things from the the official Schematron repo.
Now that I can use Schematron, I'm guessing I'm probably going to have a much easier time with all of my current and future XSLT projects.