fo:retrieve-marker conditional behavior

Hi all,

 

I'm trying to display header (chapter title name on right top corner) at
every page

Except at the first one, where already has a beautiful chapter title and
some content.

 

The code for marker is something like

 

define function display-page-header($element) {

    let $chapter-id := data($element/@id)

    return

        <fo:block>

            <fo:retrieve-marker retrieve-class-name={$chapter-id}

                                retrieve-boundary="page-sequence"

                                retrieve-position=" whatever" />  (: maybe
skipped :)

        </fo:block>

}

 

The values of retrieve-position attribute (firsr, last,..) have effect only
at

Order in which different markers are processed.

 

 

and

 

define function construct-page-header($element) {

    let $chapter-id := data($element/@id)

    return

        <fo:block>

            <fo:marker marker-class-name={$chapter-id}>

                <fo:block Some-decorations> 

                    {fn:data($element/title)}

                </fo:block>

            </fo:marker>

        </fo:block>

}

 

So, on first page I have 2 chapter titles - one big, and another small as a
header.

 

One approach I figured out is to put a code like this

 If ("on-page -with-big-title") then

            attribute {'color'} {'white'}

else 

            attribute {''color} {'black'}

 

in construct-page-header(), but how to implement "on-page -with-big-title"
check ?

 

Any other suggestions how  to simulate such a conditional behavior ?

 

Thanks in advance.

Received on Wednesday, 25 July 2007 10:03:05 UTC