Example 3x3 Table /w styling

created by Kane Valentine on 2017-10-03 13:36:21.039239 UTC

clone test

template template.odt

<office:styles>
  <style:style style:name="Table1" style:family="table">
    <style:table-properties style:width="17cm" table:align="margins"/>
  </style:style>
  <style:style style:name="Table1.A" style:family="table-column">
    <style:table-column-properties style:column-width="5.667cm" style:rel-column-width="21845*"/>
  </style:style>
  <style:style style:name="Table1.A1" style:family="table-cell">
    <style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="0.05pt solid #000000"/>
  </style:style><style:style style:name="Table1.C1" style:family="table-cell">
  <style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
  </style:style>
  <style:style style:name="Table1.A2" style:family="table-cell">
    <style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
  </style:style>
  <style:style style:name="Table1.C2" style:family="table-cell">
    <style:table-cell-properties fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
  </style:style>
  <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Table_20_Contents">
  </style:style>
</office:styles>
  <office:text>
    <text:sequence-decls>
      <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
      <text:sequence-decl text:display-outline-level="0" text:name="Table"/>
      <text:sequence-decl text:display-outline-level="0" text:name="Text"/>
      <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
    </text:sequence-decls>
    <table:table table:name="Table1" table:style-name="Table1">
    <table:table-column table:style-name="Table1.A" table:number-columns-repeated="3"/>
      <table:table-row>
        <table:table-cell table:style-name="Table1.A1" office:value-type="string">
          <text:p text:style-name="P1">This is a table.</text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Table1.A1" office:value-type="string">
          <text:p text:style-name="P1">Tables store information.</text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Table1.C1" office:value-type="string">
          <text:p text:style-name="P1">Tables help to format things.</text:p>
        </table:table-cell>
      </table:table-row>
      <table:table-row>
        <table:table-cell table:style-name="Table1.A2" office:value-type="string">
          <text:p text:style-name="P1">Tables are great.</text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Table1.A2" office:value-type="string">
          <text:p text:style-name="P1">But do they work in MS Office?</text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Table1.C2" office:value-type="string">
          <text:p text:style-name="P1">Who knows?</text:p>
        </table:table-cell>
      </table:table-row>
      <table:table-row>
        <table:table-cell table:style-name="Table1.A2" office:value-type="string">
          <text:p text:style-name="P1">Maybe this table is broken.</text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Table1.A2" office:value-type="string">
          <text:p text:style-name="P1">Table cell.</text:p>
        </table:table-cell>
        <table:table-cell table:style-name="Table1.C2" office:value-type="string">
          <text:p text:style-name="P1">Table cell.</text:p>
        </table:table-cell>
      </table:table-row>
    </table:table><text:p text:style-name="Standard"/>
</office:text>

Tested versions: 1.0 1.1 1.2 1.2 Extended

input file Abiword 3.0.1 GNU/Linux 3.16.0-4-amd64 Abiword 3.0.1 GNU/Linux 4.9.36 Docs Word 2016 Microsoft Windows 10 Pro 10.0.15063 Word 2016 Microsoft Windows 7 Professional 6.1.7600 Word 2016 Microsoft Windows Server 2012 R2 Standard 6.3.9600 Words 2.9.7 GNU/Linux 3.16.0-4-amd64 Words 2.9.7 GNU/Linux 4.9.36 Words 3.0.1 GNU/Linux 3.16.0-4-amd64 Words 3.0.1 GNU/Linux 4.9.36 Writer 4.1.3 Microsoft Windows 10 Pro 10.0.15063 Writer 5.2.5.1 GNU/Linux 3.16.0-4-amd64 Writer 5.2.5.1 GNU/Linux 3.16.0-4-amd64 Writer 5.2.5.1 GNU/Linux 3.16.0-4-amd64 Writer 5.4.1.2 GNU/Linux 3.16.0-4-amd64 Writer 5.4.1.2 GNU/Linux 3.16.0-4-amd64 Writer 5.4.1.2 GNU/Linux 3.16.0-4-amd64 Writer 5.4.1.2 GNU/Linux 4.9.36 Writer 5.4.1.2 GNU/Linux 4.9.36 Writer 5.4.1.2 GNU/Linux 4.9.36 Writer 6.2 Microsoft Windows Server 2016 Standard 10.0.14393 Writer 6.2 Microsoft Windows Server 2016 Standard 10.0.14393 Writer 6.2 Microsoft Windows Server 2016 Standard 10.0.14393
ODF OpenDocument Text 1.2 Extended OpenDocument Text 1.1 OpenDocument Text 1.1 OpenDocument Text 1.2 Extended OpenDocument Text 1.2 Extended OpenDocument Text 1.2 Extended OpenDocument Text 1.2 Extended OpenDocument Text 1.2 Extended OpenDocument Text 1.2 Extended OpenDocument Text 1.2 Extended OpenDocument Text 1.2 Extended OpenDocument Text 1.2 Extended OpenDocument Text 1.1 OpenDocument Text 1.2 Extended OpenDocument Text 1.2 OpenDocument Text 1.1 OpenDocument Text 1.2 Extended OpenDocument Text 1.2 OpenDocument Text 1.1 OpenDocument Text 1.2 Extended OpenDocument Text 1.2 OpenDocument Text 1.1 OpenDocument Text 1.2 Extended OpenDocument Text 1.2
test result fail fail pass fail fail fail pass pass pass pass no result pass pass pass pass pass pass pass pass pass pass pass pass
is the test correct?
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
yes: 0
no: 0
undecided
validation errors 4 10 10 0 1 1 1 4 4 5 5 0 0 0 0 0 0 0 0 0 0 0 0
content.xml
count(//table:table-cell)=9 true true true true true true true true true true true - true true true true true true true true true true true true
count(//table:table-row)=3 true true true true true true true true true true true - true true true true true true true true true true true true
count(//table:table-column/@table:number-columns-repeated)=1 true false false true false false false true true true true - true true true true true true true true true true true true
content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml - content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml content.xml
styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml styles.xml
pdf pdf pdf pdf pdf - pdf - - pdf pdf - pdf pdf pdf pdf pdf pdf pdf pdf pdf pdf pdf pdf
png