Skip to content

Help to understand data.xml and layout.xml #490

Answered by pgundlach
Cicorione asked this question in Q&A
Discussion options

You must be logged in to vote

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:

<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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Cicorione
Comment options

@pgundlach
Comment options

@Cicorione
Comment options

Answer selected by Cicorione
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