Stylesheets icon indicating copy to clipboard operation
Stylesheets copied to clipboard

double-nested <div> in ODD causes crash

Open sydb opened this issue 7 years ago • 5 comments

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.

sydb avatar Mar 14 '18 20:03 sydb

Test-schemaSpec-in-div.zip

Funny — GitHub will not allow a tarball; so it’s a ZIP file.

sydb avatar Mar 14 '18 20:03 sydb

FWIW, I opened your T2 in oXygen and did the built in odd to html conversion without problem.

lb42 avatar Mar 14 '18 23:03 lb42

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.

martindholmes avatar Mar 15 '18 00:03 martindholmes

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.

lb42 avatar Mar 15 '18 10:03 lb42

... 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.

lb42 avatar Mar 15 '18 11:03 lb42