← Prev in month ← Prev in thread

call a template for region-start

From
<>
Date
2008-09-22T14:11:21+00:00
ID
Thread
call a template for region-start
Hello! 

I have a problem with the pagesetup.xsl and the region-start and region-end
position. The standard DocBook pagesetup.xsl haven’t this to parts. So
I input this under the region-after. Now I have this page similar to this:
http://www2.informatik.hu-berlin.de/~obecker/Lehre/SS2002/XML/images/ViewportsToPage-level.gif

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> 

The design of the page: 

<fo:simple-page-master master-name="titlepage-even" 

                     
     page-width="{$page.width}" 

                     
     page-height="{$page.height}" 

                     
     margin-top="{$page.margin.top}" 

                     
     margin-bottom="{$page.margin.bottom}">

      <fo:region-body margin-bottom="{$body.margin.bottom}"

       background-color="gray" 

                     
margin-top="{$body.margin.top}" 

                     
column-count="{$column.count.titlepage}" 

                     
margin-right="{$page.margin.inner}" 

                     
margin-left="{$page.margin.outer}"> 

      </fo:region-body> 

      <fo:region-before region-name="xsl-region-before-even"

      background-color="red" 

                     
  extent="{$region.before.extent}" 

                     
  display-align="before"/> 

      <fo:region-after region-name="xsl-region-after-even"

        background-color="green" 

                     
 extent="{$region.after.extent}" 

                     
  display-align="after"/> 

      <fo:region-start region-name="xsl-region-start-even"

        background-color="yellow" 

        extent="18mm" 

                     
 margin-right="5mm" /> 

      <fo:region-end region-name="xsl-region-end-even"

      background-color="blue" 

                     extent="18mm"

                     margin-right="5mm"
/> 

    </fo:simple-page-master> 

After a lot of hours I don’t find a way to get it work. How is it possible
to call the template “elem”? 

Holger
← Prev in month ← Prev in thread