Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


using in

From: tldisbro@---------.---
To: NULL
Date: 12/2/2005 10:55:00 AM
Hello All,
  I am trying to use the returned value of the <fo:page-number>
element/function in my <xsl:if> test condition.  But am unsuccessful in
doing so.  Is it possible to use it in this fashion with a conversion
or correct syntax?  I would like to test the current page number and
see if it is even or odd - and if it is odd I would like to perform
additional steps.  I would like to do something like this (assume all
namespaces are set):

<xsl:if test="<fo:page-number/>%2">
<xsl:text> Page </xsl:text> <fo:page-number/>
</xsl:test>

  But of coarse the test condition does not want to deal with an
fo:function return value and I just want to do a Modulo of 2 to
determine if it is even or not.

  Any help would be appreciated



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent