speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
300 stars 36 forks source link

visible-pagenumber bug #320

Closed pgundlach closed 3 years ago

pgundlach commented 3 years ago

layout.xml:

version 4.3.6

<Layout xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">
    <Pageformat height="5cm" width="5cm" />
    <SetGrid height="12pt" width="1cm"/>
    <Pagetype name="t" test="true()">
        <AtPageShipout>
            <PlaceObject row="1" column="1">
                <Textblock>
                    <Paragraph>
                        <Value select="sd:visible-pagenumber(sd:current-page())"></Value>
                    </Paragraph>
                </Textblock>
            </PlaceObject>
        </AtPageShipout>
    </Pagetype>

    <Record element="data">
        <SetVariable variable="_matter" select="'frontmatter'"></SetVariable>
        <PlaceObject row="2">
            <Textblock>
                <Paragraph>
                    <Value>text</Value>
                </Paragraph>
            </Textblock>
        </PlaceObject>
        <NewPage />
        <PlaceObject row="2">
            <Textblock>
                <Paragraph>
                    <Value>hello</Value>
                </Paragraph>
            </Textblock>
        </PlaceObject>
    </Record>
</Layout>

results in

visiblepagenumber