Skip to content

position() usage? #478

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

You must be logged in to vote

The XPath capabilities in the speedata Publisher are really limited. So I would use in this case:

    <Record element="data">
        <Output>
            <Text>
                <Paragraph>
                    <ForAll select="row">
                        <Switch>
                            <Case test="position() > 1">
                                <ForAll select="cell">
                                    <Switch>
                                        <Case test="position() = 1 ">
                                            <Value select="." />
                                        </Case>
                                    </Switch>
                                </ForAll>
    …

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