On Mar 18, 2007, at 02:31, brycenesbitt wrote:

Hi,

Can anyone help with this? I'm trying to print an address element only on
the first page of a document:
<snip />
The page number prints correctly, but the xsl:if is always false.

Yes, because the processing actually is performed in two stages: XSLT + FO. The xsl:if gets resolved by the XSLT processor and your source XML does not contain a fo:page-number element, hence why the test is false. Even if it could see that fo:page-number element /in/ the stylesheet, it doesn't know yet what value the FO processor will assign to it.

I've tried a lot of googling, but even seemingly on-point posts such as
http://www.dpawson.co.uk/xsl/sect3/N8703.html

Hmm, that last one is very dubious to say the least...

What you need is roughly described here:
http://xmlgraphics.apache.org/fop/fo.html#fo-first-page


HTH!

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to