By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,054 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,054 IT Pros & Developers. It's quick & easy.

How to use if condition with <fo:page-number /> in XSLT

P: 1
I am trying to use below code but it is not working, please suggest me the answer. thanks

Expand|Select|Wrap|Line Numbers
  1. <xsl:variable name="vPageNumber"><fo:page-number /></xsl:variable>
  2.  
  3.     <xsl:if test="$vPageNumber=1">
  4.     <!-- <xsl:if test="$vPageNumber > 1"> -->        
  5.         <fo:static-content flow-name="Header">    
  6.             <fo:block font="{$fontTypeName}">
  7.                 <xsl:apply-templates select="HeaderDetails"/>
  8.             </fo:block>    
  9.         </fo:static-content>
  10.     </xsl:if>
3 Weeks Ago #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.