xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Sancho" <pascal.san...@takoma.fr>
Subject RE: Pyjama stripes - for each 5 rows
Date Tue, 07 Sep 2004 07:11:04 GMT
Hi,
You can use a pattern like this:
(position() div 5) mod 2
When the result is 0, apply background color #1,
When the result is 1, apply background color #2.

If you need to know an ancestor element position, you may  replace position() with count(ancestor::ref_element/preceding-sibling::ref_element)
-- this gives same result as position() - 1

But this looks like an XSLT problem. Ask on the XSL list for better code:
  http://www.mulberrytech.com/xsl/xsl-list  

-----Message d'origine-----
De : Avula, Srini [mailto:SAvula@aqa.org.uk] 
Envoyé : lundi 6 septembre 2004 13:59
À : fop-user@xml.apache.org
Objet : Pyjama stripes - for each 5 rows

Hi

I have long list of students to display for each centre. I would like to change background
colour of each 5th row or space between 5 and 6th rows.

any ideas how can I do it.

Much appreciate your help.

Kind Regards
Srini

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message