[#7168] Work in progress

This commit is contained in:
lukaseder 2019-03-26 15:53:48 +01:00
parent b19d8ef9b6
commit 859a8da297
3 changed files with 42 additions and 0 deletions

View File

@ -86,6 +86,18 @@
<xsl:value-of select="@id"/>
</xsl:template>
<xsl:template match="tabs" mode="content">
<xsl:apply-templates select="tab" mode="content"/>
</xsl:template>
<xsl:template match="tab">
<p>
<strong><xsl:value-of select="@title"/></strong>
</p>
<xsl:apply-templates select="node()" mode="content"/>
</xsl:template>
<xsl:template match="grammar" mode="content">
<p>
The grammar is currently not supported in the EPUB version of the manual. Please visit the HTML documentation to see the grammar.

View File

@ -92,6 +92,20 @@
</div>
</xsl:template>
<xsl:template match="tabs" mode="content">
<xsl:apply-templates select="tab" mode="content"/>
</xsl:template>
<xsl:template match="tab" mode="content">
<div class="row col col-100 col-white">
<p>
<strong><xsl:value-of select="@title"/></strong>
</p>
<xsl:apply-templates select="node()" mode="content"/>
</div>
</xsl:template>
<xsl:template match="grammar" mode="content">
<xsl:apply-templates match="rule" mode="grammar-content"/>
</xsl:template>

View File

@ -317,6 +317,22 @@
<xsl:apply-templates select="@*|node()" mode="content"/>
</xsl:template>
<xsl:template match="tabs" mode="content">
<xsl:apply-templates select="@*|node()" mode="content"/>
</xsl:template>
<xsl:template match="tab" mode="content">
<fo:block xsl:use-attribute-sets="div">
<fo:block xsl:use-attribute-sets="p">
<fo:inline xsl:use-attribute-sets="strong">
<xsl:value-of select="@title"/>
</fo:inline>
</fo:block>
<xsl:apply-templates select="node()" mode="content"/>
</fo:block>
</xsl:template>
<xsl:template match="div" mode="content">
<fo:block xsl:use-attribute-sets="div">
<xsl:apply-templates mode="content"/>