-
Hi, I am trying to understand this amazing software but I am struggling a lot because my background comes from a Graphic DTP experience. Reading the manual and checking the example unfortunately is complicated cause there is not a pattern that I can recognize. Starting very basic, and honestly that was a great personal achievement:
Now if I'd like to add a title in the next iteration I fail miserably,
With the latter changes is printed only the title and the item list are ignored. It is clear that something is wrong, unfortunately it is not that much clear for me. Can you help understand my errors and perhaps explain a little bit further... Thanks... 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thank you very much for the discussion, this helps me to understand where the manual is lacking. I try to improve. Now for your question. The key to understand the problem is the “focus” of the data processing. There is always a "current element" in the data xml file, which can change when using the Let my try to explain the first layout, which works, but not as you might think: <Layout
xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Record element="data">
<PlaceObject>
<Textblock>
<Paragraph>
<Value select="animals" />
</Paragraph>
</Textblock>
</PlaceObject>
</Record>
</Layout> When the layout processing starts at <animals title="Animals">
<item>Dogs</item>
<item>Cats</item>
<item>Birds</item>
</animals> The string value (which is what the So the output is
which includes the newlines you get by selecting the animals element. Now for the second layout: <Layout
xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Record element="data">
<ForAll select="animals">
<PlaceObject>
<Textblock>
<Paragraph>
<Value select="@title" />
</Paragraph>
<Paragraph>
<Value select="animals" />
</Paragraph>
</Textblock>
</PlaceObject>
</ForAll>
</Record>
</Layout> in line 5 the current element is the root element Now that you are at the Since I don't know what you really want to achieve, I can just guess what you should do: <Layout
xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Record element="data">
<ProcessNode select="animals" />
</Record>
<Record element="animals">
<PlaceObject>
<Textblock>
<Paragraph>
<Value select="@title" />
</Paragraph>
<ForAll select="item">
<Paragraph>
<Value select="." />
</Paragraph>
</ForAll>
</Textblock>
</PlaceObject>
</Record>
</Layout> This would instruct the speedata Publisher to go to the |
Beta Was this translation helpful? Give feedback.
Thank you very much for the discussion, this helps me to understand where the manual is lacking. I try to improve.
Now for your question. The key to understand the problem is the “focus” of the data processing. There is always a "current element" in the data xml file, which can change when using the
<ProcessNode>
or the<ForAll>
command.Let my try to explain the first layout, which works, but not as you might think: