schxslt / schxslt-ant Goto Github PK
View Code? Open in Web Editor NEWAnt task for Schematron validation with SchXslt
License: MIT License
Ant task for Schematron validation with SchXslt
License: MIT License
The JAR file listed in the README is “ant-schxsl-1.3.jar”. The JAR file available for download from the “releases” section is “ant-schxslt-1.3.jar”. That missing ‘t’ can be a health hazard. (And personally, I prefer it with the ‘t’, but matching is more important than my preference.)
It would also be nice if the README told the reader explicitly from where to download the JAR file; and gave the reader either instructions on how to create (“compile” to) a JAR file, or a pointer to such instructions. (I realize it is not your job to teach java to those of us who are java-impaired, but a little advice could go a long way … :-)
<taskdef ... classpath="/path/to/schxslt-ant.jar"
ant-schxslt.jar
would be better.
<schematron ... file="test.sch"
test.xml
or anything other than *.sch
would be better.
I got this exception when I ran a task with Saxon-HE 9.9.1.1. The same set of files worked fine with 9.8.
I don't know if the problem is in Saxon or schxslt-ant. Anyway, is it working on your end?
build:
[schematron] Generating validation stylesheet for Schematron '/home/test/test/demo-01.sch'
BUILD FAILED
/home/test/test/build.xml:6: java.lang.UnsupportedOperationException
at net.sf.saxon.event.Receiver.append(Receiver.java:232)
at net.sf.saxon.event.ProxyReceiver.append(ProxyReceiver.java:234)
at net.sf.saxon.event.ComplexContentOutputter.append(ComplexContentOutputter.java:611)
at net.sf.saxon.expr.VariableReference.lambda$process$0(VariableReference.java:589)
at net.sf.saxon.tree.iter.SingletonIterator.forEachOrFail(SingletonIterator.java:152)
at net.sf.saxon.expr.VariableReference.process(VariableReference.java:589)
at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:898)
at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:721)
at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:735)
at net.sf.saxon.expr.instruct.NamedTemplate.expand(NamedTemplate.java:243)
at net.sf.saxon.expr.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:518)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:438)
at net.sf.saxon.trans.rules.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:71)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:482)
at net.sf.saxon.trans.XsltController.applyTemplates(XsltController.java:733)
at net.sf.saxon.s9api.AbstractXsltTransformer.applyTemplatesToSource(AbstractXsltTransformer.java:347)
at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:338)
at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:71)
at name.dmaus.schxslt.Compiler.compile(Compiler.java:63)
at name.dmaus.schxslt.ant.Schematron.<init>(Schematron.java:60)
at name.dmaus.schxslt.ant.Task.execute(Task.java:83)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:448)
at org.apache.tools.ant.Target.performTasks(Target.java:469)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1370)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:849)
at org.apache.tools.ant.Main.startAnt(Main.java:228)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:283)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Interface of Schematron has changed
Interface of Result has changed
Hi,
we evaluate different Schematron AntTask implementations to use them in our projects. One requirement would be that they are available on a public Maven repository (e.g. Maven Central). I noticed that the main artifacts of schXslt are on Maven Central but this not.
Is there a reason for? Or did I missed something?
Thanks!
Nico
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.