The error you’re seeing just says that function isn’t defined/available in the REPL:
CompilerException java.lang.RuntimeException: Unable to resolve symbol: create-validation-fn in this context, compiling:(C:\cygwin64\tmp\form-init15757041316465825177.clj:1:20) Sounds like you need to require a namespace and refer in that symbol…? Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ________________________________ From: clojure@googlegroups.com <clojure@googlegroups.com> on behalf of Stephen Feyrer <stephen.fey...@gmail.com> Sent: Monday, May 28, 2018 3:23:07 PM To: clojure@googlegroups.com Subject: Validate XSD 1.1 Hi there, I would to validate some XML documents in XSD version 1.1. This cutting edge standard is now all of six years old. So perhaps it is understandable that it hasn't reached the mainstream stable branches of either the Java or .NET eco-systems. For XSD version 1.0 there is https://clojars.org/clj-xml-validation and that works very well. Now there is a library which is available to Java which claims XSD 1.1 compliance: :dependencies [[org.clojure/clojure "1.9.0"] [org.opengis.cite.xerces/xercesImpl-xsd11 "2.12-beta-r1667115"]] So I have included that in my project.clj and copied the source of the above clojar into my pet project on my PC (Java HotSpot(TM) 64-Bit Server VM 10.0.1+10). That is as far as I've gotten. Nothing seems to pick up on the XSD version 1.1. I have tried: (System/setProperty "javax.xml.validation.SchemaFactory:http://www.w3.org/XML/XMLSchema/v1.1" "org.apache.xerces.jaxp.validation.XMLSchema11Factory") (defn- validator-from-schemas [sources] (-> (SchemaFactory/newInstance "http://www.w3.org/XML/XMLSchema/v1.1") (.newSchema sources) (.newValidator))) Then I run: user=> (def is-valid-xml? (create-validation-fn (slurp xsd-path))) CompilerException java.lang.RuntimeException: Unable to resolve symbol: create-validation-fn in this context, compiling:(C:\cygwin64\tmp\form-init15757041316465825177.clj:1:20) My theory is that libraries like javax.xml and org.xml.sax are now in modules which is probably just one of many problems. Any insights are gratefully received? -- Regards Stephen. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com<mailto:clojure+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.