Skip to content

How to "easily" populate tables? 🙏 #497

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

You must be logged in to vote

The second layout first: There is an error in the logic:

    <SetVariable variable="cell">
        <Copy-of select="$cell" />
        <Paragraph>
            <Value select="@title" />
        </Paragraph>
        <ForAll select="item">
            <Paragraph>
                <Value select="." />
            </Paragraph>
        </ForAll>
    </SetVariable>

is on the top level (not within a <Record ...> element). Therefore the @title and <ForAll select="item" > has no "context", there is no current node in the data, so this will fail. You have to place this <SetVariable> somewhere where there is a context node, for example in <Record element="animals" >, but this will give you another prob…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Cicorione
Comment options

Answer selected by Cicorione
Comment options

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

@pgundlach
Comment options

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