-
I would like to use conditional content, based on the value of certain elements (which would be imported from CSV [but this is a different issue]). Given <data>one</data> How could I write a conditional in <Output>
<Text>
<Paragraph>
<Value>This is one paragraph.</Value>
</Paragraph>
</Text>
</Output> Many thanks for your help. |
Beta Was this translation helpful? Give feedback.
Answered by
pgundlach
Jul 1, 2022
Replies: 1 comment 1 reply
-
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> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pr-apes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use something like this: