[ERROR] region-name doesn't exist in the layout-master-set
bonjour à tous !!
Voilà mon problème d'aujourd'hui :
J'ai le code suivant, car je veux faire une en-tête différente pour la première pages et les suivantes auront la même :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<fo:layout-master-set>
<fo:simple-page-master master-name="first"
page-height="29.7cm"
page-width="21cm"
margin-top="0.5cm"
margin-bottom="0.5cm"
margin-left="0.5cm"
margin-right="0.5cm">
<fo:region-before extent="6cm" master-name="first-entete"/>
<fo:region-body margin-top="6cm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="rest"
page-height="29.7cm"
page-width="21cm"
margin-top="0.5cm"
margin-bottom="0.5cm"
margin-left="0.5cm"
margin-right="0.5cm">
<fo:region-before extent="6cm" master-name="rest-entete"/>
<fo:region-body margin-top="6cm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="fiche-suiveuse">
<fo:repeatable-page-master-reference master-reference="first"
maximum-repeats="1"/>
<fo:repeatable-page-master-reference master-reference="rest"
maximum-repeats="no-limit"/>
</fo:page-sequence-master>
</fo:layout-master-set>
<!--
*************************************************
* génération du contenu des pages *
*************************************************
-->
<fo:page-sequence master-reference="fiche-suiveuse">
<fo:static-content flow-name="first-entete">
<xsl:call-template name="entete"/>
</fo:static-content>
<fo:static-content flow-name="rest-entete">
<xsl:call-template name="entete"/>
</fo:static-content>
<fo:flow flow-name="xsl-region-body"> .... |
Mais il m'affiche les deux erreurs suivantes :
Citation:
[ERROR] region-name 'first-entete' doesn't exist in the layout-master-set.
[ERROR] region-name 'rest-entete' doesn't exist in the layout-master-set.
Je ne trouve pas d'infos sur cette erreur...Ca me fait un peu peur j'ai l'impression que c une erreur de FOP.....
Qqn peut-il m'aider ?? :idea:
Merci d'avance.