Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/edu/unl/abbot/stylesheets.clj
View
5 src/edu/unl/abbot/stylesheets.clj
@@ -25,13 +25,14 @@
(:use edu.unl.abbot.utils)
(:require [saxon :as sax]))
-;; Returns a closure for creating the conversion stylesheet (the stylesheet
-;; that does the actual conversion) from the meta-stylesheet.
+;; Creates the conversion stylesheet (the XSLT that does the actual
+;; conversion) from the meta-stylesheet, and returns it as a function.
;;
;; Templates from abbot_config.xml are read into the meta-stylesheet
;; at runtime (by the meta-stylesheet itself).
(defn conversion-stylesheet [schema]
+ "Returns the conversion stylesheet (as a function)"
(let [rng-file (sax/compile-xml (urlify schema))
meta-url "http://abbot.unl.edu/metaStylesheetForRNGschemas.xsl"
meta-stylesheet (sax/compile-xslt (java.net.URL. meta-url))

No commit comments for this range

Something went wrong with that request. Please try again.