Skip to content

Headers and Footers β€” and general confusion... πŸ™ #507

Answered by pgundlach
Cicorione asked this question in Q&A
Discussion options

You must be logged in to vote

Just a first small part of the answer, I don't know how much time I have now ;-)

<AtPageCreation>
  <PlaceObject allocate="no" column="12.5mm" row="16mm"  frame="solid" framecolor="green" >

There is a problem here, you cannot access attributes (@head) in the page definition, since there is no "current node" when the page is created (the cursor in the data can be anywhere and @head does not know where it should look for the attribute).

So you have to define a variable and use it in the head:

<Record element="category">
    <SetVariable variable="head" select="@head"/>

and

    <Pagetype name="page" test="true()">
        <Margin left="12.5mm" right="12.5mm" top="25mm" bottom="25mm" …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Cicorione
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Cicorione
Comment options

@pgundlach
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants