spec/isodoc/xref_spec.rb in isodoc-0.8.5 vs spec/isodoc/xref_spec.rb in isodoc-0.8.6

- old
+ new

@@ -5,18 +5,30 @@ expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)). to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> <p> + <xref target="N1"/> + <xref target="N2"/> <xref target="N"/> <xref target="note1"/> <xref target="note2"/> <xref target="AN"/> <xref target="Anote1"/> <xref target="Anote2"/> </p> </foreword> + <introduction id="intro"> + <note id="N1"> + <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83e">These results are based on a study carried out on three different types of kernel.</p> +</note> +<clause id="xyz"><title>Preparatory</title> + <note id="N2"> + <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83d">These results are based on a study carried out on three different types of kernel.</p> +</note> +</clause> + </introduction> </preface> <sections> <clause id="scope"><title>Scope</title> <note id="N"> <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p> @@ -58,18 +70,30 @@ #{HTML_HDR} <br/> <div> <h1 class="ForewordTitle">Foreword</h1> <p> + <a href="#N1">Introduction, Note</a> + <a href="#N2">Preparatory, Note</a> <a href="#N">Clause 1, Note</a> - <a href="#note1">3.1, Note 1</a> - <a href="#note2">3.1, Note 2</a> - <a href="#AN">A.1, Note</a> - <a href="#Anote1">A.2, Note 1</a> - <a href="#Anote2">A.2, Note 2</a> + <a href="#note1">Clause 3.1, Note 1</a> + <a href="#note2">Clause 3.1, Note 2</a> + <a href="#AN">Annex A.1, Note</a> + <a href="#Anote1">Annex A.2, Note 1</a> + <a href="#Anote2">Annex A.2, Note 2</a> </p> </div> + <br/> + <div class="Section3" id="intro"> + <h1 class="IntroTitle">Introduction</h1> + <div id="N1" class="Note"> + <p><span class="note_label">NOTE</span>&#160; These results are based on a study carried out on three different types of kernel.</p> + </div> + <div id="xyz"><h2>Preparatory</h2> + <div id="N2" class="Note"><p><span class="note_label">NOTE</span>&#160; These results are based on a study carried out on three different types of kernel.</p></div> + </div> + </div> <p class="zzSTDTitle1"/> <div id="scope"> <h1>1.&#160; Scope</h1> <div id="N" class="Note"> <p><span class="note_label">NOTE</span>&#160; These results are based on a study carried out on three different types of kernel.</p> @@ -89,23 +113,23 @@ <a href="http://www.electropedia.org">http://www.electropedia.org</a> </p> </li> </ul> </div> <div id="widgets"> <h1>3.&#160; Widgets</h1> - <div id="widgets1"> + <div id="widgets1"><h2>3.1. </h2> <div id="note1" class="Note"><p><span class="note_label">NOTE 1</span>&#160; These results are based on a study carried out on three different types of kernel.</p></div> <div id="note2" class="Note"><p><span class="note_label">NOTE 2</span>&#160; These results are based on a study carried out on three different types of kernel.</p></div> <p> <a href="#note1">Note 1</a> <a href="#note2">Note 2</a> </p> </div> </div> <br/> <div id="annex1" class="Section3"> - <div id="annex1a"> + <div id="annex1a"><h2>A.1. </h2> <div id="AN" class="Note"><p><span class="note_label">NOTE</span>&#160; These results are based on a study carried out on three different types of kernel.</p></div> </div> - <div id="annex1b"> + <div id="annex1b"><h2>A.2. </h2> <div id="Anote1" class="Note"><p><span class="note_label">NOTE 1</span>&#160; These results are based on a study carried out on three different types of kernel.</p></div> <div id="Anote2" class="Note"><p><span class="note_label">NOTE 2</span>&#160; These results are based on a study carried out on three different types of kernel.</p></div> </div> </div> </div> @@ -118,18 +142,32 @@ expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword id="fwd"> <p> + <xref target="N1"/> + <xref target="N2"/> <xref target="N"/> <xref target="note1"/> <xref target="note2"/> <xref target="AN"/> <xref target="Anote1"/> <xref target="Anote2"/> </p> </foreword> + <introduction id="intro"> + <figure id="N1"> + <name>Split-it-right sample divider</name> + <image src="rice_images/rice_image1.png" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/> + </figure> + <clause id="xyz"><title>Preparatory</title> + <figure id="N2"> + <name>Split-it-right sample divider</name> + <image src="rice_images/rice_image1.png" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/> + </figure> +</clause> + </introduction> </preface> <sections> <clause id="scope"><title>Scope</title> <figure id="N"> <name>Split-it-right sample divider</name> @@ -175,27 +213,43 @@ #{HTML_HDR} <br/> <div id="fwd"> <h1 class="ForewordTitle">Foreword</h1> <p> - <a href="#N">Figure 1</a> - <a href="#note1">Figure 2</a> - <a href="#note2">Figure 3</a> + <a href="#N1">Figure 1</a> + <a href="#N2">Figure 2</a> + <a href="#N">Figure 3</a> + <a href="#note1">Figure 4</a> + <a href="#note2">Figure 5</a> <a href="#AN">Figure A.1</a> <a href="#Anote1">Figure A.2</a> <a href="#Anote2">Figure A.3</a> </p> </div> + <br/> + <div class="Section3" id="intro"> + <h1 class="IntroTitle">Introduction</h1> + <div id="N1" class="figure"> + + <img src="rice_images/rice_image1.png" height="auto" width="auto"/> + <p class="FigureTitle" align="center">Figure 1&#160;&#8212; Split-it-right sample divider</p></div> + <div id="xyz"><h2>Preparatory</h2> + <div id="N2" class="figure"> + + <img src="rice_images/rice_image1.png" height="auto" width="auto"/> + <p class="FigureTitle" align="center">Figure 2&#160;&#8212; Split-it-right sample divider</p></div> + </div> + </div> <p class="zzSTDTitle1"/> <div id="scope"> <h1>1.&#160; Scope</h1> <div id="N" class="figure"> <img src="rice_images/rice_image1.png" height="auto" width="auto"/> - <p class="FigureTitle" align="center">Figure 1&#160;&#8212; Split-it-right sample divider</p></div> + <p class="FigureTitle" align="center">Figure 3&#160;&#8212; Split-it-right sample divider</p></div> <p> - <a href="#N">Figure 1</a> + <a href="#N">Figure 3</a> </p> </div> <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p> <p>ISO and IEC maintain terminological databases for use in standardization at the following addresses:</p> @@ -207,31 +261,31 @@ <a href="http://www.electropedia.org">http://www.electropedia.org</a> </p> </li> </ul> </div> <div id="widgets"> <h1>3.&#160; Widgets</h1> - <div id="widgets1"> + <div id="widgets1"><h2>3.1. </h2> <div id="note1" class="figure"> <img src="rice_images/rice_image1.png" height="auto" width="auto"/> - <p class="FigureTitle" align="center">Figure 2&#160;&#8212; Split-it-right sample divider</p></div> + <p class="FigureTitle" align="center">Figure 4&#160;&#8212; Split-it-right sample divider</p></div> <div id="note2" class="figure"> <img src="rice_images/rice_image1.png" height="auto" width="auto"/> - <p class="FigureTitle" align="center">Figure 3&#160;&#8212; Split-it-right sample divider</p></div> - <p> <a href="#note1">Figure 2</a> <a href="#note2">Figure 3</a> </p> + <p class="FigureTitle" align="center">Figure 5&#160;&#8212; Split-it-right sample divider</p></div> + <p> <a href="#note1">Figure 4</a> <a href="#note2">Figure 5</a> </p> </div> </div> <br/> <div id="annex1" class="Section3"> - <div id="annex1a"> + <div id="annex1a"><h2>A.1. </h2> <div id="AN" class="figure"> <img src="rice_images/rice_image1.png" height="auto" width="auto"/> <p class="FigureTitle" align="center">Figure A.1&#160;&#8212; Split-it-right sample divider</p></div> </div> - <div id="annex1b"> + <div id="annex1b"><h2>A.2. </h2> <div id="Anote1" class="figure"> <img src="rice_images/rice_image1.png" height="auto" width="auto"/> <p class="FigureTitle" align="center">Figure A.2&#160;&#8212; Split-it-right sample divider</p></div> <div id="Anote2" class="figure"> @@ -327,11 +381,11 @@ <a href="http://www.electropedia.org">http://www.electropedia.org</a> </p> </li> </ul> </div> <div id="widgets"> <h1>3.&#160; Widgets</h1> - <div id="widgets1"> + <div id="widgets1"><h2>3.1. </h2> <div id="N" class="figure"> <div id="note1" class="figure"> <img src="rice_images/rice_image1.png" height="auto" width="auto"/> <p class="FigureTitle" align="center">Figure 1-1&#160;&#8212; Split-it-right sample divider</p></div> @@ -343,13 +397,13 @@ <p> <a href="#note1">Figure 1-1</a> <a href="#note2">Figure 1-2</a> </p> </div> </div> <br/> <div id="annex1" class="Section3"> - <div id="annex1a"> + <div id="annex1a"><h2>A.1. </h2> </div> - <div id="annex1b"> + <div id="annex1b"><h2>A.2. </h2> <div id="AN" class="figure"> <div id="Anote1" class="figure"> <img src="rice_images/rice_image1.png" height="auto" width="auto"/> <p class="FigureTitle" align="center">Figure A.1-1&#160;&#8212; Split-it-right sample divider</p></div> @@ -370,18 +424,30 @@ expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> <p> + <xref target="N1"/> + <xref target="N2"/> <xref target="N"/> <xref target="note1"/> <xref target="note2"/> <xref target="AN"/> <xref target="Anote1"/> <xref target="Anote2"/> </p> </foreword> + <introduction id="intro"> + <example id="N1"> + <p>Hello</p> +</example> +<clause id="xyz"><title>Preparatory</title> + <example id="N2"> + <p>Hello</p> +</example> +</clause> + </introduction> </preface> <sections> <clause id="scope"><title>Scope</title> <example id="N"> <p>Hello</p> @@ -421,18 +487,37 @@ #{HTML_HDR} <br/> <div> <h1 class="ForewordTitle">Foreword</h1> <p> + <a href="#N1">Introduction, Example</a> + <a href="#N2">Preparatory, Example</a> <a href="#N">Clause 1, Example</a> - <a href="#note1">3.1, Example 1</a> - <a href="#note2">3.1, Example 2</a> - <a href="#AN">A.1, Example</a> - <a href="#Anote1">A.2, Example 1</a> - <a href="#Anote2">A.2, Example 2</a> + <a href="#note1">Clause 3.1, Example 1</a> + <a href="#note2">Clause 3.1, Example 2</a> + <a href="#AN">Annex A.1, Example</a> + <a href="#Anote1">Annex A.2, Example 1</a> + <a href="#Anote2">Annex A.2, Example 2</a> </p> </div> + <br/> + <div class="Section3" id="intro"> + <h1 class="IntroTitle">Introduction</h1> + <table id="N1" class="example"> + <tr> + <td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td> + <td valign="top" class="example"> + <p>Hello</p> + </td> + </tr> + </table> + <div id="xyz"><h2>Preparatory</h2> + <table id="N2" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example"> + <p>Hello</p> + </td></tr></table> + </div> + </div> <p class="zzSTDTitle1"/> <div id="scope"> <h1>1.&#160; Scope</h1> <table id="N" class="example"> <tr> @@ -457,11 +542,11 @@ <a href="http://www.electropedia.org">http://www.electropedia.org</a> </p> </li> </ul> </div> <div id="widgets"> <h1>3.&#160; Widgets</h1> - <div id="widgets1"> + <div id="widgets1"><h2>3.1. </h2> <table id="note1" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example"> <p>Hello</p> </td></tr></table> <table id="note2" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example"> <p>Hello</p> @@ -469,16 +554,16 @@ <p> <a href="#note1">Example 1</a> <a href="#note2">Example 2</a> </p> </div> </div> <br/> <div id="annex1" class="Section3"> - <div id="annex1a"> + <div id="annex1a"><h2>A.1. </h2> <table id="AN" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td><td valign="top" class="example"> <p>Hello</p> </td></tr></table> </div> - <div id="annex1b"> + <div id="annex1b"><h2>A.2. </h2> <table id="Anote1" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td><td valign="top" class="example"> <p>Hello</p> </td></tr></table> <table id="Anote2" class="example"><tr><td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td><td valign="top" class="example"> <p>Hello</p> @@ -495,18 +580,30 @@ expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> <p> + <xref target="N1"/> + <xref target="N2"/> <xref target="N"/> <xref target="note1"/> <xref target="note2"/> <xref target="AN"/> <xref target="Anote1"/> <xref target="Anote2"/> </p> </foreword> + <introduction id="intro"> + <formula id="N1"> + <stem type="AsciiMath">r = 1 %</stem> + </formula> + <clause id="xyz"><title>Preparatory</title> + <formula id="N2"> + <stem type="AsciiMath">r = 1 %</stem> + </formula> +</clause> + </introduction> </preface> <sections> <clause id="scope"><title>Scope</title> <formula id="N"> <stem type="AsciiMath">r = 1 %</stem> @@ -560,24 +657,34 @@ #{HTML_HDR} <br/> <div> <h1 class="ForewordTitle">Foreword</h1> <p> - <a href="#N">Clause 1, Formula (1)</a> - <a href="#note1">3.1, Formula (2)</a> - <a href="#note2">3.1, Formula (3)</a> - <a href="#AN">A.1, Formula (A.1)</a> - <a href="#Anote1">A.2, Formula (A.2)</a> - <a href="#Anote2">A.2, Formula (A.3)</a> + <a href="#N1">Introduction, Formula (1)</a> + <a href="#N2">Preparatory, Formula (2)</a> + <a href="#N">Clause 1, Formula (3)</a> + <a href="#note1">Clause 3.1, Formula (4)</a> + <a href="#note2">Clause 3.1, Formula (5)</a> + <a href="#AN">Annex A.1, Formula (A.1)</a> + <a href="#Anote1">Annex A.2, Formula (A.2)</a> + <a href="#Anote2">Annex A.2, Formula (A.3)</a> </p> </div> + <br/> + <div class="Section3" id="intro"> + <h1 class="IntroTitle">Introduction</h1> + <div id="N1" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (1)</div> + <div id="xyz"><h2>Preparatory</h2> + <div id="N2" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (2)</div> + </div> + </div> <p class="zzSTDTitle1"/> <div id="scope"> <h1>1.&#160; Scope</h1> - <div id="N" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (1)</div> + <div id="N" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (3)</div> <p> - <a href="#N">Formula (1)</a> + <a href="#N">Formula (3)</a> </p> </div> <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p> <p>ISO and IEC maintain terminological databases for use in standardization at the following addresses:</p> @@ -589,22 +696,22 @@ <a href="http://www.electropedia.org">http://www.electropedia.org</a> </p> </li> </ul> </div> <div id="widgets"> <h1>3.&#160; Widgets</h1> - <div id="widgets1"> - <div id="note1" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (2)</div> - <div id="note2" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (3)</div> - <p> <a href="#note1">Formula (2)</a> <a href="#note2">Formula (3)</a> </p> + <div id="widgets1"><h2>3.1. </h2> + <div id="note1" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (4)</div> + <div id="note2" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (5)</div> + <p> <a href="#note1">Formula (4)</a> <a href="#note2">Formula (5)</a> </p> </div> </div> <br/> <div id="annex1" class="Section3"> - <div id="annex1a"> + <div id="annex1a"><h2>A.1. </h2> <div id="AN" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (A.1)</div> </div> - <div id="annex1b"> + <div id="annex1b"><h2>A.2. </h2> <div id="Anote1" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (A.2)</div> <div id="Anote2" class="formula"><span class="stem">(#(r = 1 %)#)</span>&#160; (A.3)</div> </div> </div> </div> @@ -617,18 +724,44 @@ expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> <p> + <xref target="N1"/> + <xref target="N2"/> <xref target="N"/> <xref target="note1"/> <xref target="note2"/> <xref target="AN"/> <xref target="Anote1"/> <xref target="Anote2"/> </p> </foreword> + <introduction id="intro"> + <table id="N1"> + <name>Repeatability and reproducibility of husked rice yield</name> + <tbody> + <tr> + <td align="left">Number of laboratories retained after eliminating outliers</td> + <td align="center">13</td> + <td align="center">11</td> + </tr> + </tbody> + </table> + <clause id="xyz"><title>Preparatory</title> + <table id="N2"> + <name>Repeatability and reproducibility of husked rice yield</name> + <tbody> + <tr> + <td align="left">Number of laboratories retained after eliminating outliers</td> + <td align="center">13</td> + <td align="center">11</td> + </tr> + </tbody> + </table> +</clause> + </introduction> </preface> <sections> <clause id="scope"><title>Scope</title> <table id="N"> <name>Repeatability and reproducibility of husked rice yield</name> @@ -710,23 +843,42 @@ #{HTML_HDR} <br/> <div> <h1 class="ForewordTitle">Foreword</h1> <p> - <a href="#N">Table 1</a> - <a href="#note1">Table 2</a> - <a href="#note2">Table 3</a> + <a href="#N1">Table 1</a> + <a href="#N2">Table 2</a> + <a href="#N">Table 3</a> + <a href="#note1">Table 4</a> + <a href="#note2">Table 5</a> <a href="#AN">Table A.1</a> <a href="#Anote1">Table A.2</a> <a href="#Anote2">Table A.3</a> </p> </div> + <br/> + <div class="Section3" id="intro"> + <h1 class="IntroTitle">Introduction</h1> + <p class="TableTitle" align="center">Table 1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p> + <table id="N1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"> + <tbody> + <tr> + <td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td> + <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td> + <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td> + </tr> + </tbody> + </table> + <div id="xyz"><h2>Preparatory</h2> + <p class="TableTitle" align="center">Table 2&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="N2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table> + </div> + </div> <p class="zzSTDTitle1"/> <div id="scope"> <h1>1.&#160; Scope</h1> <p class="TableTitle" align="center"> - Table 1&#160;&#8212; Repeatability and reproducibility of husked rice yield + Table 3&#160;&#8212; Repeatability and reproducibility of husked rice yield </p> <table id="N" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"> <tbody> <tr> <td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td> @@ -734,11 +886,11 @@ <td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td> </tr> </tbody> </table> <p> - <a href="#N">Table 1</a> + <a href="#N">Table 3</a> </p> </div> <div id="terms"><h1>2.&#160; Terms and definitions</h1><p>No terms and definitions are listed in this document.</p> <p>ISO and IEC maintain terminological databases for use in standardization at the following addresses:</p> @@ -750,22 +902,22 @@ <a href="http://www.electropedia.org">http://www.electropedia.org</a> </p> </li> </ul> </div> <div id="widgets"> <h1>3.&#160; Widgets</h1> - <div id="widgets1"> - <p class="TableTitle" align="center">Table 2&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="note1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table> - <p class="TableTitle" align="center">Table 3&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="note2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table> - <p> <a href="#note1">Table 2</a> <a href="#note2">Table 3</a> </p> + <div id="widgets1"><h2>3.1. </h2> + <p class="TableTitle" align="center">Table 4&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="note1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table> + <p class="TableTitle" align="center">Table 5&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="note2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table> + <p> <a href="#note1">Table 4</a> <a href="#note2">Table 5</a> </p> </div> </div> <br/> <div id="annex1" class="Section3"> - <div id="annex1a"> + <div id="annex1a"><h2>A.1. </h2> <p class="TableTitle" align="center">Table A.1&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="AN" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table> </div> - <div id="annex1b"> + <div id="annex1b"><h2>A.2. </h2> <p class="TableTitle" align="center">Table A.2&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="Anote1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table> <p class="TableTitle" align="center">Table A.3&#160;&#8212; Repeatability and reproducibility of husked rice yield</p><table id="Anote2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;">11</td></tr></tbody></table> </div> </div> </div> @@ -808,13 +960,13 @@ #{HTML_HDR} <br/> <div> <h1 class="ForewordTitle">Foreword</h1> <p> - <a href="#note1">2.1, Note 1</a> - <a href="#note2">2.2, Note 1</a> - <a href="#note3">2.2, Note 2</a> + <a href="#note1">Clause 2.1, Note 1</a> + <a href="#note2">Clause 2.2, Note 1</a> + <a href="#note3">Clause 2.2, Note 2</a> </p> </div> <p class="zzSTDTitle1"/> <div id="scope"> <h1>1.&#160; Scope</h1> @@ -926,30 +1078,30 @@ <p id="A">This is a preamble <a href="#C">Introduction Subsection</a> <a href="#C1">Introduction, 2</a> <a href="#D">Clause 1</a> <a href="#H">Clause 3</a> - <a href="#I">3.1</a> - <a href="#J">3.1.1</a> - <a href="#K">3.2</a> + <a href="#I">Clause 3.1</a> + <a href="#J">Clause 3.1.1</a> + <a href="#K">Clause 3.2</a> <a href="#L">Clause 4</a> <a href="#M">Clause 5</a> - <a href="#N">5.1</a> - <a href="#O">5.2</a> + <a href="#N">Clause 5.1</a> + <a href="#O">Clause 5.2</a> <a href="#P">Annex A</a> - <a href="#Q">A.1</a> - <a href="#Q1">A.1.1</a> + <a href="#Q">Annex A.1</a> + <a href="#Q1">Annex A.1.1</a> <a href="#R">Clause 2</a> </p> </div> <br/> <div class="Section3" id="B"> <h1 class="IntroTitle">Introduction</h1> <div id="C"> <h2>Introduction Subsection</h2> </div> - <div id="C1">Text</div> + <div id="C1"><h2/>Text</div> </div> <p class="zzSTDTitle1"/> <div id="D"> <h1>1.&#160; Scope</h1> <p id="E">Text</p> @@ -1022,18 +1174,30 @@ expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> <p> + <xref target="N1"/> + <xref target="N2"/> <xref target="N"/> <xref target="note1"/> <xref target="note2"/> <xref target="AN"/> <xref target="Anote1"/> <xref target="Anote2"/> </p> </foreword> + <introduction id="intro"> + <ol id="N1"> + <li><p>A</p></li> +</ol> + <clause id="xyz"><title>Preparatory</title> + <ol id="N2"> + <li><p>A</p></li> +</ol> +</clause> + </introduction> </preface> <sections> <clause id="scope"><title>Scope</title> <ol id="N"> <li><p>A</p></li> @@ -1071,18 +1235,32 @@ #{HTML_HDR} <br/> <div> <h1 class="ForewordTitle">Foreword</h1> <p> + <a href="#N1">Introduction, List</a> + <a href="#N2">Preparatory, List</a> <a href="#N">Clause 1, List</a> - <a href="#note1">3.1, List 1</a> - <a href="#note2">3.1, List 2</a> - <a href="#AN">A.1, List</a> - <a href="#Anote1">A.2, List 1</a> - <a href="#Anote2">A.2, List 2</a> + <a href="#note1">Clause 3.1, List 1</a> + <a href="#note2">Clause 3.1, List 2</a> + <a href="#AN">Annex A.1, List</a> + <a href="#Anote1">Annex A.2, List 1</a> + <a href="#Anote2">Annex A.2, List 2</a> </p> </div> + <br/> + <div class="Section3" id="intro"> + <h1 class="IntroTitle">Introduction</h1> + <ol type="a"> + <li><p>A</p></li> + </ol> + <div id="xyz"><h2>Preparatory</h2> + <ol type="a"> + <li><p>A</p></li> + </ol> + </div> + </div> <p class="zzSTDTitle1"/> <div id="scope"> <h1>1.&#160; Scope</h1> <ol type="a"> <li><p>A</p></li> @@ -1099,27 +1277,27 @@ <a href="http://www.electropedia.org">http://www.electropedia.org</a> </p> </li> </ul> </div> <div id="widgets"> <h1>3.&#160; Widgets</h1> - <div id="widgets1"> + <div id="widgets1"><h2>3.1. </h2> <ol type="a"> <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p> </ol> <ol type="a"> <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83a">These results are based on a study carried out on three different types of kernel.</p> </ol> </div> </div> <br/> <div id="annex1" class="Section3"> - <div id="annex1a"> + <div id="annex1a"><h2>A.1. </h2> <ol type="a"> <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p> </ol> </div> - <div id="annex1b"> + <div id="annex1b"><h2>A.2. </h2> <ol type="a"> <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p> </ol> <ol type="a"> <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83a">These results are based on a study carried out on three different types of kernel.</p> @@ -1136,22 +1314,34 @@ expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT" <iso-standard xmlns="http://riboseinc.com/isoxml"> <preface> <foreword> <p> + <xref target="N1"/> + <xref target="N2"/> <xref target="N"/> <xref target="note1"/> <xref target="note2"/> <xref target="AN"/> <xref target="Anote1"/> <xref target="Anote2"/> </p> </foreword> + <introduction id="intro"> + <ol id="N01"> + <li id="N1"><p>A</p></li> +</ol> + <clause id="xyz"><title>Preparatory</title> + <ol id="N02"> + <li id="N2"><p>A</p></li> +</ol> +</clause> + </introduction> </preface> <sections> <clause id="scope"><title>Scope</title> - <ol id="N1"> + <ol id="N0"> <li id="N"><p>A</p></li> </ol> </clause> <terms id="terms"/> <clause id="widgets"><title>Widgets</title> @@ -1185,18 +1375,32 @@ #{HTML_HDR} <br/> <div> <h1 class="ForewordTitle">Foreword</h1> <p> + <a href="#N1">Introduction, a)</a> + <a href="#N2">Preparatory, a)</a> <a href="#N">Clause 1, a)</a> - <a href="#note1">3.1, List 1 a)</a> - <a href="#note2">3.1, List 2 a)</a> - <a href="#AN">A.1, a)</a> - <a href="#Anote1">A.2, List 1 a)</a> - <a href="#Anote2">A.2, List 2 a)</a> + <a href="#note1">Clause 3.1, List 1 a)</a> + <a href="#note2">Clause 3.1, List 2 a)</a> + <a href="#AN">Annex A.1, a)</a> + <a href="#Anote1">Annex A.2, List 1 a)</a> + <a href="#Anote2">Annex A.2, List 2 a)</a> </p> </div> + <br/> + <div class="Section3" id="intro"> + <h1 class="IntroTitle">Introduction</h1> + <ol type="a"> + <li><p>A</p></li> + </ol> + <div id="xyz"><h2>Preparatory</h2> + <ol type="a"> + <li><p>A</p></li> + </ol> + </div> + </div> <p class="zzSTDTitle1"/> <div id="scope"> <h1>1.&#160; Scope</h1> <ol type="a"> <li><p>A</p></li> @@ -1213,26 +1417,26 @@ <a href="http://www.electropedia.org">http://www.electropedia.org</a> </p> </li> </ul> </div> <div id="widgets"> <h1>3.&#160; Widgets</h1> - <div id="widgets1"> + <div id="widgets1"><h2>3.1. </h2> <ol type="a"> <li><p>A</p></li> </ol> <ol type="a"> <li><p>A</p></li> </ol> </div> </div> <br/> <div id="annex1" class="Section3"> - <div id="annex1a"> + <div id="annex1a"><h2>A.1. </h2> <ol type="a"> <li><p>A</p></li> </ol> </div> - <div id="annex1b"> + <div id="annex1b"><h2>A.2. </h2> <ol type="a"> <li><p>A</p></li> </ol> <ol type="a"> <li><p>A</p></li>