|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
XSLT Stylesheet DocBook -> LaTeX
|
|
Packit Service |
76cb02 |
############################################################################ -->
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:param name="figure.note"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="figure.tip"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="figure.important">warning</xsl:param>
|
|
Packit Service |
76cb02 |
<xsl:param name="figure.warning">warning</xsl:param>
|
|
Packit Service |
76cb02 |
<xsl:param name="figure.caution">warning</xsl:param>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="note|important|warning|caution|tip">
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{DBKadmonition}{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:call-template name="admon.graphic"/><xsl:text>}{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="title">
|
|
Packit Service |
76cb02 |
<xsl:call-template name="normalize-scape">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="string" select="title"/></xsl:call-template>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:call-template name="gentext.element.name"/>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:text>}
</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:apply-templates/>
|
|
Packit Service |
76cb02 |
<xsl:text>\end{DBKadmonition}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
warning/title|caution/title|tip/title"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template name="admon.graphic">
|
|
Packit Service |
76cb02 |
<xsl:param name="node" select="."/>
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="name($node)='warning'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$figure.warning"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="name($node)='caution'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$figure.caution"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="name($node)='important'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$figure.important"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="name($node)='note'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$figure.note"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="name($node)='tip'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$figure.tip"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise></xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
</xsl:stylesheet>
|