Skip to content

Instantly share code, notes, and snippets.

@jschroed91
Last active December 15, 2016 15:32
Show Gist options
  • Save jschroed91/1af8865bac4371f8680899073fa3292a to your computer and use it in GitHub Desktop.
Save jschroed91/1af8865bac4371f8680899073fa3292a to your computer and use it in GitHub Desktop.
ICCCT-413 - Example XML structures for Exceptions, Numbered Lists, and Adding images/equations into sections
<?xml version="1.0" encoding="UTF-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:m="http://www.w3.org/1998/Math/MathML" >
<!--Unordered List-->
<ul class="no_mark">
<li>
<p>– Fire Safety (Chapters 7, 8, 9, 14, 26)</p>
</li>
<li>
<p>– Means of Egress (Chapters 10,11, Appendix E)</p>
</li>
<li>
<p>– General (Chapters 2-6,12, 27-33, Appendices A, B, C, D, K)</p>
</li>
</ul>
<!--Ordered List with Nested Lists-->
<ol class="no_mark">
<li>
<p>
<span class="label">1.</span> <span class="bold">Preliminary.</span> Obtain the necessary information regarding the minimum daily static service pressure in the area where the building is to be located. If the building supply is to be metered, obtain information regarding friction loss relative to the rate of flow for meters in the range of sizes to be used. Friction loss data can be obtained from manufacturers of water meters. It is essential that enough pressure be available to overcome all system losses caused by friction and elevation so that plumbing fixtures operate properly. <a class="section_reference" href="#IPC2015_Ch06_Sec604.6">Section 604.6</a> requires the water distribution system to be designed for the minimum pressure available taking into consideration pressure fluctuations. The lowest pressure must be selected to guarantee a continuous, adequate supply of water. The lowest pressure in the public main usually occurs in the summer because of lawn sprinkling and supplying water for air-conditioning cooling towers. Future demands placed on the public main as a result of large growth or expansion should also be considered. The available pressure will decrease as additional loads are placed on the public system.</p>
</li>
<li>
<p>
<span class="label">2.</span> <span class="bold">Demand load.</span> Estimate the supply demand of the building main and the principal branches and risers of the system by totaling the corresponding demand from the applicable part of <a class="table_reference" href="#IPC2015_AppxE_SecE102.2.1_TblE103.3_3">Table E103.3(3)</a>. When estimating peak demand sizing methods typically use water supply fixture units (w.s.f.u.) [see <a class="table_reference" href="#IPC2015_AppxE_SecE201.1_TblE103.3_2">Table E103.3(2)</a>]. This numerical factor measures the load-producing effect of a single plumbing fixture of a given kind. The use of such fixture units can be applied to a single basic probability curve (or table), found in the various sizing methods [<a class="table_reference" href="#IPC2015_AppxE_SecE102.2.1_TblE103.3_3">Table E103.3(3)</a>]. The fixture units are then converted into gallons per minute (L/m) flow rate for estimating demand.</p>
<ol class="no_mark">
<li>
<p>
<span class="label">2.1.</span> Estimate continuous supply demand in gallons per minute (L/m) for lawn sprinklers, air conditioners, etc., and add the sum to the total demand for fixtures. The result is the estimated supply demand for the building supply. Fixture units cannot be applied to constant use fixtures such as hose bibbs, lawn sprinklers and air conditioners. These types of fixtures must be assigned the gallon per minute (L/m) value.</p>
</li>
</ol>
</li>
<li>
<p>
<span class="label">3.</span> <span class="bold">Selection of pipe size.</span> This water pipe sizing procedure is based on a system of pressure requirements and losses, the sum of which must not exceed the minimum pressure available at the supply source. These pressures are as follows:</p>
<ol class="no_mark">
<li>
<p>
<span class="label">3.1.</span> Pressure required at the fixture to produce required flow. See <a class="section_reference" href="#IPC2015_Ch06_Sec604.3">Sections 604.3</a> and <a class="section_reference" href="#IPC2015_Ch06_Sec604.5">604.5</a>.</p>
</li>
<li>
<p>
<span class="label">3.2.</span> Static pressure loss or gain (because of head) is computed at 0.433 psi per foot (9.8 kPa/m) of elevation change.</p>
</li>
<li>
<p>
<span class="label">3.3.</span> Loss through a water meter. The friction or pressure loss can be obtained from the manufacturer.</p>
</li>
<li>
<p>
<span class="label">3.4.</span> Loss through taps in water main [see <a class="table_reference" href="#IPC2015_AppxE_SecE103.3_TblE103.3_4">Table E103.3(4)</a>].</p>
</li>
<li>
<p>
<span class="label">3.5.</span> Losses through special devices such as filters, softeners, backflow prevention devices and pressure regulators. These values must be obtained from the manufacturers.</p>
</li>
<li>
<p>
<span class="label">3.6.</span> Loss through valves and fittings [see <a class="table_reference" href="#IPC2015_AppxE_SecE103.3_TblE103.3_5">Tables E103.3(5)</a> and <a class="table_reference" href="#IPC2015_AppxE_SecE103.3_TblE103.3_6">E103.3(6)</a>]. Losses for these items are calculated by converting to equivalent length of piping and adding to the total pipe length.</p>
</li>
<li>
<p>
<span class="label">3.7.</span> Loss caused by pipe friction can be calculated when the pipe size, the pipe length and the flow through the pipe are known. With these three items, the friction loss can be determined using <a class="figure_reference" href="#IPC2015_AppxE_SecE103.3_FigE103.3_2">Figures E103.3(2)</a> through <a class="figure_reference" href="#IPC2015_AppxE_SecE103.3_FigE103.3_7">E103.3(7)</a>. When using charts, use pipe inside diameters. For piping flow charts not included, use manufacturers’ tables and velocity recommendations. Before attempting to size any water supply system, it is necessary to gather preliminary information that includes available pressure, piping material, select design velocity, elevation differences and <span class="formal_usage">developed length</span> to most remote fixture. The water supply system is divided into sections at major changes in elevation or where <span class="formal_usage">branches</span> lead to fixture groups. The peak demand must be determined in each part of the hot and cold water supply system which includes the corresponding water supply fixture unit and conversion to gallons per minute (L/m) flow rate to be expected through each section. Sizing methods require the determination of the “most hydraulically remote” fixture to compute the pressure loss caused by pipe and fittings. The hydraulically remote fixture represents the most downstream fixture along the circuit of piping requiring the most available pressure to operate properly. Consideration must be given to all pressure demands and losses, such as friction caused by pipe, fittings and equipment, elevation and the residual pressure required by <a class="table_reference" href="#IPC2015_Ch06_Sec604.3_Tbl604.3">Table 604.3</a>. The two most common and frequent complaints about the water supply system operation are lack of adequate pressure and noise.</p>
</li>
</ol>
</li>
</ol>
<!--Definition/Description List-->
<dl>
<dt>[A]</dt>
<dd>= Administrative Code Development Committee;</dd>
<dt>[BF]</dt>
<dd>=
<span class="iccpub abbr">
<a class="url" href="http://www.iccsafe.org/IBC-15">IBC</a>
</span>
– Fire Safety Code Development Committee;
</dd>
<dt>[BG]</dt>
<dd>=
<span class="iccpub abbr">
<a class="url" href="http://www.iccsafe.org/IBC-15">IBC</a>
</span>
– General Code Development Committee;
</dd>
<dt>[BS]</dt>
<dd>=
<span class="iccpub abbr">
<a class="url" href="http://www.iccsafe.org/IBC-15">IBC</a>
</span>
– Structural Code Development Committee;
</dd>
<dt>[E]</dt>
<dd>=
<span class="iccpub pubname">
<a class="url" href="http://www.iccsafe.org/IECC-15">International Energy Conservation Code</a>
</span>
Development Committee;
</dd>
<dt>[F]</dt>
<dd>=
<span class="iccpub pubname">
<a class="url" href="http://www.iccsafe.org/IFC-15">International Fire Code</a>
</span>
Development Committee; and
</dd>
<dt>[M]</dt>
<dd>=
<span class="iccpub pubname">
<a class="url" href="http://www.iccsafe.org/IMC-15">International Mechanical Code</a>
</span>
Development Committee.
</dd>
</dl>
<!--Standard Exception-->
<div class="exception">
<p><span class="run_in"><span class="bold">Exception:</span></span> Where enforcement of a code provision would violate the conditions of the <span class="formal_usage">listing</span> of the <span class="formal_usage">equipment</span> or <span class="formal_usage">appliance</span>, the conditions of the <span class="formal_usage">listing</span> and manufacturer&#x2019;s instructions shall apply.</p>
</div>
<!--Exception with Ordered List-->
<div class="exception">
<p>
<span class="run-in">
<span class="bold">Exceptions:</span>
</span>
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label">1.</span> The passageway and level service space are not required where the <span class="formal_usage">appliance</span> is capable of being serviced and removed through the required opening.
</p>
</li>
<li>
<p>
<span class="label">2.</span> Where the passageway is not less than 6 feet (1829 mm) high for its entire length, the passageway shall be not greater than 50 feet (15 250 mm) in length.
</p>
</li>
</ol>
</div>
</div>
<!--Exception with Paragraph and Ordered List-->
<div class="exception">
<p><span class="run_in"><span class="bold">Exception:</span></span> For wood light-frame construction, floors with cantilevers or setbacks not exceeding four times the nominal depth of the wood floor joists are permitted to support <span class="formal_usage">braced wall panels</span> that are out of plane with <span class="formal_usage">braced wall panels</span> below provided that:</p>
<div class="list">
<ol class="no_mark">
<li><p><span class="label">1.</span> Floor joists are nominal 2 inches by 10 inches (51 mm by 254 mm) or larger and spaced not more than 16 inches (406 mm) on center.</p></li>
<li><p><span class="label">2.</span> The ratio of the back span to the cantilever is not less than 2 to 1.</p></li>
<li><p><span class="label">3.</span> Floor joists at ends of <span class="formal_usage">braced wall panels</span> are doubled.</p></li>
<li><p><span class="label">4.</span> For wood-frame construction, a continuous rim joist is connected to ends of cantilever joists. When spliced, the rim joists shall be spliced using a galvanized metal tie not less than 0.058 inch (1.5 mm) (16 gage) and 1<span class="fraction"><sup>1</sup>/<sub>2</sub></span> inches (38 mm) wide fastened with six 16d nails on each side of the splice or a block of the same size as the rim joist of sufficient length to fit securely between the joist space at which the splice occurs fastened with eight 16d nails on each side of the splice; and</p></li>
<li><p><span class="label">5.</span> Gravity loads carried at the end of cantilevered joists are limited to uniform wall and roof loads and the reactions from headers having a span of 8 feet (2438 mm) or less.</p></li>
</ol>
</div>
</div>
<!--Exception with Paragraph and Nested Ordered Lists-->
<div class="exception">
<p>
<span class="run-in">
<span class="bold">Exception:</span>
</span> This shall not apply where:
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label">1.</span> The <span class="formal_usage">appliance</span> is a direct-vent <span class="formal_usage">appliance</span> or an <span class="formal_usage">appliance</span> not requiring a vent in accordance with <a class="section_reference" href="#IFGC2015_Ch05_Sec501.8">Section 501.8</a>.
</p>
</li>
<li>
<p>
<span class="label">2.</span> The room or space complies with the following requirements:
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label">2.1.</span> The return air shall be taken from a room or space having a volume exceeding 1 cubic foot for each 10 Btu/h (9.6L/W) of combined input rating of all fuel-burning appliances therein.
</p>
</li>
<li>
<p>
<span class="label">2.2.</span> The volume of supply air discharged back into the same space shall be approximately equal to the volume of return air taken from the space.
</p>
</li>
<li>
<p>
<span class="label">2.3.</span> Return-air inlets shall not be located within 10 feet (3048 mm) of a draft hood in the same room or space or the combustion chamber of any atmospheric burner <span class="formal_usage">appliance</span> in the same room or space.
</p>
</li>
</ol>
</div>
</li>
<li>
<p>
<span class="label">3.</span> Rooms or spaces containing solid fuel-burning appliances, provided that return-air inlets are located not less than 10 feet (3048 mm) from the firebox of such appliances.
</p>
</li>
</ol>
</div>
</div>
<!--Exception with Nested Ordered Lists -->
<div class="exception">
<p>
<span class="run-in">
<span class="bold">Exceptions:</span>
</span>
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label">1.</span> Within malls, arcades, auditoriums, single-tenant retail spaces, industrial facilities and arenas:
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label">1.1.</span> The time limit shall be permitted to be greater than 2 hours, provided that the override switch is a captive key device.
</p>
</li>
<li>
<p>
<span class="label">1.2.</span> The area controlled by the override switch is permitted to be greater than 5,000 square feet (465 m<sup>2</sup>), but shall not be greater than 20,000 square feet (1860 m<sup>2</sup>).
</p>
</li>
</ol>
</div>
</li>
<li>
<p>
<span class="label">2.</span> Where provided with <span class="formal_usage">manual control</span>, the following areas are not required to have light reduction control:
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label">2.1.</span> Spaces that have only one luminaire with a rated power of less than 100 watts.
</p>
</li>
<li>
<p>
<span class="label">2.2.</span> Spaces that use less than 0.6 watts per square foot (6.5 W/m<sup>2</sup>).
</p>
</li>
<li>
<p>
<span class="label">2.3.</span> Corridors, equipment rooms, public lobbies, electrical or mechanical rooms.
</p>
</li>
</ol>
</div>
</li>
</ol>
</div>
</div>
<!--Image from FootNote-->
<img src="Images/Tbl0003.jpg" alt="Tbl0003.jpg"/>
<!--Equation-->
<div class="equation_group">
<p id="IRC2015_Pt04_Ch11_SecN1105.5.2_TblN1105.5.2_1_Eq1" class="equation">
<m:math display="block" overflow="scroll">
<m:mrow>
<m:mi>A</m:mi><m:mi>F</m:mi><m:mtext>&#x2009;</m:mtext><m:mo>=</m:mo><m:mtext>&#x2009;</m:mtext><m:msub>
<m:mi>A</m:mi>
<m:mi>s</m:mi>
</m:msub>
<m:mtext>&#x2009;</m:mtext><m:mo>&#xd7;</m:mo><m:mtext>&#x2009;</m:mtext><m:mi>F</m:mi><m:mi>A</m:mi><m:mtext>&#x2009;</m:mtext><m:mo>&#xd7;</m:mo><m:mtext>&#x2009;</m:mtext><m:mi>F</m:mi></m:mrow>
</m:math>
<img src="Images/Eq0003.jpg" alt="Eq0003.jpg"/>
</p>
</div>
<!--Equation with Image-->
<div class="equation_group">
<p id="IRC2015_Pt03_Ch06_SecR608.7.1.1_Eq1" class="equation">
<m:math display="block" overflow="scroll"><m:mrow><m:mi>T</m:mi><m:mi>L</m:mi><m:mo>&#x2265;</m:mo><m:msub><m:mi>R</m:mi><m:mn>1</m:mn></m:msub><m:mo>&#x22c5;</m:mo><m:msub><m:mi>R</m:mi><m:mn>2</m:mn></m:msub><m:mo>&#x22c5;</m:mo><m:msub><m:mi>R</m:mi><m:mn>3</m:mn></m:msub><m:mo>&#x22c5;</m:mo><m:mi>U</m:mi><m:mi>R</m:mi></m:mrow></m:math>
<img src="Images/Eq0001.jpg" alt="Eq0001.jpg"/>
<span class="equation_number"><span class="italic">(Equation R6-1)</span></span>
</p>
</div>
<!--Inline Equation-->
<span class="inline_equation">
<m:math display="block" overflow="scroll">
<m:mrow>
<m:msqrt>
<m:mtext>V</m:mtext>
</m:msqrt>
</m:mrow>
</m:math>
<img src="Images/Eq0010.jpg" alt="Eq0010.jpg"/>
</span>
<!--Equation Group-->
<div class="equation_group">
<p id="IFGC2015_Ch03_Sec304.5.2_Eq1" class="equation">
<m:math display="block" overflow="scroll">
<m:mrow>
<m:mi>Re</m:mi>
<m:mi>q</m:mi>
<m:mi>u</m:mi>
<m:mi>i</m:mi>
<m:mi>r</m:mi>
<m:mi>e</m:mi>
<m:mi>d</m:mi>
<m:mtext> </m:mtext>
<m:mi>V</m:mi>
<m:mi>o</m:mi>
<m:mi>l</m:mi>
<m:mi>u</m:mi>
<m:mi>m</m:mi>
<m:msub>
<m:mi>e</m:mi>
<m:mrow>
<m:mi>o</m:mi>
<m:mi>t</m:mi>
<m:mi>h</m:mi>
<m:mi>e</m:mi>
<m:mi>r</m:mi>
</m:mrow>
</m:msub>
<m:mtext> </m:mtext>
<m:mo>≥</m:mo>
<m:mfrac>
<m:mrow>
<m:mn>21</m:mn>
<m:mtext> </m:mtext>
<m:mi>f</m:mi>
<m:msup>
<m:mi>t</m:mi>
<m:mn>3</m:mn>
</m:msup>
</m:mrow>
<m:mrow>
<m:mi>A</m:mi>
<m:mi>C</m:mi>
<m:mi>H</m:mi>
</m:mrow>
</m:mfrac>
<m:mrow>
<m:mo>(</m:mo>
<m:mrow>
<m:mfrac>
<m:mrow>
<m:msub>
<m:mi>I</m:mi>
<m:mrow>
<m:mi>o</m:mi>
<m:mi>t</m:mi>
<m:mi>h</m:mi>
<m:mi>e</m:mi>
<m:mi>r</m:mi>
</m:mrow>
</m:msub>
</m:mrow>
<m:mrow>
<m:mn>1</m:mn>
<m:mo>,</m:mo>
<m:mn>000</m:mn>
<m:mtext> </m:mtext>
<m:mi>B</m:mi>
<m:mi>t</m:mi>
<m:mi>u</m:mi>
<m:mo>/</m:mo>
<m:mi>h</m:mi>
</m:mrow>
</m:mfrac>
</m:mrow>
<m:mo>)</m:mo>
</m:mrow>
</m:mrow>
</m:math>
<img src="Images/Eq0001.jpg" alt="Eq0001.jpg"/>
<span class="equation_number">
<span class="bold">(Equation 3-1)</span>
</span>
</p>
</div>
<!--Equation Reference-->
<a class="equation_reference" href="#IRC2015_Pt03_Ch06_SecR608.7.1.1_Eq1">Equation R6-1</a>
</div>
<?xml version="1.0" encoding="UTF-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"
xmlns:m="http://www.w3.org/1998/Math/MathML">
<!--Unordered List (no bullets)-->
<div class="list">
<ul class="no_mark">
<li>
<p>
<span class="label"></span>
</p>
<p></p>
<ol>
<li>...</li>
</ol>
<ul>
<li>...</li>
</ul>
</li>
</ul>
</div>
<!--Unordered List (bullets)-->
<div class="list">
<ul>
<li>
<p>...</p>
</li>
<li>...</li>
<li>
<p>...</p>
<ul>
<li>...</li>
</ul>
</li>
</ul>
</div>
<!--Ordered List with Nested Lists-->
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
</p>
</li>
<li>
<p>
<span class="label"></span>
</p>
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
</p>
</li>
</ol>
</li>
<li>
<p>
<span class="label"></span>
</p>
</li>
</ol>
</div>
<!--Definition/Description List-->
<div class="list">
<dl>
<dt></dt>
<dd></dd>
<dt></dt>
<dd>
<span class="iccpub abbr">
<a class="url" href="http://www.iccsafe.org/IBC-15"></a>
</span>
</dd>
</dl>
</div>
<!--Standard Exception-->
<div class="exception">
<p>
<span class="run_in">
<span class="bold">Exception:</span>
</span>
...
</p>
</div>
<!--Exception with Ordered List-->
<div class="exception">
<p>
<span class="run-in">
<span class="bold">Exceptions:</span>
</span>
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
...
</p>
</li>
<li>
<p>
<span class="label"></span>
...
</p>
</li>
</ol>
</div>
</div>
<!--Exception with Paragraph and Ordered List-->
<div class="exception">
<p>
<span class="run_in">
<span class="bold">Exception:</span>
</span>
..text..
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
</ol>
</div>
</div>
<!--Exception with Paragraph and Nested Ordered Lists-->
<div class="exception">
<p>
<span class="run-in">
<span class="bold">Exception:</span>
</span>
..text..
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
</ol>
</div>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
</ol>
</div>
</div>
<!--Exception with Nested Ordered Lists -->
<div class="exception">
<p>
<span class="run-in">
<span class="bold">Exceptions:</span>
</span>
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
..text..
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
</ol>
</div>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
<div class="list">
<ol class="no_mark">
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
<li>
<p>
<span class="label"></span>
..text..
</p>
</li>
</ol>
</div>
</li>
</ol>
</div>
</div>
<!--Image from FootNote-->
<img src="Images/Tbl0003.jpg" alt="Tbl0003.jpg"/>
<!--Equation-->
<div class="equation_group">
<p id="IRC2015_Pt04_Ch11_SecN1105.5.2_TblN1105.5.2_1_Eq1" class="equation">
<m:math display="block" overflow="scroll">
..math..
</m:math>
<img src="Images/Eq0003.jpg" alt="Eq0003.jpg"/>
</p>
</div>
<!--Equation with Image-->
<div class="equation_group">
<p id="IRC2015_Pt03_Ch06_SecR608.7.1.1_Eq1" class="equation">
<m:math display="block" overflow="scroll">
..math..
</m:math>
<img src="Images/Eq0001.jpg" alt="Eq0001.jpg"/>
<span class="equation_number">
<span class="italic"></span>
</span>
</p>
</div>
<!--Inline Equation-->
<span class="inline_equation">
<m:math display="block" overflow="scroll">
..math..
</m:math>
<img src="Images/Eq0010.jpg" alt="Eq0010.jpg"/>
</span>
<!--Equation Group-->
<div class="equation_group">
<p id="IFGC2015_Ch03_Sec304.5.2_Eq1" class="equation">
<m:math display="block" overflow="scroll">
..math..
</m:math>
<img src="Images/Eq0001.jpg" alt="Eq0001.jpg"/>
<span class="equation_number">
<span class="bold"></span>
</span>
</p>
</div>
<!--Equation Reference-->
<a class="equation_reference" href="#IRC2015_Pt03_Ch06_SecR608.7.1.1_Eq1"></a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment