speedata / publisher

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

sd:variable() returns table of table #623

Closed pgundlach closed 1 month ago

pgundlach commented 1 month ago
<Layout xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">
    <SetVariable variable="foo1">
        <Element name="foo" />
        <Element name="foo" />
        <Element name="foo" />
    </SetVariable>
    <Record element="data">
        <PlaceObject>
            <Textblock>
                <Paragraph>
                    <Value select="count(sd:variable('foo',1)/foo)"></Value>
                </Paragraph>
            </Textblock>
        </PlaceObject>
    </Record>
</Layout>

should return 3 instead of 0.