Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STS output warnings #24

Open
ronaldtse opened this issue Jan 3, 2022 · 2 comments
Open

STS output warnings #24

ronaldtse opened this issue Jan 3, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ronaldtse
Copy link
Member

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 ronaldtse added the bug Something isn't working label Jan 3, 2022
@ronaldtse
Copy link
Member Author

Presentation XML and STS XML attached.
Archive.zip

@Intelligent2013
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants