stefan-jung / org.jung.schematron

DITA-OT plugin for validating maps and topics using Schematron after the preprocessing phase
Other
6 stars 3 forks source link

it doesn't seem to work with 3.6 #8

Open thendarion opened 3 years ago

thendarion commented 3 years ago

my preliminary tests indicate that this plugin is not working with dita-ot 3.6

am I missing something?

thendarion commented 3 years ago

it seems to be working with 3.6.1 though. closing this now

thendarion commented 3 years ago

nope, still not working with 3.6.1

ben-ntnx commented 3 years ago

I also found that it didn't work with 3.6.1 though it did with 3.1.3. This is the error on 3.6.1:

C:\Users\ben\Documents\tech-content\tech-content-tools\dita-ot-3.6.1\plugins\org.doctales.schematron\build_schematron-validation.xml:8: The following error occurred while executing this line:
C:\Users\ben\Documents\tech-content\tech-content-tools\dita-ot-3.6.1\plugins\org.doctales.schematron\build_taskdef_ph-schematron.xml:11: taskdef class com.helger.schematron.ant.Schematron cannot be found using the classloader AntClassLoader[C:\Users\ben\Documents\tech-content\tech-content-tools\dita-ot-3.6 .1\lib\dost.jar;C:\Users\ben\Documents\tech-content\tech-content-tools\dita-ot-3.6.1\lib\dost-configuration.jar]

reifsnid commented 3 years ago

I'm encountering a different issue with 3.6.1.

In the schematron-validate-topics target, it's able to successfully parse the sample Schematron file: [schematron] Successfully parsed Schematron file 'C:\dita-ot\plugins\org.doctales.schematron\rules\topic-terminology.sch'

But then it immediately reports it's unable to find XML utils and Store from Ant project:

XML utils not found from Ant project reference
Store not found from Ant project reference
[schematron] Could not resolve resource StoreResource "file:/C:/dita-ot/plugins/org.doctales.schematron/samples/temp/html5/topic-1.dita" to a file.
[schematron] Could not resolve resource StoreResource "file:/C:/dita-ot/plugins/org.doctales.schematron/samples/temp/html5/topic-2.dita" to a file.
reifsnid commented 3 years ago

Tested on 3.5.4, and it appears to work as expected (although I still get messages about not finding hashCode implementation):

[schematron] Validating XML file 'C:\dita-ot-3.5.4\plugins\org.doctales.schematron\samples\temp\html5\topic-1.dita' against Schematron rules from 'topic-validation.sch' expecting success
[schematron] [DEBUG] Found no hashCode implementation for class java.lang.Package
[schematron] [DEBUG] Found no hashCode implementation for class java.net.URLClassLoader
[schematron] 1 Schematron error for XML file 'C:\dita-ot-3.5.4\plugins\org.doctales.schematron\samples\temp\html5\topic-1.dita'
[schematron] [fatal_error] in /topic/title @ C:\dita-ot-3.5.4\plugins\org.doctales.schematron\samples\temp\html5\topic-1.dita [topic-1]: Do not use inline formatting in <title>
[schematron] The expectations were not fullfilled, therefore the overall result is negative
[schematron] Validating XML file 'C:\dita-ot-3.5.4\plugins\org.doctales.schematron\samples\temp\html5\topic-2.dita' against Schematron rules from 'topic-validation.sch' expecting success
[schematron] XML file 'C:\dita-ot-3.5.4\plugins\org.doctales.schematron\samples\temp\html5\topic-2.dita' was validated against Schematron 'C:\Users\dreifsnider\Downloads\dita-ot-3.5.4\plugins\org.doctales.schematron\rules\topic-validation.sch' and matches the rules