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

Rowspan fails #280

Closed
pgundlach opened this issue Nov 11, 2020 · 1 comment
Closed

Rowspan fails #280

pgundlach opened this issue Nov 11, 2020 · 1 comment

Comments

@pgundlach
Copy link
Member

data.xml

<Table>
	<Row>
		<Cell rowspan="1">11</Cell>
		<Cell rowspan="2">12-22</Cell>
		<Cell rowspan="1">13</Cell>
		<Cell rowspan="1">14</Cell>
	</Row>
	<Row>
		<Cell rowspan="1">21</Cell>
		<Cell rowspan="3">23-33-43</Cell>
		<Cell rowspan="1">24</Cell>
	</Row>
	<Row>
		<Cell rowspan="2">31-41</Cell>
		<Cell rowspan="1">32</Cell>
		<Cell rowspan="2">34-44</Cell>
	</Row>
	<Row>
		<Cell rowspan="1">42</Cell>
	</Row>
</Table>

layout.xml

<Layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="layoutschema-en.xsd" xmlns:sd="urn:speedata:2009/publisher/functions/en" xmlns="urn:speedata.de:2009/publisher/en" xmlns:xi="http://www.w3.org/2001/XInclude" version="4.1.14">
	<Record element="Table">
		<PlaceObject>
			<Table width="170mm">
				<Columns>
					<Column width="42.5mm" align="center" />
					<Column width="42.5mm" align="center" />
					<Column width="42.5mm" align="center" />
					<Column width="42.5mm" align="center" />
				</Columns>
				<ForAll select="Row">
					<Tr>
						<ForAll select="Cell">
							<Td rowspan="{@rowspan}" border-left="1pt" border-right="1pt" border-top="1pt" border-bottom="1pt">
								<Paragraph>
									<Value select="string(.)"/>
								</Paragraph>
							</Td>
						</ForAll>
					</Tr>
				</ForAll>
			</Table>
		</PlaceObject>
	</Record>
</Layout>

Output:
image

Expected Output (done in Excel):
image

@pgundlach
Copy link
Member Author

Both rowspan issues will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant