Open pgundlach opened 2 months ago
<Layout xmlns="urn:speedata.de:2009/publisher/en" xmlns:sd="urn:speedata:2009/publisher/functions/en"> <Pageformat height="6cm" width="7cm"></Pageformat> <Record element="data"> <SetVariable variable="myvar"> <Element name="Foo"> <Attribute name="attr" select="'foo1'"/> </Element> <Element name="Bar"> <Attribute name="attr" select="'bar1'"/> </Element> </SetVariable> <SetVariable variable="myvar2"> <Copy-of select="$myvar/*,$myvar/*" /> <Element name="Foo"> <Attribute name="attr" select="'foo2'"/> </Element> </SetVariable> <ForAll select="$myvar2/Foo"> <Message select="@attr"></Message> </ForAll> </Record> </Layout>
gives
· Message: foo1 (line=23,page=1) · Message: foo1 (line=23,page=1) · Message: foo1 (line=23,page=1) · Message: foo2 (line=23,page=1)
(one foo1 too many)
gives
(one foo1 too many)