kshawkin / Best-Practices-for-TEI-in-Libraries

Best Practices for TEI in Libraries: A guide for mass digitization, automated workflows, and promotion of interoperability with XML using the TEI
http://purl.oclc.org/NET/teiinlibraries
32 stars 8 forks source link

Cannot generate relaxng #72

Open lb42 opened 6 years ago

lb42 commented 6 years ago

The README suggests I can process main_driver.odd to generate a RELAXNG schema, but I can't get this to work in oXygen 19.1 using current TEI framework at release 3.3.0a. The source is not valid against TEI All, but no specialised ODD is indicated. The supplied bash script doesn't work for me: it seems rather idiosyncratic. I can generate HTML from the main_driver ODD (having run it through xmllint to expand the xincludes, as recommended) at the command line using teitohtml , but using teitorelaxng with the ODD (with includes resolved) also fails

Fatal error during transformation using /usr/share/xml/tei/stylesheet/profiles/default/relaxng/to.xsl: A sequence of more than one item is not allowed as the result of call to tei:generateRefPrefix ("lib1_model.gLike", "lib1_model.gLike", ...) ; SystemID: file:/usr/share/xml/tei/stylesheet/odds/teiodds.xsl; Line#: 2382

emylonas commented 6 years ago

@sydb Syd to look at README, add any missing information for making the rng files and ask Lou to try again.

sydb commented 6 years ago

OK, @lb42. Both the build process and the instructions for them have been re-written somewhat, and both @martindholmes and @emylonas have been been able to generate outputs. Could you take a look at the instructions and see if things work for you now? Thanks!