Re: I am wondering if there is a better way to validate and read-in clojure data?

2016-03-13 Thread Matching Socks
Writing text with XSLT is a delicate matter at best, and XSLT certainly does not help with notational guarantees as it does when writing XML. You might find it a better use of the respective strengths of the tools, for the XSLT to emit simple XML and the Clojure program to read it into data

Re: I am wondering if there is a better way to validate and read-in clojure data?

2016-03-13 Thread Gary Verhaegen
First off, unless you have a very good reason not to, you know the differences, and you know what you are doing, always use the "read" functions from clojure.edn rather than from clojure.core. When you say "bad data", is it malformed (as in not valid EDN) or is it not conforming to the expected

I am wondering if there is a better way to validate and read-in clojure data?

2016-03-11 Thread john
I am producing clojure data with XSLT. At first I embraced the result in a vector of vectors so that a single (read-string) would read the whole structure in one take. Unfortunately when the XSLT sheet produces bad data I don't see easily what is going wrong. So is there an alternative for