Skip to content

$_lastpage must not take final <newpage> into account #299

@pgundlach

Description

@pgundlach
<Layout xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">
    <Pageformat height="5cm" width="4cm" />
    <Record element="data">
        <PlaceObject>
            <Textblock>
                <Paragraph>
                    <Value select="$_lastpage"></Value>
                </Paragraph>
            </Textblock>
        </PlaceObject>
        <NewPage />
    </Record>
</Layout>

should (--runs 2) report 1 and not 2.

Version 4.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions