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 structures with clojure.xml/parse. Those structures in turn could then be translated to whatever you like via map or zipper functions, or plain loops.
By the way, you might be able to avoid serializing this intermediate XML as text and re-parsing that very same text. The JAXP Transformer can send output to a SAXResult, and clojure.xml/parse exposes a SAX ContentHandler. Wiring it up could be a challenge, but in effect the Transformer would populate the Clojure persistent data structures. -- 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.