← Prev in month
← Prev in thread
Next in thread →
Next in month →
Antwort: RE: [docbook-apps] call a template for region-start
Hello Mauritz, thank you! That was the problem and now I understand the syntax from the call-template. I solve the second problem with the content in the region-start in this way. In the <xsl:template match="*" mode="running.head.mode"> - section I create a new static-content and call my template. pagesetup.xsl: <fo:static-content flow-name="xsl-region-start-even"> <fo:block><xsl:call-template name="book.titlepage.region-start"/></fo:block> </fo:static-content> And the template in the fopdf.xsl: <xsl:template name="book.titlepage.region-start"> <fo:block-container flow-name="xsl-region-start-even"> ... content ... </fo:block-container> </xsl:template> Thanks! Holger "Mauritz Jeanson" <> schrieb am 22.09.2008 19:45:58: > > -----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 > >
← Prev in month
← Prev in thread
Next in thread →
Next in month →