spec/isodoc/xref_spec.rb in isodoc-0.5.5 vs spec/isodoc/xref_spec.rb in isodoc-0.5.7
- old
+ new
@@ -1,10 +1,10 @@
require "spec_helper"
RSpec.describe IsoDoc do
it "cross-references notes" do
- expect(IsoDoc::Convert.new({}).convert_file(<<~"INPUT", "test", true)).to be_equivalent_to <<~"OUTPUT"
+ expect(IsoDoc::Convert.new({}).convert_file(<<~"INPUT", "test", true)). to be_equivalent_to <<~"OUTPUT"
<iso-standard xmlns="http://riboseinc.com/isoxml">
<foreword>
<p>
<xref target="N"/>
<xref target="note1"/>
@@ -17,20 +17,24 @@
<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>
</note>
+<p><xref target="N"/></p>
+
</clause>
<terms id="terms"/>
<clause id="widgets"><title>Widgets</title>
<subsection id="widgets1">
<note id="note1">
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
</note>
<note id="note2">
<p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83a">These results are based on a study carried out on three different types of kernel.</p>
</note>
+<p> <xref target="note1"/> <xref target="note2"/> </p>
+
</subsection>
</clause>
</sections>
<annex id="annex1">
<subsection id="annex1a">
@@ -47,20 +51,20 @@
</note>
</subsection>
</annex>
</iso-standard>
INPUT
- <html xmlns:epub="http://www.idpf.org/2007/ops">
- <head>
- <title>test</title>
- <body lang="EN-US" link="blue" vlink="#954F72">
+<html xmlns:epub="http://www.idpf.org/2007/ops">
+ <head>
+ <title>test</title>
+ <body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection2">
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
<p>
<a href="#N">Clause 1, Note</a>
<a href="#note1">4.1, Note 1</a>
@@ -70,20 +74,23 @@
<a href="#Anote2">A.2, Note 2</a>
</p>
</div>
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection3">
<p class="zzSTDTitle1"/>
<div id="scope">
- <h1>1.<span style="mso-tab-count:1">  </span>Scope</h1>
+ <h1>1.  Scope</h1>
<div id="N" class="Note">
- <p class="Note">NOTE<span style="mso-tab-count:1">  </span>These results are based on a study carried out on three different types of kernel.</p>
+ <p class="Note">NOTE  These results are based on a study carried out on three different types of kernel.</p>
</div>
+ <p>
+ <a href="#N">Note</a>
+ </p>
</div>
- <div id="terms"><h1>3.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1><p>No terms and definitions are listed in this document.</p>
+ <div id="terms"><h1>3.  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>
<ul>
<li> <p>ISO Online browsing platform: available at
@@ -91,24 +98,26 @@
<li> <p>IEC Electropedia: available at
<a href="http://www.electropedia.org">http://www.electropedia.org</a>
</p> </li> </ul>
</div>
<div id="widgets">
- <h1>4.<span style="mso-tab-count:1">  </span>Widgets</h1>
+ <h1>4.  Widgets</h1>
<div id="widgets1">
- <div id="note1" class="Note"><p class="Note">NOTE 1<span style="mso-tab-count:1">  </span>These results are based on a study carried out on three different types of kernel.</p></div>
- <div id="note2" class="Note"><p class="Note">NOTE 2<span style="mso-tab-count:1">  </span>These results are based on a study carried out on three different types of kernel.</p></div>
+ <div id="note1" class="Note"><p class="Note">NOTE 1  These results are based on a study carried out on three different types of kernel.</p></div>
+ <div id="note2" class="Note"><p class="Note">NOTE 2  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 clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div id="annex1" class="Section3">
<div id="annex1a">
- <div id="AN" class="Note"><p class="Note">NOTE<span style="mso-tab-count:1">  </span>These results are based on a study carried out on three different types of kernel.</p></div>
+ <div id="AN" class="Note"><p class="Note">NOTE  These results are based on a study carried out on three different types of kernel.</p></div>
</div>
<div id="annex1b">
- <div id="Anote1" class="Note"><p class="Note">NOTE 1<span style="mso-tab-count:1">  </span>These results are based on a study carried out on three different types of kernel.</p></div>
- <div id="Anote2" class="Note"><p class="Note">NOTE 2<span style="mso-tab-count:1">  </span>These results are based on a study carried out on three different types of kernel.</p></div>
+ <div id="Anote1" class="Note"><p class="Note">NOTE 1  These results are based on a study carried out on three different types of kernel.</p></div>
+ <div id="Anote2" class="Note"><p class="Note">NOTE 2  These results are based on a study carried out on three different types of kernel.</p></div>
</div>
</div>
</div>
</body>
</head>
@@ -133,10 +142,11 @@
<clause id="scope"><title>Scope</title>
<figure id="N">
<name>Split-it-right sample divider</name>
<image src="rice_images/rice_image1.png" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/>
</figure>
+<p><xref target="N"/></p>
</clause>
<terms id="terms"/>
<clause id="widgets"><title>Widgets</title>
<subsection id="widgets1">
<figure id="note1">
@@ -145,10 +155,11 @@
</figure>
<figure id="note2">
<name>Split-it-right sample divider</name>
<image src="rice_images/rice_image1.png" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/>
</figure>
+ <p> <xref target="note1"/> <xref target="note2"/> </p>
</subsection>
</clause>
</sections>
<annex id="annex1">
<subsection id="annex1a">
@@ -175,37 +186,40 @@
<title>test</title>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection2">
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <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="#AN">Figure A.1</a>
- <a href="#Anote1">Figure A.2</a>
- <a href="#Anote2">Figure A.3</a>
- </p>
+ <a href="#N">Figure 1</a>
+ <a href="#note1">Figure 2</a>
+ <a href="#note2">Figure 3</a>
+ <a href="#AN">Figure A.1</a>
+ <a href="#Anote1">Figure A.2</a>
+ <a href="#Anote2">Figure A.3</a>
+ </p>
</div>
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection3">
<p class="zzSTDTitle1"/>
<div id="scope">
- <h1>1.<span style="mso-tab-count:1">  </span>Scope</h1>
+ <h1>1.  Scope</h1>
<div id="N" class="figure">
- <img src="rice_images/rice_image1.png"/>
- <p class="FigureTitle" align="center"><b>Figure 1 — Split-it-right sample divider</b></p></div>
+ <img src="rice_images/rice_image1.png"/>
+ <p class="FigureTitle" align="center"><b>Figure 1 — Split-it-right sample divider</b></p></div>
+ <p>
+ <a href="#N">Figure 1</a>
+ </p>
</div>
- <div id="terms"><h1>3.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1><p>No terms and definitions are listed in this document.</p>
+ <div id="terms"><h1>3.  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>
<ul>
<li> <p>ISO Online browsing platform: available at
@@ -213,40 +227,41 @@
<li> <p>IEC Electropedia: available at
<a href="http://www.electropedia.org">http://www.electropedia.org</a>
</p> </li> </ul>
</div>
<div id="widgets">
- <h1>4.<span style="mso-tab-count:1">  </span>Widgets</h1>
+ <h1>4.  Widgets</h1>
<div id="widgets1">
- <div id="note1" class="figure">
+ <div id="note1" class="figure">
- <img src="rice_images/rice_image1.png"/>
- <p class="FigureTitle" align="center"><b>Figure 2 — Split-it-right sample divider</b></p></div>
- <div id="note2" class="figure">
+ <img src="rice_images/rice_image1.png"/>
+ <p class="FigureTitle" align="center"><b>Figure 2 — Split-it-right sample divider</b></p></div>
+ <div id="note2" class="figure">
- <img src="rice_images/rice_image1.png"/>
- <p class="FigureTitle" align="center"><b>Figure 3 — Split-it-right sample divider</b></p></div>
- </div>
+ <img src="rice_images/rice_image1.png"/>
+ <p class="FigureTitle" align="center"><b>Figure 3 — Split-it-right sample divider</b></p></div>
+ <p> <a href="#note1">Figure 2</a> <a href="#note2">Figure 3</a> </p>
+ </div>
</div>
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div id="annex1" class="Section3">
<div id="annex1a">
- <div id="AN" class="figure">
+ <div id="AN" class="figure">
- <img src="rice_images/rice_image1.png"/>
- <p class="FigureTitle" align="center"><b>Figure A.1 — Split-it-right sample divider</b></p></div>
- </div>
+ <img src="rice_images/rice_image1.png"/>
+ <p class="FigureTitle" align="center"><b>Figure A.1 — Split-it-right sample divider</b></p></div>
+ </div>
<div id="annex1b">
- <div id="Anote1" class="figure">
+ <div id="Anote1" class="figure">
- <img src="rice_images/rice_image1.png"/>
- <p class="FigureTitle" align="center"><b>Figure A.2 — Split-it-right sample divider</b></p></div>
- <div id="Anote2" class="figure">
+ <img src="rice_images/rice_image1.png"/>
+ <p class="FigureTitle" align="center"><b>Figure A.2 — Split-it-right sample divider</b></p></div>
+ <div id="Anote2" class="figure">
- <img src="rice_images/rice_image1.png"/>
- <p class="FigureTitle" align="center"><b>Figure A.3 — Split-it-right sample divider</b></p></div>
- </div>
+ <img src="rice_images/rice_image1.png"/>
+ <p class="FigureTitle" align="center"><b>Figure A.3 — Split-it-right sample divider</b></p></div>
+ </div>
</div>
</div>
</body>
</head>
</html>
@@ -280,10 +295,11 @@
<figure id="note2">
<name>Split-it-right sample divider</name>
<image src="rice_images/rice_image1.png" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/>
</figure>
</figure>
+ <p> <xref target="note1"/> <xref target="note2"/> </p>
</subsection>
</clause>
</sections>
<annex id="annex1">
<subsection id="annex1a">
@@ -308,13 +324,13 @@
<title>test</title>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection2">
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div id="fwd">
<h1 class="ForewordTitle">Foreword</h1>
<p>
<a href="#N">Figure 1</a>
<a href="#note1">Figure 1-1</a>
@@ -324,17 +340,17 @@
<a href="#Anote2">Figure A.1-2</a>
</p>
</div>
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection3">
<p class="zzSTDTitle1"/>
<div id="scope">
- <h1>1.<span style="mso-tab-count:1">  </span>Scope</h1>
+ <h1>1.  Scope</h1>
</div>
- <div id="terms"><h1>3.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1><p>No terms and definitions are listed in this document.</p>
+ <div id="terms"><h1>3.  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>
<ul>
<li> <p>ISO Online browsing platform: available at
@@ -342,11 +358,11 @@
<li> <p>IEC Electropedia: available at
<a href="http://www.electropedia.org">http://www.electropedia.org</a>
</p> </li> </ul>
</div>
<div id="widgets">
- <h1>4.<span style="mso-tab-count:1">  </span>Widgets</h1>
+ <h1>4.  Widgets</h1>
<div id="widgets1">
<div id="N" class="figure">
<div id="note1" class="figure">
<img src="rice_images/rice_image1.png"/>
@@ -354,13 +370,14 @@
<div id="note2" class="figure">
<img src="rice_images/rice_image1.png"/>
<p class="FigureTitle" align="center"><b>Figure 1-2 — Split-it-right sample divider</b></p></div>
</div>
+ <p> <a href="#note1">Figure 1-1</a> <a href="#note2">Figure 1-2</a> </p>
</div>
</div>
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div id="annex1" class="Section3">
<div id="annex1a">
</div>
<div id="annex1b">
<div id="AN" class="figure">
@@ -398,20 +415,22 @@
<sections>
<clause id="scope"><title>Scope</title>
<example id="N">
<p>Hello</p>
</example>
+<p><xref target="N"/></p>
</clause>
<terms id="terms"/>
<clause id="widgets"><title>Widgets</title>
<subsection id="widgets1">
<example id="note1">
<p>Hello</p>
</example>
<example id="note2">
<p>Hello</p>
</example>
+<p> <xref target="note1"/> <xref target="note2"/> </p>
</subsection>
</clause>
</sections>
<annex id="annex1">
<subsection id="annex1a">
@@ -435,13 +454,13 @@
<title>test</title>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection2">
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
<p>
<a href="#N">Clause 1, Example</a>
<a href="#note1">4.1, Example 1</a>
@@ -451,25 +470,28 @@
<a href="#Anote2">A.2, Example 2</a>
</p>
</div>
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection3">
<p class="zzSTDTitle1"/>
<div id="scope">
- <h1>1.<span style="mso-tab-count:1">  </span>Scope</h1>
+ <h1>1.  Scope</h1>
<table id="N" class="example">
<tr>
<td width="110pt" valign="top" style="width:82.8pt;padding:.75pt .75pt .75pt .75pt">EXAMPLE</td>
<td valign="top">
<p>Hello</p>
</td>
</tr>
</table>
+ <p>
+ <a href="#N">Example</a>
+ </p>
</div>
- <div id="terms"><h1>3.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1><p>No terms and definitions are listed in this document.</p>
+ <div id="terms"><h1>3.  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>
<ul>
<li> <p>ISO Online browsing platform: available at
@@ -477,21 +499,22 @@
<li> <p>IEC Electropedia: available at
<a href="http://www.electropedia.org">http://www.electropedia.org</a>
</p> </li> </ul>
</div>
<div id="widgets">
- <h1>4.<span style="mso-tab-count:1">  </span>Widgets</h1>
+ <h1>4.  Widgets</h1>
<div id="widgets1">
<table id="note1" class="example"><tr><td width="110pt" valign="top" style="width:82.8pt;padding:.75pt .75pt .75pt .75pt">EXAMPLE 1</td><td valign="top">
<p>Hello</p>
</td></tr></table>
<table id="note2" class="example"><tr><td width="110pt" valign="top" style="width:82.8pt;padding:.75pt .75pt .75pt .75pt">EXAMPLE 2</td><td valign="top">
<p>Hello</p>
</td></tr></table>
+ <p> <a href="#note1">Example 1</a> <a href="#note2">Example 2</a> </p>
</div>
</div>
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div id="annex1" class="Section3">
<div id="annex1a">
<table id="AN" class="example"><tr><td width="110pt" valign="top" style="width:82.8pt;padding:.75pt .75pt .75pt .75pt">EXAMPLE</td><td valign="top">
<p>Hello</p>
</td></tr></table>
@@ -528,20 +551,22 @@
<sections>
<clause id="scope"><title>Scope</title>
<formula id="N">
<stem type="AsciiMath">r = 1 %</stem>
</formula>
+ <p><xref target="N"/></p>
</clause>
<terms id="terms"/>
<clause id="widgets"><title>Widgets</title>
<subsection id="widgets1">
<formula id="note1">
<stem type="AsciiMath">r = 1 %</stem>
</formula>
<formula id="note2">
<stem type="AsciiMath">r = 1 %</stem>
</formula>
+ <p> <xref target="note1"/> <xref target="note2"/> </p>
</subsection>
</clause>
</sections>
<annex id="annex1">
<subsection id="annex1a">
@@ -578,13 +603,13 @@
<title>test</title>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection2">
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
<p>
<a href="#N">Clause 1, Formula (1)</a>
<a href="#note1">4.1, Formula (2)</a>
@@ -594,18 +619,21 @@
<a href="#Anote2">A.2, Formula (A.3)</a>
</p>
</div>
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection3">
<p class="zzSTDTitle1"/>
<div id="scope">
- <h1>1.<span style="mso-tab-count:1">  </span>Scope</h1>
- <div id="N" class="formula"><span class="stem">(#(r = 1 %)#)</span><span style="mso-tab-count:1">  </span>(1)</div>
+ <h1>1.  Scope</h1>
+ <div id="N" class="formula"><span class="stem">(#(r = 1 %)#)</span>  (1)</div>
+ <p>
+ <a href="#N">Formula (1)</a>
+ </p>
</div>
- <div id="terms"><h1>3.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1><p>No terms and definitions are listed in this document.</p>
+ <div id="terms"><h1>3.  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>
<ul>
<li> <p>ISO Online browsing platform: available at
@@ -613,24 +641,25 @@
<li> <p>IEC Electropedia: available at
<a href="http://www.electropedia.org">http://www.electropedia.org</a>
</p> </li> </ul>
</div>
<div id="widgets">
- <h1>4.<span style="mso-tab-count:1">  </span>Widgets</h1>
+ <h1>4.  Widgets</h1>
<div id="widgets1">
- <div id="note1" class="formula"><span class="stem">(#(r = 1 %)#)</span><span style="mso-tab-count:1">  </span>(2)</div>
- <div id="note2" class="formula"><span class="stem">(#(r = 1 %)#)</span><span style="mso-tab-count:1">  </span>(3)</div>
+ <div id="note1" class="formula"><span class="stem">(#(r = 1 %)#)</span>  (2)</div>
+ <div id="note2" class="formula"><span class="stem">(#(r = 1 %)#)</span>  (3)</div>
+ <p> <a href="#note1">Formula (2)</a> <a href="#note2">Formula (3)</a> </p>
</div>
</div>
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div id="annex1" class="Section3">
<div id="annex1a">
- <div id="AN" class="formula"><span class="stem">(#(r = 1 %)#)</span><span style="mso-tab-count:1">  </span>(A.1)</div>
+ <div id="AN" class="formula"><span class="stem">(#(r = 1 %)#)</span>  (A.1)</div>
</div>
<div id="annex1b">
- <div id="Anote1" class="formula"><span class="stem">(#(r = 1 %)#)</span><span style="mso-tab-count:1">  </span>(A.2)</div>
- <div id="Anote2" class="formula"><span class="stem">(#(r = 1 %)#)</span><span style="mso-tab-count:1">  </span>(A.3)</div>
+ <div id="Anote1" class="formula"><span class="stem">(#(r = 1 %)#)</span>  (A.2)</div>
+ <div id="Anote2" class="formula"><span class="stem">(#(r = 1 %)#)</span>  (A.3)</div>
</div>
</div>
</div>
</body>
</head>
@@ -661,10 +690,11 @@
<td align="center">13</td>
<td align="center">11</td>
</tr>
</tbody>
</table>
+ <p><xref target="N"/></p>
</clause>
<terms id="terms"/>
<clause id="widgets"><title>Widgets</title>
<subsection id="widgets1">
<table id="note1">
@@ -685,10 +715,11 @@
<td align="center">13</td>
<td align="center">11</td>
</tr>
</tbody>
</table>
+ <p> <xref target="note1"/> <xref target="note2"/> </p>
</subsection>
</clause>
</sections>
<annex id="annex1">
<subsection id="annex1a">
@@ -733,13 +764,13 @@
<title>test</title>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection2">
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
<p>
<a href="#N">Table 1</a>
<a href="#note1">Table 2</a>
@@ -749,54 +780,58 @@
<a href="#Anote2">Table A.3</a>
</p>
</div>
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection3">
<p class="zzSTDTitle1"/>
<div id="scope">
- <h1>1.<span style="mso-tab-count:1">  </span>Scope</h1>
+ <h1>1.  Scope</h1>
<p class="TableTitle" align="center">
<b>Table 1 — Repeatability and reproducibility of husked rice yield</b>
</p>
<table id="N" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
- <td align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td>
- <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">13</td>
- <td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">11</td>
+ <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="#N">Table 1</a>
+ </p>
</div>
- <div id="terms"><h1>3.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1><p>No terms and definitions are listed in this document.</p>
+ <div id="terms"><h1>3.  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>
- <ul>
+ <ul>
<li> <p>ISO Online browsing platform: available at
<a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
<li> <p>IEC Electropedia: available at
<a href="http://www.electropedia.org">http://www.electropedia.org</a>
</p> </li> </ul>
</div>
<div id="widgets">
- <h1>4.<span style="mso-tab-count:1">  </span>Widgets</h1>
+ <h1>4.  Widgets</h1>
<div id="widgets1">
- <p class="TableTitle" align="center"><b>Table 2 — Repeatability and reproducibility of husked rice yield</b></p><table id="note1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">11</td></tr></tbody></table>
- <p class="TableTitle" align="center"><b>Table 3 — Repeatability and reproducibility of husked rice yield</b></p><table id="note2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">11</td></tr></tbody></table>
+ <p class="TableTitle" align="center"><b>Table 2 — Repeatability and reproducibility of husked rice yield</b></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"><b>Table 3 — Repeatability and reproducibility of husked rice yield</b></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>
</div>
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div id="annex1" class="Section3">
<div id="annex1a">
- <p class="TableTitle" align="center"><b>Table A.1 — Repeatability and reproducibility of husked rice yield</b></p><table id="AN" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">11</td></tr></tbody></table>
+ <p class="TableTitle" align="center"><b>Table A.1 — Repeatability and reproducibility of husked rice yield</b></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">
- <p class="TableTitle" align="center"><b>Table A.2 — Repeatability and reproducibility of husked rice yield</b></p><table id="Anote1" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">11</td></tr></tbody></table>
- <p class="TableTitle" align="center"><b>Table A.3 — Repeatability and reproducibility of husked rice yield</b></p><table id="Anote2" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><tbody><tr><td align="left" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">Number of laboratories retained after eliminating outliers</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">13</td><td align="center" style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;">11</td></tr></tbody></table>
+ <p class="TableTitle" align="center"><b>Table A.2 — Repeatability and reproducibility of husked rice yield</b></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"><b>Table A.3 — Repeatability and reproducibility of husked rice yield</b></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>
</body>
</head>
@@ -838,30 +873,30 @@
<title>test</title>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection2">
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
<p>
<a href="#note1">3.1, Note 1</a>
<a href="#note2">3.2, Note 1</a>
<a href="#note3">3.2, Note 2</a>
</p>
</div>
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection3">
<p class="zzSTDTitle1"/>
<div id="scope">
- <h1>1.<span style="mso-tab-count:1">  </span>Scope</h1>
+ <h1>1.  Scope</h1>
</div>
- <div id="terms"><h1>3.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1><p>For the purposes of this document,
+ <div id="terms"><h1>3.  Terms and Definitions</h1><p>For the purposes of this document,
the following terms and definitions apply.</p>
<p>ISO and IEC maintain terminological databases for use in
standardization at the following addresses:</p>
<ul>
@@ -964,13 +999,13 @@
<title>test</title>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection2">
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
<p id="A">This is a preamble
<a href="#C">0.1</a>
<a href="#D">Clause 1</a>
@@ -986,32 +1021,32 @@
<a href="#Q">A.1</a>
<a href="#Q1">A.1.1</a>
<a href="#R">Clause 2</a>
</p>
</div>
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div class="Section3" id="B">
- <h1 class="IntroTitle">0.<span style="mso-tab-count:1">  </span>Introduction</h1>
+ <h1 class="IntroTitle">0.  Introduction</h1>
<div id="C">
<h2>0.1. Introduction Subsection</h2>
</div>
<p>This is patent boilerplate</p>
</div>
<p> </p>
</div>
- <br clear="all" class="section"/>
+ <br/>
<div class="WordSection3">
<p class="zzSTDTitle1"/>
<div id="D">
- <h1>1.<span style="mso-tab-count:1">  </span>Scope</h1>
+ <h1>1.  Scope</h1>
<p id="E">Text</p>
</div>
<div>
- <h1>2.<span style="mso-tab-count:1">  </span>Normative References</h1>
+ <h1>2.  Normative References</h1>
<p>There are no normative references in this document.</p>
</div>
- <div id="H"><h1>3.<span style="mso-tab-count:1">  </span>Terms and Definitions</h1><p>For the purposes of this document,
+ <div id="H"><h1>3.  Terms and Definitions</h1><p>For the purposes of this document,
the following terms and definitions apply.</p>
<p>ISO and IEC maintain terminological databases for use in
standardization at the following addresses:</p>
<ul>
@@ -1027,47 +1062,388 @@
</div><div id="K"><h2>3.2. Symbols and Abbreviated Terms</h2>
<dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
</div></div>
<div id="L" class="Symbols">
- <h1>4.<span style="mso-tab-count:1">  </span>Symbols and Abbreviated Terms</h1>
+ <h1>4.  Symbols and Abbreviated Terms</h1>
<dl>
<dt>
<p>Symbol</p>
</dt>
<dd>Definition</dd>
</dl>
</div>
<div id="M">
- <h1>5.<span style="mso-tab-count:1">  </span>Clause 4</h1>
+ <h1>5.  Clause 4</h1>
<div id="N">
<h2>5.1. Introduction</h2>
</div>
<div id="O">
<h2>5.2. Clause 4.2</h2>
</div>
</div>
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div id="P" class="Section3">
<h1 class="Annex"><b>Annex A</b><br/>(normative)<br/><br/><b>Annex</b></h1>
<div id="Q">
<h2>A.1. Annex A.1</h2>
<div id="Q1">
<h3>A.1.1. Annex A.1a</h3>
</div>
</div>
</div>
- <br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
+ <br/>
<div>
<h1 class="Section3">Bibliography</h1>
<div>
<h2 class="Section3">Bibliography Subsection</h2>
</div>
</div>
</div>
</body>
</head>
</html>
-OUTPUT
-end
+ OUTPUT
+ end
+
+ it "cross-references lists" do
+ expect(IsoDoc::Convert.new({}).convert_file(<<~"INPUT", "test", true)).to be_equivalent_to <<~"OUTPUT"
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
+ <foreword>
+ <p>
+ <xref target="N"/>
+ <xref target="note1"/>
+ <xref target="note2"/>
+ <xref target="AN"/>
+ <xref target="Anote1"/>
+ <xref target="Anote2"/>
+ </p>
+ </foreword>
+ <sections>
+ <clause id="scope"><title>Scope</title>
+ <ol id="N">
+ <li><p>A</p></li>
+</ol>
+ </clause>
+ <terms id="terms"/>
+ <clause id="widgets"><title>Widgets</title>
+ <subsection id="widgets1">
+ <ol id="note1">
+ <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 id="note2">
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83a">These results are based on a study carried out on three different types of kernel.</p>
+</ol>
+ </subsection>
+ </clause>
+ </sections>
+ <annex id="annex1">
+ <subsection id="annex1a">
+ <ol id="AN">
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
+</ol>
+ </subsection>
+ <subsection id="annex1b">
+ <ol id="Anote1">
+ <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 id="Anote2">
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83a">These results are based on a study carried out on three different types of kernel.</p>
+</ol>
+ </subsection>
+ </annex>
+ </iso-standard>
+ INPUT
+ <html xmlns:epub="http://www.idpf.org/2007/ops">
+ <head>
+ <title>test</title>
+ <body lang="EN-US" link="blue" vlink="#954F72">
+ <div class="WordSection1">
+ <p> </p>
+ </div>
+ <br/>
+ <div class="WordSection2">
+ <br/>
+ <div>
+ <h1 class="ForewordTitle">Foreword</h1>
+ <p>
+ <a href="#N">Clause 1, List</a>
+ <a href="#note1">4.1, List 1</a>
+ <a href="#note2">4.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>
+ </p>
+ </div>
+ <p> </p>
+ </div>
+ <br/>
+ <div class="WordSection3">
+ <p class="zzSTDTitle1"/>
+ <div id="scope">
+ <h1>1.  Scope</h1>
+ <ol type="a">
+ <li><p>A</p></li>
+ </ol>
+ </div>
+ <div id="terms"><h1>3.  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>
+
+ <ul>
+ <li> <p>ISO Online browsing platform: available at
+ <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
+ <li> <p>IEC Electropedia: available at
+ <a href="http://www.electropedia.org">http://www.electropedia.org</a>
+ </p> </li> </ul>
+ </div>
+ <div id="widgets">
+ <h1>4.  Widgets</h1>
+ <div id="widgets1">
+ <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">
+ <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">
+ <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>
+ </div>
+ </body>
+ </head>
+ </html>
+ OUTPUT
+ end
+
+ it "cross-references list items" do
+ expect(IsoDoc::Convert.new({}).convert_file(<<~"INPUT", "test", true)).to be_equivalent_to <<~"OUTPUT"
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
+ <foreword>
+ <p>
+ <xref target="N"/>
+ <xref target="note1"/>
+ <xref target="note2"/>
+ <xref target="AN"/>
+ <xref target="Anote1"/>
+ <xref target="Anote2"/>
+ </p>
+ </foreword>
+ <sections>
+ <clause id="scope"><title>Scope</title>
+ <ol id="N1">
+ <li id="N"><p>A</p></li>
+</ol>
+ </clause>
+ <terms id="terms"/>
+ <clause id="widgets"><title>Widgets</title>
+ <subsection id="widgets1">
+ <ol id="note1l">
+ <li id="note1"><p>A</p></li>
+</ol>
+ <ol id="note2l">
+ <li id="note2"><p>A</p></li>
+</ol>
+ </subsection>
+ </clause>
+ </sections>
+ <annex id="annex1">
+ <subsection id="annex1a">
+ <ol id="ANl">
+ <li id="AN"><p>A</p></li>
+</ol>
+ </subsection>
+ <subsection id="annex1b">
+ <ol id="Anote1l">
+ <li id="Anote1"><p>A</p></li>
+</ol>
+ <ol id="Anote2l">
+ <li id="Anote2"><p>A</p></li>
+</ol>
+ </subsection>
+ </annex>
+ </iso-standard>
+ INPUT
+ <html xmlns:epub="http://www.idpf.org/2007/ops">
+ <head>
+ <title>test</title>
+ <body lang="EN-US" link="blue" vlink="#954F72">
+ <div class="WordSection1">
+ <p> </p>
+ </div>
+ <br/>
+ <div class="WordSection2">
+ <br/>
+ <div>
+ <h1 class="ForewordTitle">Foreword</h1>
+ <p>
+ <a href="#N">Clause 1, a)</a>
+ <a href="#note1">4.1, List 1 a)</a>
+ <a href="#note2">4.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>
+ </p>
+ </div>
+ <p> </p>
+ </div>
+ <br/>
+ <div class="WordSection3">
+ <p class="zzSTDTitle1"/>
+ <div id="scope">
+ <h1>1.  Scope</h1>
+ <ol type="a">
+ <li><p>A</p></li>
+ </ol>
+ </div>
+ <div id="terms"><h1>3.  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>
+
+ <ul>
+ <li> <p>ISO Online browsing platform: available at
+ <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
+ <li> <p>IEC Electropedia: available at
+ <a href="http://www.electropedia.org">http://www.electropedia.org</a>
+ </p> </li> </ul>
+ </div>
+ <div id="widgets">
+ <h1>4.  Widgets</h1>
+ <div id="widgets1">
+ <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">
+ <ol type="a">
+ <li><p>A</p></li>
+ </ol>
+ </div>
+ <div id="annex1b">
+ <ol type="a">
+ <li><p>A</p></li>
+ </ol>
+ <ol type="a">
+ <li><p>A</p></li>
+ </ol>
+ </div>
+ </div>
+ </div>
+ </body>
+ </head>
+ </html>
+ OUTPUT
+ end
+
+ it "cross-references nested list items" do
+ expect(IsoDoc::Convert.new({}).convert_file(<<~"INPUT", "test", true)).to be_equivalent_to <<~"OUTPUT"
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
+ <foreword>
+ <p>
+ <xref target="N"/>
+ <xref target="note1"/>
+ <xref target="note2"/>
+ <xref target="AN"/>
+ <xref target="Anote1"/>
+ <xref target="Anote2"/>
+ </p>
+ </foreword>
+ <sections>
+ <clause id="scope"><title>Scope</title>
+ <ol id="N1">
+ <li id="N"><p>A</p>
+ <ol>
+ <li id="note1"><p>A</p>
+ <ol>
+ <li id="note2"><p>A</p>
+ <ol>
+ <li id="AN"><p>A</p>
+ <ol>
+ <li id="Anote1"><p>A</p>
+ <ol>
+ <li id="Anote2"><p>A</p></li>
+ </ol></li>
+ </ol></li>
+ </ol></li>
+ </ol></li>
+ </ol></li>
+ </ol>
+ </clause>
+ </sections>
+ </iso-standard>
+ INPUT
+ <html xmlns:epub="http://www.idpf.org/2007/ops">
+ <head>
+ <title>test</title>
+ <body lang="EN-US" link="blue" vlink="#954F72">
+ <div class="WordSection1">
+ <p> </p>
+ </div>
+ <br/>
+ <div class="WordSection2">
+ <br/>
+ <div>
+ <h1 class="ForewordTitle">Foreword</h1>
+ <p>
+ <a href="#N">Clause 1, a)</a>
+ <a href="#note1">Clause 1, a.1)</a>
+ <a href="#note2">Clause 1, a.1.i)</a>
+ <a href="#AN">Clause 1, a.1.i.A)</a>
+ <a href="#Anote1">Clause 1, a.1.i.A.I)</a>
+ <a href="#Anote2">Clause 1, a.1.i.A.I.a)</a>
+ </p>
+ </div>
+ <p> </p>
+ </div>
+ <br/>
+ <div class="WordSection3">
+ <p class="zzSTDTitle1"/>
+ <div id="scope">
+ <h1>1.  Scope</h1>
+ <ol type="a">
+ <li><p>A</p>
+ <ol type="1">
+ <li><p>A</p>
+ <ol type="i">
+ <li><p>A</p>
+ <ol type="A">
+ <li><p>A</p>
+ <ol type="I">
+ <li><p>A</p>
+ <ol type="a">
+ <li><p>A</p></li>
+ </ol></li>
+ </ol></li>
+ </ol></li>
+ </ol></li>
+ </ol></li>
+ </ol>
+ </div>
+ </div>
+ </body>
+ </head>
+ </html>
+ OUTPUT
+ end
end