OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: get the total page of a document


Hi,

I want to have the total page of a document but this message was shown: "Unresolved id reference "last-page" found." I couldnt find  the way how to get first the last page. It would be nice if someone can help me to solve this problem?

My code is like that:
<fo:block>   
          <xsl:choose>
           
                <xsl:when test="$double.sided = 0 and $position ='right'">
                               <fo:page-number/>
                     <xsl:text> / </xsl:text>
                                 <fo:page-number-citation ref-id="last-page"/>
                                                           
                </xsl:when>       
............................................................
<xsl:template match="book/index|part/index">
         
       <fo:flow>
                  <xsl:variable name="id">
                           <xsl:call-template name="object.id"/>
                     </xsl:variable>
                       <fo:block id="{$id}">
                         <xsl:imports-templates/>
                           </fo:block>
                                                       
                 <fo:page-sequence>
                
                    <xsl:if test="$id='last()'">
                   
                         <fo:block id="last-page"/>
                         
                      </xsl:if>

I use fop v 0.95

           My regards!

         Solofo



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]