blob: fa3d879b948506c214873834a0b3d705647fe3fe [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="pct" w:w="5000"/>
</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="pct" w:w="2500"/>
</w:tcPr>
<w:p/>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:type="pct" w:w="2500"/>
</w:tcPr>
<w:p/>
</w:tc>
</w:tr>
<w:tr>
<w:tc>
<w:tcPr>
<w:tcW w:type="pct" w:w="2500"/>
</w:tcPr>
<w:p/>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:type="pct" w:w="2500"/>
</w:tcPr>
<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:fldSimple w:instr=" SEQ Table \* ARABIC "/>
<w:r>
<w:t xml:space="preserve">: </w:t>
</w:r>
<w:bookmarkStart w:id="0" w:name="uxwrite0"/>
<w:r>
<w:t>Test</w:t>
</w:r>
<w:bookmarkEnd w:id="0"/>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Caption text: </w:t>
</w:r>
<w:fldSimple w:instr=" REF uxwrite0 \h "/>
</w:p>
<w:sectPr>
<w:pgSz w:h="16840" w:w="11900"/>
<w:pgMar w:bottom="1440" w:left="1800" w:right="1800" w:top="1440"/>
</w:sectPr>
</w:body>
</w:document>
##item styles.xml
#include "styles-create-table.xml"
#item expected
<!DOCTYPE html>
<html id="word1">
<head>
<meta charset="utf-8"/>
<link href="reset.css" rel="stylesheet"/>
<style>
#include "get-tables.css"
</style>
</head>
<body id="word2">
<table class="Table_Grid" id="word3" style="width: 100%">
<caption id="word28">
<span id="word39">Test</span>
</caption>
<colgroup>
<col width="50%"/>
<col width="50%"/>
</colgroup>
<tr id="word10">
<td id="word11">
<p class="Normal" id="word14">
<br/>
</p>
</td>
<td id="word15">
<p class="Normal" id="word18">
<br/>
</p>
</td>
</tr>
<tr id="word19">
<td id="word20">
<p class="Normal" id="word23">
<br/>
</p>
</td>
<td id="word24">
<p class="Normal" id="word27">
<br/>
</p>
</td>
</tr>
</table>
<p class="Normal" id="word43">
<span id="word44">Caption text: </span><a class="uxwrite-ref-caption-text" href="#word3" id="word47"></a>
</p>
</body>
</html>