blob: 88ee38891f371a63995eb59728fc61ea952af452 [file] [log] [blame]
ooxml.word.get
#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:r>
<w:t>Outer one</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:bookmarkStart w:id="0" w:name="_Ref217227321"/>
<w:r>
<w:t>Inner 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 two</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:bookmarkStart w:id="1" w:name="_Ref217227334"/>
<w:r>
<w:t>Outer two</w:t>
</w:r>
<w:bookmarkEnd w:id="1"/>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:r>
<w:t>Inner three</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:r>
<w:t>Inner four</w:t>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Text reference to Inner one: </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> REF _Ref217227321 \h </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:t>Inner one</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Text reference to Outer two: </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> REF _Ref217227334 \h </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:t>Outer two</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
<w:bookmarkStart w:id="2" w:name="_GoBack"/>
<w:bookmarkEnd w:id="2"/>
</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 expected
<!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="word6">Outer one</span>
</h1>
<h2 class="heading_2" id="word9">
<span id="word13">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="word27">Outer two</span>
</h1>
<h2 class="heading_2" id="word31">
<span id="word34">Inner three</span>
</h2>
<h2 class="heading_2" id="word37">
<span id="word40">Inner four</span>
</h2>
<p class="Normal" id="word43">
<span id="word44">Text reference to Inner one: </span><a class="uxwrite-ref-text" href="#word9" id="word81"></a>
</p>
<p class="Normal" id="word59">
<span id="word60">Text reference to Outer two: </span><a class="uxwrite-ref-text" href="#word23" id="word82"></a>
</p>
</body>
</html>