- From: Victor Vishnyakov <tch_@mail.ru>
- Date: Tue, 4 Nov 2003 15:52:17 +0200
- To: "'karthikeyan.balasubramanian'" <karthikeyan.balasubramanian@aspiresys.com>, <www-xsl-fo@w3.org>
Hi, > > I want to loop through set of nodes and display it in > header section. > > say i have 5 data > ========== > data1 > data2 > data3 > data4 > data5 > > If i have 5 page i want to display "data1" in first page > data2 in second page likewise. > Read the spec for: 6.4.9 fo:repeatable-page-master-reference > if i put a for loop for > > <fo:static-content flow-name="xsl-region-before" border> > > i get only the last record "data5" > > any suggestions here? > > Have a great day. > > Karthikeyan B > FO Sample: <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master page-width="1cm" page-height="3cm" master-name="1stP"> <fo:region-body region-name="xsl-region-body" margin-top="1cm"/> <fo:region-before region-name="1stBe" extent="1cm"/> </fo:simple-page-master> <fo:simple-page-master page-width="2cm" page-height="3cm" master-name="2ndP"> <fo:region-body region-name="xsl-region-body" margin-top="1cm"/> <fo:region-before region-name="2ndBe" extent="1cm"/> </fo:simple-page-master> <fo:simple-page-master page-width="3cm" page-height="3cm" master-name="3rdP"> <fo:region-body region-name="xsl-region-body" margin-top="1cm"/> <fo:region-before region-name="3rdBe" extent="1cm"/> </fo:simple-page-master> <fo:simple-page-master page-width="4cm" page-height="3cm" master-name="4thP"> <fo:region-body region-name="xsl-region-body" margin-top="1cm"/> <fo:region-before region-name="4thBe" extent="1cm"/> </fo:simple-page-master> <fo:simple-page-master page-width="5cm" page-height="3cm" master-name="5thP"> <fo:region-body region-name="xsl-region-body" margin-top="1cm"/> <fo:region-before region-name="5thBe" extent="1cm"/> </fo:simple-page-master> <fo:page-sequence-master master-name="first"> <fo:repeatable-page-master-reference maximum-repeats="1" master-reference="1stP"/> <fo:repeatable-page-master-reference maximum-repeats="1" master-reference="2ndP"/> <fo:repeatable-page-master-reference maximum-repeats="1" master-reference="3rdP"/> <fo:repeatable-page-master-reference maximum-repeats="1" master-reference="4thP"/> <fo:repeatable-page-master-reference maximum-repeats="1" master-reference="5thP"/> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="first"> <fo:static-content flow-name="1stBe"> <fo:block>Data 1</fo:block> </fo:static-content> <fo:static-content flow-name="2ndBe"> <fo:block>Data 2</fo:block> </fo:static-content> <fo:static-content flow-name="3rdBe"> <fo:block>Data 3</fo:block> </fo:static-content> <fo:static-content flow-name="4thBe"> <fo:block>Data 4</fo:block> </fo:static-content> <fo:static-content flow-name="5thBe"> <fo:block>Data 5</fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block>Xml2PDF.NET is the Microsoft .NET Framework based engine for converting various XML data styled using XSL Formatting Objects to Adobe PDF. Developed in pure managed C# it brings you full power of Microsoft .NET environment. The wide selection of licenses allows you to find the best solution covering your needs. Xml2PDF.NET is the Microsoft .NET Framework based engine for converting various XML data styled using XSL Formatting Objects to Adobe PDF. Developed in pure managed C# it brings you full power of Microsoft .NET environment. The wide selection of licenses allows you to find the best solution covering your needs. Xml2PDF.NET is the Microsoft .NET Framework based engine for converting various XML data styled using XSL Formatting Objects to Adobe PDF. Developed in pure managed C# it brings you full power of Microsoft .NET environment. The wide selection of licenses allows you to find the best solution covering your needs.</fo:block> </fo:flow> </fo:page-sequence> </fo:root> Regards, Victor Vishnyakov
Received on Tuesday, 4 November 2003 08:48:38 UTC