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

use ph-schematron ant task #4

Conversation

bwbohl
Copy link

@bwbohl bwbohl commented Jun 25, 2024

This is an alternative Ant task that also uses SchXslt works locally on my machine, havent’t tested Windows or Docker environemtn.

@musicEnfanthen
Copy link
Owner

validate-source:
[schematron] Successfully parsed Schematron file 'D:\Repositories\MusicEncoding\fork_music-encoding\source\validation\mei-source.sch'
[schematron] Validating XML file 'D:\Repositories\MusicEncoding\fork_music-encoding\build\mei-source_canonicalized_v5.1-dev.xml' against Schematron rules from 'mei-source.sch' expecting success
[schematron] JAXP: using thread context class loader (java.net.URLClassLoader@77459877) for search   
[schematron] JAXP: Looking up system property 'javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema'
[schematron] JAXP: The property is undefined.
[schematron] JAXP: attempting to use the platform default XML Schema validator
[schematron] JAXP: factory 'com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory' was found for http://www.w3.org/2001/XMLSchema

[schematron] XML file 'D:\Repositories\MusicEncoding\fork_music-encoding\build\mei-source_canonicalized_v5.1-dev.xml' was validated against Schematron 'D:\Repositories\MusicEncoding\fork_music-encoding\source\validation\mei-source.sch' and matches the rules

Yay!

@musicEnfanthen
Copy link
Owner

Thanks for investigating!

build.xml Outdated Show resolved Hide resolved
@musicEnfanthen musicEnfanthen merged commit 92143b4 into musicEnfanthen:schematron-validation Jun 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants