Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Boilerplate converting #42

Closed
Intelligent2013 opened this issue May 21, 2021 · 1 comment
Closed

Boilerplate converting #42

Intelligent2013 opened this issue May 21, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Intelligent2013
Copy link
Contributor

Intelligent2013 commented May 21, 2021

Source: https://github.com/metanorma/mn-samples-bsi/issues/2

Source MN XML data:

<docidentifier type="ISBN">978 0 539 03116 4</docidentifier>
<ics>
	<code>03.100.70</code>
</ics>
<ics>
	<code>01.120</code>
</ics>
<boilerplate>
	<copyright-statement>
		<clause>
			<title depth="1">Publishing and copyright information</title>
			<p id="_110d3205-7a0d-4007-b8ed-ff9d9c6ff002">The BSI copyright notice displayed in this document indicates when the document was last issued.</p>
			<p id="boilerplate-year"> &#169; BSI 2020</p>
			<p id="_d803cd19-200d-45ba-b3d1-21eaad9cab48">Published by BSI Standards Limited 2020</p>
		</clause>
	</copyright-statement>
<preface>
...
<clause id="_amendmentscorrigenda_issued_since_publication" type="corrigenda" inline-header="false" obligation="informative">
	<title depth="1">Amendments/corrigenda issued since publication</title>
	<table id="tab_ace_nat" unnumbered="true">
		<colgroup>
			<col width="50%"/>
			<col width="50%"/>
		</colgroup>
		<thead>
			<tr>
				<th valign="top" align="left">Date</th>
				<th valign="top" align="left">Text affected</th>
			</tr>
		</thead>
	</table>
</clause>
</preface>

Should be converted to STS XML data:

<front>
...
</nat-meta>
<sec id="sec_pub_info_nat" sec-type="publication_info">
	<title>Publishing and copyright information</title>
	<p>The BSI copyright notice displayed in this document indicates when the document was last issued.</p>
	<p>© The British Standards Institution 2020</p>
	<p>Published by BSI Standards Limited 2020</p>
	<p>ISBN 978 0 539 03116 4</p>
	<p>ICS 01.120; 03.100.70</p>
	<list id="BSI_ref" list-type="simple">
		<list-item>
			<p>The following BSI references relate to the work on this document:</p>
			<p>Committee reference DEF/1</p>
			<p>Draft for comment 20/30387670 DC</p>
		</list-item>
	</list>
	<table-wrap id="tab_ace_nat" content-type="ace-table">
		<caption>
			<title>Amendments/corrigenda issued since publication</title>
		</caption>
		<table style="border-collapse:collapse;">
			<colgroup>
				<col width="30%"/>
				<col width="70%"/>
			</colgroup>
			<thead>
				<tr>
					<th align="left" valign="top" style="border-bottom: solid 2px">Date</th>
					<th align="left" valign="top" style="border-bottom: solid 2px">Text affected</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td align="left" valign="top"/>
					<td align="left" valign="top"/>
				</tr>
			</tbody>
		</table>
	</table-wrap>
</sec>
@Intelligent2013 Intelligent2013 added the enhancement New feature or request label May 21, 2021
@Intelligent2013 Intelligent2013 self-assigned this May 21, 2021
Intelligent2013 added a commit that referenced this issue Jun 3, 2021
@Intelligent2013
Copy link
Contributor Author

Done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant