[yelp-xsl] db-chunk: Default db.chunk.basename to 'index' without @id
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] db-chunk: Default db.chunk.basename to 'index' without @id
- Date: Wed, 18 May 2011 16:01:35 +0000 (UTC)
commit 69b01d5f65ad0f228903ca6c7295f4d498be9213
Author: Shaun McCance <shaunm gnome org>
Date: Tue May 17 09:44:53 2011 -0400
db-chunk: Default db.chunk.basename to 'index' without @id
xslt/docbook/common/db-chunk.xsl | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/xslt/docbook/common/db-chunk.xsl b/xslt/docbook/common/db-chunk.xsl
index 4cd8f2a..b951021 100644
--- a/xslt/docbook/common/db-chunk.xsl
+++ b/xslt/docbook/common/db-chunk.xsl
@@ -74,7 +74,19 @@ The base filename of the output file, without an extension
REMARK: Describe what this does
-->
-<xsl:param name="db.chunk.basename" select="/*/@id | /*/@xml:id"/>
+<xsl:param name="db.chunk.basename">
+ <xsl:choose>
+ <xsl:when test="/*/@xml:id">
+ <xsl:value-of select="/*/@xml:id"/>
+ </xsl:when>
+ <xsl:when test="/*/@id">
+ <xsl:value-of select="/*/@id"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>index</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
<!--@@==========================================================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]