Next in thread → Next in month →

RE: [docbook-apps] call a template for region-start

From
Mauritz Jeanson <>
Date
2008-09-22T17:44:15+00:00
ID
40D50BC6BFCF4635A2BE27A74317585A@D7MZ171J
Thread
RE: [docbook-apps] call a template for region-start
> -----Original Message-----
> From:  
> 
> But now I have the problem to input content. I overwrite the 
> template book.titlepage.verso from DocBook. At this page I 
> try to put on the region-start a xsl:apply-templates with the 
> content match="elem". 
> 
>    <xsl:template name="book.titlepage.verso"> 
>         ... 
>         <xsl:apply-templates select="elem" /> 
>    </xsl:template> 
> 
>   <xsl:template match="elem"> 
>       <fo:page-sequence master-reference="titlepage-even"> 
>          <fo:static-content flow-name="xsl-region-start-even"> 
>             <fo:block>s t a r t</fo:block> 
>          </fo:static-content> 
>       </fo:page-sequence> 
>    </xsl:template> 



Are you perhaps confusing  

 <xsl:apply-templates select="elem"/>

and

 <xsl:call-template name="elem"/> ? 

In that case, he following might be what you really want:

 <xsl:template name="book.titlepage.verso"> 
    ... 
    <xsl:call-templates name="elem"/> 
 </xsl:template> 

 <xsl:template name="elem"> 
    <fo:page-sequence master-reference="titlepage-even"> 
         <fo:static-content flow-name="xsl-region-start-even"> 
            <fo:block>s t a r t</fo:block> 
         </fo:static-content> 
     </fo:page-sequence> 
 </xsl:template> 

(But note that <fo:page-sequence> requires a <fo:flow> child.)
 
Mauritz
Next in thread → Next in month →