OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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


> -----Original Message-----
> From: H.Ruediger@data-team.de 
> 
> 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




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]