Hi, Can you provide an .fo file generated from this stylesheet that demonstrated the problem, please. If you are unsure how to do the transform just send some input xml. From there we can then run FOP and take a closer look.
Thanks, Pete On Wed, Apr 20, 2011 at 4:05 PM, srmxslca <[email protected]> wrote: > > Hi , > > I am new new ot xsl:fo , when i generate a PDF using xsl:fo it is giving > initial page as blank if number of pages are more than 1, if total number of > pages = 1 in that case it is not giving blank pages. > > And the code for xsl:fo is as follows: > > > <?xml version="1.0" encoding="ISO-8859-1"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format"> > > > <xsl:template match="/candidates"> > > > <fo:root> > > <fo:layout-master-set> > <fo:simple-page-master master-name="my-page" page-width="8in" > page-height="11.5in"> > <fo:region-body margin-top="0.60in" margin-bottom="0.40in" > margin-left="0.20in" margin-right="0.20in" /> > </fo:simple-page-master> > </fo:layout-master-set> > > <fo:page-sequence master-reference="my-page"> > > <fo:flow flow-name="xsl-region-body"> > <fo:block> > <fo:table text-align="center" border-spacing="3pt"> > > <fo:table-column column-number="1" /> > <fo:table-column column-number="2" /> > > > <fo:table-header> > <fo:table-row> > <fo:table-cell number-columns-spanned="2"> > </fo:table-cell> > </fo:table-row> > </fo:table-header> > > <fo:table-body> > > > <xsl:apply-templates > select="report-bO/candidate-ro-details"/> > > </fo:table-body> > > </fo:table> > </fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > </xsl:template> > > > <xsl:template match="report-bO/candidate-ro-details"> > > <fo:table-row> > > <fo:table-cell height="3.5cm" overflow="hidden" > number-rows-spanned="2" > number-columns-spanned="1"> > <fo:block> > <fo:block text-align="left" > margin-left="40pt" font-size="8pt" > white-space-collapse="false" white-space-treatment="preserve"><xsl:value-of > select="attendancenumber"/></fo:block> > <fo:block text-align="left" > margin-left="40pt" font-size="8pt" > white-space-collapse="false" white-space-treatment="preserve"><xsl:value-of > select="roname"/></fo:block> > <fo:block text-align="left" > margin-left="40pt" font-size="8pt" >><xsl:value-of select="contactname"/></fo:block> > <fo:block text-align="left" > margin-left="40pt" font-size="8pt" >><xsl:value-of select="filecasenumber"/></fo:block> > <fo:block text-align="left" > margin-left="40pt" font-size="8pt" >><xsl:value-of select="addressline1"/></fo:block> > <fo:block text-align="left" > margin-left="40pt" font-size="8pt" >><xsl:value-of select="addressline2"/></fo:block> > <fo:block text-align="left" > margin-left="40pt" font-size="8pt" >><xsl:value-of select="addressline3"/> > <xsl:choose> > <xsl:when > test="(string-length(addressline4)>0)"> > , <xsl:value-of > select="addressline4"/> > </xsl:when> > <xsl:otherwise> > <fo:leader/> > </xsl:otherwise> > </xsl:choose> > > </fo:block> > <fo:block text-align="left" margin-left="40pt" > font-size="8pt"><xsl:value-of select="addressline5"/> > <xsl:choose> > <xsl:when > test="(string-length(addressline6)>0)"> > , <xsl:value-of > select="addressline6"/> > </xsl:when> > <xsl:otherwise> > <fo:leader/> > </xsl:otherwise> > </xsl:choose> > > </fo:block> > > </fo:block> > </fo:table-cell> > > > </fo:table-row> > </xsl:template> > </xsl:stylesheet> > > -- > View this message in context: > http://old.nabble.com/PDF-giving-first-page-as-blank-tp31441979p31441979.html > Sent from the FOP - Dev mailing list archive at Nabble.com. > >
