blob: 3c338e1c69f82b5476fb2fe99b508b0f7beeb4ed [file] [log] [blame]
ooxml.word.put
#item input.docx
##item document.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:body>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:bookmarkStart w:id="0" w:name="_Ref217308599"/>
<w:r>
<w:t>Outer one</w:t>
</w:r>
<w:bookmarkEnd w:id="0"/>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:r>
<w:t>Inner one</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:r>
<w:t>Inner two</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:r>
<w:t>Outer two</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:bookmarkStart w:id="1" w:name="_Ref217308605"/>
<w:r>
<w:t>Inner three</w:t>
</w:r>
<w:bookmarkEnd w:id="1"/>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:bookmarkStart w:id="2" w:name="_Ref217308612"/>
<w:r>
<w:t>Inner four</w:t>
</w:r>
<w:bookmarkStart w:id="3" w:name="_GoBack"/>
<w:bookmarkEnd w:id="2"/>
<w:bookmarkEnd w:id="3"/>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Numeric reference to Outer one: </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> REF _Ref217308599 \r \h </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:t>1</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Numeric reference to Inner three: </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> REF _Ref217308605 \r \h </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:t>2.1</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Numeric reference to Inner four: </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> REF _Ref217308612 \r \h </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:t>2.2</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
</w:p>
<w:sectPr>
<w:pgSz w:h="16840" w:w="11900"/>
<w:pgMar w:bottom="1440" w:footer="708" w:gutter="0" w:header="708" w:left="1800" w:right="1800" w:top="1440"/>
<w:cols w:space="708"/>
</w:sectPr>
</w:body>
</w:document>
##item styles.xml
#include "styles.xml"
##item numbering.xml
#include "numbering.xml"
#item input.html
<!DOCTYPE html>
<html id="word1">
<head>
<meta charset="utf-8"/>
<link href="reset.css" rel="stylesheet"/>
<style>
#include "common.css"
</style>
</head>
<body id="word2">
<h1 class="heading_1" id="word3">
<span id="word7">Outer one</span>
</h1>
<h2 class="heading_2" id="word11">
<span id="word14">Inner one</span>
</h2>
<h2 class="heading_2" id="word17">
<span id="word20">Inner two</span>
</h2>
<h1 class="heading_1" id="word23">
<span id="word26">Outer two</span>
</h1>
<h2 class="heading_2" id="word29">
<span id="word33">Inner three</span>
</h2>
<h2 class="heading_2" id="word37">
<span id="word41">Inner four</span>
</h2>
<p class="Normal" id="word47">
<span id="word48">Label reference to Outer one: </span><a class="uxwrite-ref-text" href="#word3" id="word99"></a>
</p>
<p class="Normal" id="word63">
<span id="word64">Label reference to Inner three: </span><a class="uxwrite-ref-text" href="#word29" id="word100"></a>
</p>
<p class="Normal" id="word79">
<span id="word80">Label reference to Inner four: </span><a class="uxwrite-ref-text" href="#word37" id="word101"></a>
</p>
</body>
</html>
#item expected
##item document.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:body>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:bookmarkStart w:id="0" w:name="_Ref217308599"/>
<w:r>
<w:t>Outer one</w:t>
</w:r>
<w:bookmarkEnd w:id="0"/>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:r>
<w:t>Inner one</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:r>
<w:t>Inner two</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:r>
<w:t>Outer two</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:bookmarkStart w:id="1" w:name="_Ref217308605"/>
<w:r>
<w:t>Inner three</w:t>
</w:r>
<w:bookmarkEnd w:id="1"/>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:bookmarkStart w:id="2" w:name="_Ref217308612"/>
<w:r>
<w:t>Inner four</w:t>
</w:r>
<w:bookmarkEnd w:id="2"/>
<w:bookmarkStart w:id="3" w:name="_GoBack"/>
<w:bookmarkEnd w:id="3"/>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Label reference to Outer one: </w:t>
</w:r>
<w:fldSimple w:instr=" REF _Ref217308599 \h "/>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Label reference to Inner three: </w:t>
</w:r>
<w:fldSimple w:instr=" REF _Ref217308605 \h "/>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Label reference to Inner four: </w:t>
</w:r>
<w:fldSimple w:instr=" REF _Ref217308612 \h "/>
</w:p>
<w:sectPr>
<w:pgSz w:h="16840" w:w="11900"/>
<w:pgMar w:bottom="1440" w:footer="708" w:gutter="0" w:header="708" w:left="1800" w:right="1800" w:top="1440"/>
<w:cols w:space="708"/>
</w:sectPr>
</w:body>
</w:document>
##item styles.xml
#include "styles.xml"
##item numbering.xml
#include "numbering.xml"