double-nested <div> in ODD causes crash
I will (try to) attach a tarball of 6 tiny ODD files to this ticket. If you diff these files (ignoring whitespace), you will find that they are essentially the same except for how many levels of <div> the <schemaSpec> is nested in.
If I run Stylesheets/bin/teitohtml --odd --localsource=/path/to/P5/p5subset.xml --summaryDoc on each of these 6 input files, 5 work fine, 1 blows up with hundreds of lines of Java errors. The one that dies is T2.odd (which has, not surprisingly, 2 levels of <div>). At the moment I have no idea why, and do not have time right now to investigate further.
FWIW, I opened your T2 in oXygen and did the built in odd to html conversion without problem.
Me too -- builds no problem with the bleeding-edge plugin in Oxygen. However, if I do this:
Stylesheets/bin/teitohtml --odd --localsource=TEI/P5/p5subset.xml --summaryDoc
I do get an error:
/home/mholmes/WorkData/tei/Stylesheets/html/build-to.xml:33: The following error occurred while executing this line:
/home/mholmes/WorkData/tei/Stylesheets/common/teianttasks.xml:317: java.lang.RuntimeException: Internal error evaluating template rule at line 366 in module file:/home/mholmes/WorkData/tei/Stylesheets/html/html_textstructure.xsl
The error doesn't happen if I remove the --summaryDoc parameter. I didn't know that param existed, and I've never used it.
The --summaryDoc parameter is used to control the listing of documentation crystals in the generated HTML. Sebastian introduced it ages ago at my request: it should produce a list of names, descriptions of unmodified TEI elements in your ODD, with links to the standard P5 documentation instead of copies thereof. It wouldn't surprise me at all to find that some change has since broken it.
... however, setting this parameter to "true" in the Oxygen interface doesn't produce an error either (and does produce a summary HTML version). So the problem must lie elsewhere.