Skip to content

Table error message #166

Closed
Closed
@pgundlach

Description

@pgundlach
<Layout xmlns="urn:speedata.de:2009/publisher/en"
  xmlns:sd="urn:speedata:2009/publisher/functions/en"
  version="3.1.25">
  <Trace grid="yes" objects="yes"/>

  
  <Record element="data">
    <ForAll select="tab">
      <PlaceObject>
        <Table  stretch="max" width="5">
         <ForAll select="tr">
            <Tr>
              <ForAll select="td">
                <Td colspan="{@colspan}">
                  <Paragraph>
                    <ForAll select="*">
                      <Value select="."/>
                    </ForAll>
                  </Paragraph>
                </Td>
              </ForAll>
            </Tr>
          </ForAll>
        </Table>
      </PlaceObject>
    </ForAll>
  </Record>
</Layout>

and the data file

<data>
  <tab maxcol="2">
    <tr>
      <td colspan="2">
        <val>text text text text text text v text text</val>
      </td>
    </tr>
    <tr>
      <td>
        <val>text text text text</val>
      </td>
      <td>
        <val></val>
      </td>
    </tr>
  </tab>
</data>

This returns errors:

Error: Something went wrong with the number of columns in the table
Error: Something went wrong with the number of columns in the table
Error: Something went wrong with the number of columns in the table
Error: Something went wrong with the number of columns in the table

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions