ncbi / DtdAnalyzer

Other
34 stars 11 forks source link

Integrate Schematron generator #9

Open Klortho opened 12 years ago

Klortho commented 12 years ago

See the write-up in the paper. It's described as the XSLT dtdschematron.xsl, and that users can select either full Schematron or only supplemental. That means we need to be able to pass an XSLT param from the dtdanalyzer command line to the XSLT.

Klortho commented 11 years ago

I made a first stab at this. The dtdschematron scripts are in place and they correctly invoke the XSLT transformation, and output what looks like a reasonable document, when I do this:

cd test/split-example
dtdschematron -m split-example.dtd split-example.sch

But I can't get the instance document to validate correctly inside oxygen. It looks like there are some problems with the generated schematron files. You can also use the "-f" option to generate "full", or "complete" schematron, but in that case, there are even more problems.

Audrey, if you have time, can you take a look? Are we using your latest schematron-generating stylesheet? Could you write up some instructions on the wiki?

ahamelers commented 11 years ago

Chris,

This was due to new elements under declarations/ not having handling in place. I fixed this, and some cosmetic stuff.

ahamelers commented 11 years ago

Can this be closed?