473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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>
Sep 26 '19 #1
0 3649

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

Similar topics

5
by: john | last post by:
Hi I am devlopeing a data centric intranetsite with data in mysql database I would like your opinion on this architecture Data will be fetched from database by python & converted into xml The...
2
by: ted | last post by:
Was wondering if XSLT alone is appropriate for the following situation. From XML, I'm creating a small website (around 50 pages) with pages that link to each other through a nav menu and a...
2
by: Peter David | last post by:
Hi all, 1) I have created a huge XML "data base" consisting of people with <name>Charlie</name> <address>High street></address> etc. I wanna use this xml-data base for various HTM-pages for me...
1
by: omegaman | last post by:
I'm using xalan and xslt to transform an xml document into a pdf document. When I transform xml that has chinese characters in it and output to pdf the pdf file contains # characters every place...
4
by: Magus | last post by:
Hi. I'm trying to execute a simple <xsl:if>-clause with a condition that reads: a<1 In MSXML 4 the clause <xsl:if test="a &lt; 1">do something...</xsl:if> works fine. But in .Net Xml it just...
5
by: bram.labarque | last post by:
Hello all, The parsing should happen at the browser. I have three files: 1) Initial file: xml with some data and a pointer to an xsl. <?xml version="1.0" encoding="ISO-8859-1"?>...
0
by: elsheh | last post by:
Hi….. Everyone I’m using xslt to convert my XML doc. into xhtml. When I use IE or Mozilla browsers to display xhtml doc., the result is fine. However, using X_Smiles result in <br> loses its...
4
by: raghunandanbasf | last post by:
Hi friends, I am new to the xslt when i am doing ,I have struck in middle. Q.As per example:we are having the xml structure like this <a> <b>-----</b> <c>-----</c> <d>-----</d> </a>
4
by: mark4asp | last post by:
I have an element, report which contains tags which have been transformed. E.g. <pis &lt;p&gt <myXml> <report>This text has html tags in it.&lt;p&gt which but <has been changed to &lt;&gt</report>...
2
by: njsimha | last post by:
Hi, I have a query regarding the selection of a particular tag based on a condition. In the following XML code: <root> <template1> <elem1>1000</elem1> <elem2>
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.