xslt - Running footer not visible on first page -


i using below xslt generate report running footer, first page of ther report doesn't have running footer, please advice needs changed

<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform"                 xmlns:fo="http://www.w3.org/1999/xsl/format"                 xmlns:msxsl="urn:schemas-microsoft-com:xslt"                 xmlns:user="urn:my-scripts">   <xsl:template match="/" >     <fo:root xmlns:fo="http://www.w3.org/1999/xsl/format">       <!-- defines layout master -->       <fo:layout-master-set >         <fo:simple-page-master master-name="first"         page-height="290mm" page-width="210mm" margin-top="0mm" margin-bottom="10mm" margin-left="20mm" margin-right="0mm">           <fo:region-body margin-top="15mm" margin-bottom="15mm"/>           <fo:region-after extent="10mm" region-name="footer-normal"></fo:region-after>         </fo:simple-page-master>       </fo:layout-master-set>       <fo:page-sequence master-reference="first">         <fo:static-content flow-name="footer-normal">           <fo:block text-align="center" font-size="7pt" font-style="italic" font-family="sans-serif">                <fo:retrieve-marker retrieve-class-name="chapter"/>               page <fo:page-number/> of               <fo:page-number-citation ref-id="last-page"/>             </fo:block>         </fo:static-content>         <fo:flow flow-name="xsl-region-body">           <xsl:for-each select="arrayofroomreportbe/roomreportbe" >             <xsl:variable name="roomno_node" select=".//roomnumber"/>             <fo:marker marker-class-name="chapter" font-size="7pt" font-style="italic"                             font-family="sans-serif">               <xsl:value-of select="$roomno_node"/>             </fo:marker>             <!-- dispaly datat -->             </xsl:for-each>           <fo:block id="last-page"/>         </fo:flow>       </fo:page-sequence>     </fo:root>   </xsl:template> </xsl:stylesheet> 

input document used follows

<arrayofroomreportbe xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema">   <roomreportbe>     <id>0</id>     <roomnumber>testcap1</roomnumber>     <roomname>testcap1</roomname>     <comment>testing bit</comment>     <generalaspect>       <generalattributetitle>         <referencelink>reference link</referencelink>         <notes>general notes</notes>         <generalheader>general</generalheader>         <maxco2>max co2</maxco2>         <dimensionheader>dimension</dimensionheader>         <netareatitle>net area</netareatitle>         <climateheader>climate</climateheader>         <mintemptitle>min temperature</mintemptitle>         <maxtemptitle>max temperature </maxtemptitle>         <openhourstitle>open hours</openhourstitle>         <nonopenhourstitle>non open hours</nonopenhourstitle>         <acousticsheader>acoustics</acousticsheader>         <maxinstallationnoisetitle>max installation noise</maxinstallationnoisetitle>         <soundinsulationtitle>sound insulation</soundinsulationtitle>         <workplacesoccupancyheader>occupancy/workplaces</workplacesoccupancyheader>         <occupancytitle>occupancy</occupancytitle>         <noofworkspacetitle>number of workplaces</noofworkspacetitle>         <typeofworkspacetitle>type of workplaces</typeofworkspacetitle>       </generalattributetitle>       <aspectattributeitems>         <generalattributeitembe>           <generalnoofworkplaces />           <generaldimensionnetarea>12</generaldimensionnetarea>           <generalclimatemintempopen>-19°c</generalclimatemintempopen>           <generalclimatemintempnonopen>-15°c</generalclimatemintempnonopen>           <generalclimatemaxtempopen>-6°c</generalclimatemaxtempopen>           <generalclimatemaxtempnonopen>-11°c</generalclimatemaxtempnonopen>           <notes />           <referencelink />         </generalattributeitembe>       </aspectattributeitems>     </generalaspect>     <flooraspect>       <floorattributetitle>         <description>description</description>         <referencelink>reference link</referencelink>         <notes>general notes</notes>         <floorfinishtitle>floor finish</floorfinishtitle>         <floorheader>floor</floorheader>         <floorsubstracttitle>floor substrate</floorsubstracttitle>         <floorcolortitle>floor colour</floorcolortitle>         <floorskirtingtitle>skirting</floorskirtingtitle>       </floorattributetitle>       <aspectattributeitems>         <floorattributeitembe>           <description />           <notes />           <referencelink />         </floorattributeitembe>         <floorattributeitembe>           <floorsubstract>block pavement</floorsubstract>           <floorcolor>medium grey</floorcolor>           <floorskirting>n/a</floorskirting>           <floorfinish>ceramic tiles textured</floorfinish>           <description>test</description>           <notes />           <referencelink />         </floorattributeitembe>       </aspectattributeitems>     </flooraspect>     <wallaspect>       <wallattributetitle>         <description>description</description>         <referencelink>reference link</referencelink>         <notes>general notes</notes>         <wallheader>wall</wallheader>         <wallnametitle>wall</wallnametitle>         <wallfinishtitle>wall finish</wallfinishtitle>         <wallcolortitle>wall colour</wallcolortitle>       </wallattributetitle>       <aspectattributeitems>         <wallattributeitembe>           <wallname>facade</wallname>           <wallfinish>special</wallfinish>           <wallcolor>testvalue</wallcolor>           <description>test</description>           <notes />           <referencelink>test</referencelink>         </wallattributeitembe>       </aspectattributeitems>     </wallaspect>     <ceilingaspect>       <ceilingattributetitle>         <referencelink>reference link</referencelink>         <notes>general notes</notes>         <acousticstitle>acoustics</acousticstitle>         <ceilinginsertstitle>inserts</ceilinginsertstitle>         <ceilingheighttitle>ceiling height</ceilingheighttitle>         <ceilingheader>ceiling</ceilingheader>         <ceilingsuspendedtitle>suspended ceiling</ceilingsuspendedtitle>         <ceilingroomacousticstitle>room acoustics</ceilingroomacousticstitle>         <ceilingcoveragetitle>coverage</ceilingcoveragetitle>         <ceilingtypetitle>type</ceilingtypetitle>         <ceilingotherstitle>other</ceilingotherstitle>       </ceilingattributetitle>       <aspectattributeitems>         <ceilingattributeitembe>           <notes />           <referencelink />         </ceilingattributeitembe>       </aspectattributeitems>     </ceilingaspect>     <equipmentaspect>       <equipmentattributetitle>         <referencelink>reference link</referencelink>         <notes>general notes</notes>         <equipmentheader>equipment</equipmentheader>         <equipmentnametitle>equipment</equipmentnametitle>         <equipmentquantitytitle>quantity</equipmentquantitytitle>         <equipmentconnectionstitle>connections</equipmentconnectionstitle>         <description>description</description>       </equipmentattributetitle>       <aspectattributeitems>         <equipmentattributeitembe>           <equipmentname>-</equipmentname>           <equipmentquantity>100</equipmentquantity>           <equipmentconnections>220v</equipmentconnections>           <description>test2</description>           <notes />           <referencelink />         </equipmentattributeitembe>       </aspectattributeitems>     </equipmentaspect>   </roomreportbe>   <roomreportbe>   </roomreportbe> </arrayofroomreportbe> 

please change 2 things: first, <fo:region-after extent="10mm" region-name="footer-normal"> <fo:region-after extent="10mm">. , second, change <fo:static-content flow-name="footer-normal"> <fo:static-content flow-name="xsl-region-after">.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -