Open ronaldtse opened 4 years ago
It’s failing because the MN XML files need to be converted into STS XML then HTML. I missed doing this when updating the makefile. Once it is fixed the build should pass.
@ronaldtse
I've modified mn2sts.xsl to fix a few issues. For non-converted elements admonition
, quote
, appendix
I've added simple processing into xslt (convert to sec
, p
elements) and created tickets:
https://github.com/metanorma/mn2sts/issues/8
https://github.com/metanorma/mn2sts/issues/9
https://github.com/metanorma/mn2sts/issues/10
But iso.rice-en.xml doesn't valid against DTD ISO due the reason:
[ERROR] org.xml.sax.SAXParseException; lineNumber: 1673; columnNumber: 7; Element type "code" must be declared.
[ERROR] org.xml.sax.SAXParseException; lineNumber: 1677; columnNumber: 56; Attribute "id" must be declared for element type "annotation".
[ERROR] org.xml.sax.SAXParseException; lineNumber: 1683; columnNumber: 25; The content of element type "non-normative-example" must match "(label?,(address|alternatives|array|boxed-text|chem-struct-wrap|fig|fig-group|graphic|media|non-normative-note|non-normative-example|preformat|supplementary-material|table-wrap|table-wrap-group|disp-formula|disp-formula-group|p|def-list|list|mml:math|related-article|related-object|disp-quote|speech|statement|verse-group)*)".
[ERROR] org.xml.sax.SAXParseException; lineNumber: 1799; columnNumber: 12; An element with the identifier "_385aa053-2028-4ff6-84a9-37f06d590435" must appear in the document.
Should I turn off DTD ISO (not NISO) validation?
Update: I've disabled DTD ISO test in junit. Let's see what is happen.
Error with
make documents.html