Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Ramsay committed Aug 6, 2012
1 parent 0a4b053 commit 44f365e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/edu/unl/abbot/cli.clj
Expand Up @@ -8,7 +8,7 @@
;;; for the Center for Digital Research in the Humanities at the
;;; University of Nebraska-Lincoln.
;;;
;;; Last Modified: Mon Aug 06 17:13:01 CDT 2012
;;; Last Modified: Mon Aug 06 17:39:27 CDT 2012
;;;
;;; Copyright © 2011-2012 Board of Regents of the University of Nebraska-
;;; Lincoln (and others). See COPYING for details.
Expand All @@ -19,12 +19,12 @@
;;; for more details.

(ns edu.unl.abbot.cli
(:import
(java.io File))
(:use edu.unl.abbot.core)
(:use edu.unl.abbot.stylesheets)
(:use edu.unl.abbot.utils)
(import
(java.io File))
(:gen-class))
(:gen-class))

(require '[clojure.tools.cli :as c])

Expand Down
8 changes: 4 additions & 4 deletions src/edu/unl/abbot/core.clj
Expand Up @@ -8,7 +8,7 @@
;;; for the Center for Digital Research in the Humanities at the
;;; University of Nebraska-Lincoln.
;;;
;;; Last Modified: Mon Aug 06 17:13:16 CDT 2012
;;; Last Modified: Mon Aug 06 17:39:32 CDT 2012
;;;
;;; Copyright © 2011-2012 Board of Regents of the University of Nebraska-
;;; Lincoln (and others). See COPYING for details.
Expand All @@ -19,12 +19,12 @@
;;; for more details.

(ns edu.unl.abbot.core
(:import
(java.io File))
(:use edu.unl.abbot.stylesheets)
(:use edu.unl.abbot.utils)
(:use clojure.java.io)
(import
(java.io File))
(:gen-class))
(:gen-class))

(defn input-files [input-dir]
"Read input file and do some basic sanity checking."
Expand Down
12 changes: 6 additions & 6 deletions src/edu/unl/abbot/stylesheets.clj
Expand Up @@ -29,12 +29,12 @@
(:require [clojure.java.io :as io]))

(defn create-meta-stylesheet [custom]
(let [meta-url "http://abbot.unl.edu/metaStylesheetForRNGschemas.xsl"]
;meta-input (java.io.StringReader. (slurp meta-url))
;custom-input (java.io.InputStreamReader. (java.io.FileInputStream. custom) "UTF-8")
;meta-map (parse meta-input)
;custom-map (parse custom-input)]
;(.close custom-input)
(let [meta-url "http://abbot.unl.edu/metaStylesheetForRNGschemas.xsl"
meta-input (java.io.StringReader. (slurp meta-url))
custom-input (java.io.InputStreamReader. (java.io.FileInputStream. custom) "UTF-8")
meta-map (parse meta-input)
custom-map (parse custom-input)]
(.close custom-input)
(fn [x] ((sax/compile-xslt (java.net.URL. meta-url)) x))))

;; Creates the conversion stylesheet (the XSLT that does the actual
Expand Down
2 changes: 1 addition & 1 deletion src/edu/unl/abbot/utils.clj
Expand Up @@ -19,7 +19,7 @@
;;; for more details.

(ns edu.unl.abbot.utils
(import
(:import
(java.io File)))

(def version "0.4.8")
Expand Down

0 comments on commit 44f365e

Please sign in to comment.