Skip to content

conditional content #380

Answered by pgundlach
pr-apes asked this question in Q&A
Jul 1, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can use something like this:

<Layout xmlns="urn:speedata.de:2009/publisher/en" xmlns:sd="urn:speedata:2009/publisher/functions/en">
	<Record element="data">
		<Switch>
			<Case test="not(string(.) = '')">
				<PlaceObject>
					<Textblock>
						<Paragraph>
							<Value select="." />
						</Paragraph>
					</Textblock>
				</PlaceObject>
			</Case>
		</Switch>
	</Record>
</Layout>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pr-apes
Comment options

Answer selected by pr-apes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants