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

ISO amendment conversion failed #253

Closed
Intelligent2013 opened this issue Sep 15, 2022 · 2 comments
Closed

ISO amendment conversion failed #253

Intelligent2013 opened this issue Sep 15, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Intelligent2013
Copy link
Contributor

Source: #202

The validation error occurs:
D:\Work\Metanorma\NISO_STS\ISO\iso-8601-1-amd.sts.niso.xml is NOT valid reason: [ERROR] org.xml.sax.SAXParseException; lineNumber: 116; columnNumber: 11; cvc-complex-type.2.4.a: Invalid content was found starting with element '{"urn:iso:std:iso:30042:ed-1":note}'. One of '{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, disp-formula, disp-formula-group, editing-instruction, def-list, list, tex-math, "http://www.w3.org/1998/Math/MathML":math, p, related-article, related-object, disp-quote, speech, statement, verse-group, fn-group, glossary, ref-list, sec, term-sec}' is expected.

Resulted XML fragment:

<sec id="sec_3.1.1.24">
<label>3.1.1.24</label>
...
<tbx:note>An inserted second is called ...</tbx:note>
</sec>

To do: in amend - tbx:note should be replaced by non-normative-note even the source element is termnote.

@Intelligent2013 Intelligent2013 added the bug Something isn't working label Sep 15, 2022
@Intelligent2013 Intelligent2013 self-assigned this Sep 15, 2022
@Intelligent2013 Intelligent2013 moved this to 🆕 New in Metanorma Sep 15, 2022
@Intelligent2013 Intelligent2013 moved this from 🆕 New to 🏗 In progress in Metanorma Sep 15, 2022
@Intelligent2013
Copy link
Contributor Author

Wrong conversion from:

<clause id="_4_3_2_third_paragraph" obligation="normative">
   <title>4.3.2, third paragraph</title>

to

<sec id="sec_7">
	<label>7</label>
	<title>4.3.2, third paragraph</title>

if title contains something else than just section number.

Intelligent2013 added a commit that referenced this issue Sep 16, 2022
mn2xml.xsl updated for amendment issues fixing, #253
@Intelligent2013
Copy link
Contributor Author

Done.

Repository owner moved this from 🏗 In progress to ✅ Done in Metanorma Sep 16, 2022
@ronaldtse ronaldtse removed this from Metanorma Jul 5, 2023
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

1 participant