Hello,
you just need to make a test and set the color according to the chapter
cardinality, something like:
xsl:attribute-set name=header.table.properties
xsl:attribute name=background-color
xsl:choose
xsl:when test=preceding-sibling::chaptergreen/xsl:when
xsl:otherwisered/xsl:otherwise
/xsl:choose
/xsl:attribute
/xsl:attribute-set
Camille.
Lily Galle wrote:
Dear all,
I produce one book with “DocBook” and “XSL”.
There is one header on each page.
In Chapter 1 the “header.table” has “background-color” red. In chapter two it should have “background-color” green. (“header.table” in different chapter should have different background-color.)
I write the following code in “myStylesheet.xsl”.
xsl:attribute-set name=header.table.properties
xsl:attribute name=background-colorred/xsl:attribute
/xsl:attribute-set
But how can I get “green” for chapter two?
I copied the template “header.table” in my customized stylesheet. But I do not know how to customize it.
Thanks for any help!
Lily
begin:vcard
fn;quoted-printable:Camille B=C3=A9gnis
n;quoted-printable:B=C3=A9gnis;Camille
org:NeoDoc
adr:;;139 rue Philippe de Girard;Pertuis;;84120;France
email;internet:[EMAIL PROTECTED]
tel;work:+33.9.54.96.99.55
tel;fax:+33.9.59.96.99.55
tel;cell:+33.6.33.15.10.23
url:http://www.neodoc.biz
version:2.1
end:vcard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]