Optional section title

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@310 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2006-05-16 13:29:02 +00:00
parent 4b8b8f7a4c
commit 3f8cf66bf9
2 changed files with 13 additions and 11 deletions

View File

@ -69,7 +69,7 @@
</title-page--> </title-page-->
<title-page> <title-page>
<section title='Fahrplan'> <section>
<pull-schedule-table file='../../../www/datenspuren/fahrplan/days.de.html'/> <pull-schedule-table file='../../../www/datenspuren/fahrplan/days.de.html'/>
</section> </section>
</title-page> </title-page>

View File

@ -133,17 +133,19 @@
<!-- For guide.xml --> <!-- For guide.xml -->
<xsl:template match='guide:section'> <xsl:template match='guide:section'>
<fo:block padding='5mm 5mm'> <xsl:if test='@title'>
<fo:block font-size='18pt' font-weight='bold' font-family='serif' text-align='center' <fo:block padding='5mm 5mm'>
border-top-style='solid' border-bottom-style='solid' <fo:block font-size='18pt' font-weight='bold' font-family='serif' text-align='center'
border-top-color='black' border-bottom-color='black' border-top-style='solid' border-bottom-style='solid'
border-top-width='0.3mm' border-bottom-width='0.3mm' border-top-color='black' border-bottom-color='black'
padding='3mm 5mm 2mm' margin='0mm -0.5mm' border-top-width='0.3mm' border-bottom-width='0.3mm'
keep-together.within-column="always" keep-with-next.within-column="always" padding='3mm 5mm 2mm' margin='0mm -0.5mm'
id="{generate-id()}"> keep-together.within-column="always" keep-with-next.within-column="always"
<xsl:value-of select='@title'/> id="{generate-id()}">
<xsl:value-of select='@title'/>
</fo:block>
</fo:block> </fo:block>
</fo:block> </xsl:if>
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:template> </xsl:template>