sbsdev / mdr2

Production Management Tool for DAISY Talking Books
GNU Affero General Public License v3.0
0 stars 0 forks source link

ncc w/o newlines cannot be read by some readers #60

Closed egli closed 9 years ago

egli commented 9 years ago

The ncc.html given by obi and is updated to make sure the meta data is correct. clojure.data.xml/emit does so without any newlines. This apparently makes some reading devices choke.

So emit the xml using indent.

egli commented 9 years ago

indent is basically a very simple transformer which just takes the output of emit and transforms it using indent='yes'. Unfortunately it doesn't retain the doctype. So after a day of enhancing indent to keep the doctype and then trying to make the transformation non-validating I opted for a simple hack: Just pipe the modified ncc.html and master.smil through xmllint.