Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it doesn't seem to work with 3.6 #8

Open
thendarion opened this issue Jan 28, 2021 · 5 comments
Open

it doesn't seem to work with 3.6 #8

thendarion opened this issue Jan 28, 2021 · 5 comments
Assignees
Labels

Comments

@thendarion
Copy link

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

am I missing something?

@thendarion
Copy link
Author

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

@thendarion
Copy link
Author

nope, still not working with 3.6.1

@thendarion thendarion reopened this Apr 20, 2021
@ben-ntnx
Copy link

ben-ntnx commented Aug 21, 2021

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]

@stefan-jung stefan-jung self-assigned this Aug 22, 2021
@reifsnid
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants