glossarist / iev-document

Auto-generated IEV document from ConceptYAML
1 stars 0 forks source link

STS output warnings #24

Open ronaldtse opened 2 years ago

ronaldtse commented 2 years ago

The current STS generation leads to multiple warnings.

@Intelligent2013 can you help check? Thanks!

Validate XML againts XSD NISO-STS-extended-1-MathML3-XSD/NISO-STS-extended-1-mathml3.xsd...
/Users/me/src/glossarist/iev-document/site/documents/iec-60050-192.sts.xml is NOT valid reason:
[ERROR] org.xml.sax.SAXParseException; systemId: file:/Users/me/src/glossarist/iev-document/site/documents/iec-60050-192.sts.xml; lineNumber: 484; columnNumber: 20; cvc-complex-type.2.4.a: Invalid content was found starting with element 'verbal-definition'. One of '{disp-formula, disp-formula-group, chem-struct, inline-formula, "http://www.w3.org/1998/Math/MathML":math, bold, fixed-case, italic, monospace, num, overline, roman, sans-serif, sc, strike, underline, ruby, sub, sup, def-list, list, fn, target, xref, citation-alternatives, element-citation, mixed-citation, std, break, named-content, styled-content, address, alternatives, array, boxed-text, chem-struct-wrap, code, fig, fig-group, graphic, media, non-normative-note, normative-note, non-normative-example, normative-example, notes-group, preformat, supplementary-material, table-wrap, table-wrap-group, email, ext-link, uri, inline-graphic, private-char, "urn:iso:std:iso:30042:ed-1":entailedTerm}' is expected.
[ERROR] org.xml.sax.SAXParseException; systemId: file:/Users/me/src/glossarist/iev-document/site/documents/iec-60050-192.sts.xml; lineNumber: 510; columnNumber: 20; cvc-complex-type.2.4.a: Invalid content was found starting with element 'verbal-definition'. One of '{disp-formula, disp-formula-group, chem-struct, inline-formula, "http://www.w3.org/1998/Math/MathML":math, bold, fixed-case, italic, monospace, num, overline, roman, sans-serif, sc, strike, underline, ruby, sub, sup, def-list, list, fn, target, xref, citation-alternatives, element-citation, mixed-citation, std, break, named-content, styled-content, address, alternatives, array, boxed-text, chem-struct-wrap, code, fig, fig-group, graphic, media, non-normative-note, normative-note, non-normative-example, normative-example, notes-group, preformat, supplementary-material, table-wrap, table-wrap-group, email, ext-link, uri, inline-graphic, private-char, "urn:iso:std:iso:30042:ed-1":entailedTerm}' is expected.
[ERROR] org.xml.sax.SAXParseException; systemId: file:/Users/me/src/glossarist/iev-document/site/documents/iec-60050-192.sts.xml; lineNumber: 528; columnNumber: 20; cvc-complex-type.2.4.a: Invalid content was found starting with element 'verbal-definition'. One of '{disp-formula, disp-formula-group, chem-struct, inline-formula, "http://www.w3.org/1998/Math/MathML":math, bold, fixed-case, italic, monospace, num, overline, roman, sans-serif, sc, strike, underline, ruby, sub, sup, def-list, list, fn, target, xref, citation-alternatives, element-citation, mixed-citation, std, break, named-content, styled-content, address, alternatives, array, boxed-text, chem-struct-wrap, code, fig, fig-group, graphic, media, non-normative-note, normative-note, non-normative-example, normative-example, notes-group, preformat, supplementary-material, table-wrap, table-wrap-group, email, ext-link, uri, inline-graphic, private-char, "urn:iso:std:iso:30042:ed-1":entailedTerm}' is expected.
[ERROR] org.xml.sax.SAXParseException; systemId: file:/Users/me/src/glossarist/iev-document/site/documents/iec-60050-192.sts.xml; lineNumber: 554; columnNumber: 20; cvc-complex-type.2.4.a: Invalid content was found starting with element 'verbal-definition'. One of '{disp-formula, disp-formula-group, chem-struct, inline-formula, "http://www.w3.org/1998/Math/MathML":math, bold, fixed-case, italic, monospace, num, overline, roman, sans-serif, sc, strike, underline, ruby, sub, sup, def-list, list, fn, target, xref, citation-alternatives, element-citation, mixed-citation, std, break, named-content, styled-content, address, alternatives, array, boxed-text, chem-struct-wrap, code, fig, fig-group, graphic, media, non-normative-note, normative-note, non-normative-example, normative-example, notes-group, preformat, supplementary-material, table-wrap, table-wrap-group, email, ext-link, uri, inline-graphic, private-char, "urn:iso:std:iso:30042:ed-1":entailedTerm}' is expected.
ronaldtse commented 2 years ago

Presentation XML and STS XML attached. Archive.zip

Intelligent2013 commented 2 years ago

@ronaldtse

  1. just FYI, the file iec-60050-192.sts.xml from Archive.zip is the resulted sts xml of converting semantic metanorma xml, but not presentation xml. And this behavior is correct, because semantic xml contains more information than presentation.
  2. the error Invalid content was found starting with element 'verbal-definition' fixed in the mnconvert v1.13, but
  3. there are new errors relate to the element field-of-application and now they fixed in the mnconvert v1.14. (https://github.com/metanorma/mnconvert/releases/tag/v1.14.0) Done.