Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table error message #166

Closed
pgundlach opened this issue Mar 23, 2018 · 0 comments
Closed

Table error message #166

pgundlach opened this issue Mar 23, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@pgundlach
Copy link
Member

<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
@pgundlach pgundlach added the Bug label Mar 23, 2018
@pgundlach pgundlach added this to the Version 3.2 milestone Mar 23, 2018
@pgundlach pgundlach self-assigned this Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant