Skip to content

How to count images and display the result? #525

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

You must be logged in to vote

I assume your question is similar to this setup:

<data>
    <img name="one" />
    <img name="two" />
    <img name="three" />
</data>

and the layout file:

<Layout xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">

    <Record element="data">
        <ForAll select="img">
            <PlaceObject>
                <Textblock>
                    <Paragraph>
                        <Value select="@name" />
                    </Paragraph>
                </Textblock>
            </PlaceObject>
        </ForAll>
    </Record>
</Layout>

You have two posibilities:

<Record element="data">
    <ForAll select="img">
        <PlaceObject>
            <

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Cicorione
Comment options

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

@Cicorione
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