TEIC / Stylesheets

TEI XSL Stylesheets
228 stars 123 forks source link

odd2odd still broken #680

Closed lb42 closed 1 week ago

lb42 commented 2 months ago

Guidelines version 4.8.0a Stylesheets version 7.57.0a

At the command line, I run teitoodd to produce a compiled ODD, apparently successfully. However, this compiled ODD is not usable as the start of a chain: any ODD which specifies it fails with the unhelpful message "A sequence of more than one item is not allowed as the first operand of 'gt' (@versionDate ="2005-12-24", @versionDate  ="2005-12-24", @versionDate ="2005-12-24")

XSLT Stack Trace: at tei:descOrGlossOutOfDate() (file:/home/lou/Oxygen%20XML%20Editor%2026/frameworks/tei/xml/tei/stylesheet/common/common_tagdocs.xsl#679) at xsl:apply-templates (file:/home/lou/Oxygen%20XML%20Editor%2026/frameworks/tei/xml/tei/stylesheet/odds/odd2lite.xsl#251) processing /TEI/text[1]/back[1]/div[1]/schemaSpec[1]/elementSpec[18] at xsl:apply-templates (file:/home/lou/Oxygen%20XML%20Editor%2026/frameworks/tei/xml/tei/stylesheet/odds/odd2lite.xsl#169) processing /TEI/text[1]/back[1]/div[1]/schemaSpec[1] at xsl:apply-templates (file:/home/lou/Oxygen%20XML%20Editor%2026/frameworks/tei/xml/tei/stylesheet/odds/odd2lite.xsl#169) processing /TEI/text[1]/back[1]/div[1] at xsl:apply-templates (file:/home/lou/Oxygen%20XML%20Editor%2026/frameworks/tei/xml/tei/stylesheet/odds/odd2lite.xsl#169) processing /TEI/text[1]/back[1] at xsl:apply-templates (file:/home/lou/Oxygen%20XML%20Editor%2026/frameworks/tei/xml/tei/stylesheet/odds/odd2lite.xsl#169) processing /TEI/text[1] at xsl:apply-templates (file:/home/lou/Oxygen%20XML%20Editor%2026/frameworks/tei/xml/tei/stylesheet/odds/odd2lite.xsl#104) processing /TEI

Same thing happens when I try to process the chaining ODD at the command line e.g. teitohtml --odd --localsource=/home/lou/Public/TEI/P5/p5subset.xml eltec-0.xml

Processing it with with the command line teitorelaxng --localsource=/home/lou/Public/TEI/P5/p5subset.xml eltec-0.xml seems to terminate successfully, but the schema generated is not valid -- it has no root element and many duplicate attribute declarations

This definitely used to work!

joeytakeda commented 2 months ago

After some testing, it seems like the changes in #681 should also fix the issue here with chaining. It's still unclear to me how this wasn't caught by any of the tests...