Blame xsl/common/mkdoclist.xsl
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
Packit |
0f19cf |
version='1.0'>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:output method="text" indent="yes"/>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
stylesheet cannot be used standalone, because the following parameters must
|
|
Packit |
0f19cf |
exist:
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="use.id.as.filename" select="0"/>
|
|
Packit |
0f19cf |
<xsl:param name="set.book.num" select="1"/>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
The output method is text, in order to be compatible with the imported
|
|
Packit |
0f19cf |
dblatex XSL stylesheets output method.
|
|
Packit |
0f19cf |
-->
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:template match="book" mode="give.basename">
|
|
Packit |
0f19cf |
<xsl:choose>
|
|
Packit |
0f19cf |
<xsl:when test="not(@id) or $use.id.as.filename = 0">
|
|
Packit |
0f19cf |
<xsl:value-of select="concat('book', position())"/>
|
|
Packit |
0f19cf |
</xsl:when>
|
|
Packit |
0f19cf |
<xsl:otherwise>
|
|
Packit |
0f19cf |
<xsl:value-of select="@id"/>
|
|
Packit |
0f19cf |
</xsl:otherwise>
|
|
Packit |
0f19cf |
</xsl:choose>
|
|
Packit |
0f19cf |
<xsl:text>
</xsl:text>
|
|
Packit |
0f19cf |
</xsl:template>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:template match="/">
|
|
Packit |
0f19cf |
<xsl:if test="$set.book.num = 'all'">
|
|
Packit |
0f19cf |
<xsl:apply-templates select="//book[parent::set]" mode="give.basename"/>
|
|
Packit |
0f19cf |
</xsl:if>
|
|
Packit |
0f19cf |
</xsl:template>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
</xsl:stylesheet>
|