blob: 3d395919b2c873ee53a075e89473e36d372df559 [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:tbl>
<w:tblPr>
<w:tblStyle w:val="TableGrid"/>
<w:tblW w:type="auto" w:w="0"/>
<w:tblLook w:firstColumn="1" w:firstRow="1" w:lastColumn="0" w:lastRow="0" w:noHBand="0" w:noVBand="1" w:val="04A0"/>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="4258"/>
<w:gridCol w:w="4258"/>
</w:tblGrid>
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="4258"/>
</w:tcPr>
<w:p/>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="4258"/>
</w:tcPr>
<w:p>
<w:pPr>
<w:keepNext/>
</w:pPr>
</w:p>
</w:tc>
</w:tr>
</w:tbl>
<w:p>
<w:pPr>
<w:pStyle w:val="Caption"/>
</w:pPr>
<w:bookmarkStart w:id="0" w:name="_Ref217334852"/>
<w:r>
<w:t xml:space="preserve">Table </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> SEQ Table \* ARABIC </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:t>1</w:t>
</w:r>
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:fldChar w:fldCharType="end"/>
</w:r>
<w:bookmarkEnd w:id="0"/>
<w:r>
<w:t>: First table</w:t>
</w:r>
<w:bookmarkStart w:id="1" w:name="_GoBack"/>
<w:bookmarkEnd w:id="1"/>
</w:p>
<w:tbl>
<w:tblPr>
<w:tblStyle w:val="TableGrid"/>
<w:tblW w:type="auto" w:w="0"/>
<w:tblLook w:firstColumn="1" w:firstRow="1" w:lastColumn="0" w:lastRow="0" w:noHBand="0" w:noVBand="1" w:val="04A0"/>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="4258"/>
<w:gridCol w:w="4258"/>
</w:tblGrid>
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="4258"/>
</w:tcPr>
<w:p/>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="4258"/>
</w:tcPr>
<w:p>
<w:pPr>
<w:keepNext/>
</w:pPr>
</w:p>
</w:tc>
</w:tr>
</w:tbl>
<w:p>
<w:pPr>
<w:pStyle w:val="Caption"/>
</w:pPr>
<w:bookmarkStart w:id="2" w:name="_Ref217334862"/>
<w:r>
<w:t xml:space="preserve">Table </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> SEQ Table \* ARABIC </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:t>2</w:t>
</w:r>
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:fldChar w:fldCharType="end"/>
</w:r>
<w:bookmarkEnd w:id="2"/>
<w:r>
<w:t>: Second table</w:t>
</w:r>
</w:p>
<w:tbl>
<w:tblPr>
<w:tblStyle w:val="TableGrid"/>
<w:tblW w:type="auto" w:w="0"/>
<w:tblLook w:firstColumn="1" w:firstRow="1" w:lastColumn="0" w:lastRow="0" w:noHBand="0" w:noVBand="1" w:val="04A0"/>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="4258"/>
<w:gridCol w:w="4258"/>
</w:tblGrid>
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="4258"/>
</w:tcPr>
<w:p/>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:type="dxa" w:w="4258"/>
</w:tcPr>
<w:p>
<w:pPr>
<w:keepNext/>
</w:pPr>
</w:p>
</w:tc>
</w:tr>
</w:tbl>
<w:p>
<w:pPr>
<w:pStyle w:val="Caption"/>
</w:pPr>
<w:r>
<w:t xml:space="preserve">Table </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> SEQ Table \* ARABIC </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:t>3</w:t>
</w:r>
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:fldChar w:fldCharType="end"/>
</w:r>
<w:r>
<w:t>: Third table</w:t>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Only label and number reference to first table: </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> REF _Ref217334852 \h </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:t xml:space="preserve">Table </w:t>
</w:r>
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:t>1</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t>Only label and num</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">ber reference to second table: </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText xml:space="preserve"> REF _Ref217334862 \h </w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:t xml:space="preserve">Table </w:t>
</w:r>
<w:r>
<w:rPr>
<w:noProof/>
</w:rPr>
<w:t>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 expected
<!DOCTYPE html>
<html id="word1">
<head>
<meta charset="utf-8"/>
<link href="reset.css" rel="stylesheet"/>
<style>
#include "common-tables.css"
</style>
</head>
<body id="word2">
<table class="Table_Grid" id="word3" style="width: 100%">
<caption id="word22">
<span id="word46">First table</span>
</caption>
<colgroup>
<col width="50%"/>
<col width="50%"/>
</colgroup>
<tr id="word11">
<td id="word12">
<p class="Normal" id="word15">
<br/>
</p>
</td>
<td id="word16">
<p class="Normal" id="word19">
<br/>
</p>
</td>
</tr>
</table>
<table class="Table_Grid" id="word51" style="width: 100%">
<caption id="word70">
<span id="word94">Second table</span>
</caption>
<colgroup>
<col width="50%"/>
<col width="50%"/>
</colgroup>
<tr id="word59">
<td id="word60">
<p class="Normal" id="word63">
<br/>
</p>
</td>
<td id="word64">
<p class="Normal" id="word67">
<br/>
</p>
</td>
</tr>
</table>
<table class="Table_Grid" id="word97" style="width: 100%">
<caption id="word116">
<span id="word138">Third table</span>
</caption>
<colgroup>
<col width="50%"/>
<col width="50%"/>
</colgroup>
<tr id="word105">
<td id="word106">
<p class="Normal" id="word109">
<br/>
</p>
</td>
<td id="word110">
<p class="Normal" id="word113">
<br/>
</p>
</td>
</tr>
</table>
<p class="Normal" id="word141">
<span id="word142">Only label and number reference to first table: </span><a class="uxwrite-ref-label-num" href="#word3" id="word193"></a>
</p>
<p class="Normal" id="word162">
<span id="word163">Only label and number reference to second table: </span><a class="uxwrite-ref-label-num" href="#word51" id="word194"></a>
</p>
</body>
</html>