[yelp-xsl] [db2html-bibliography] Handle isbn, issn, and pubsnumber
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] [db2html-bibliography] Handle isbn, issn, and pubsnumber
- Date: Fri, 21 May 2010 23:33:18 +0000 (UTC)
commit 7d3e148ec0bfeb46c2d5fc28ff6385cff86ad795
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date: Sat Apr 3 23:00:43 2010 +0000
[db2html-bibliography] Handle isbn, issn, and pubsnumber
In DocBook 4, these were all independent elements. Now they are part of
biblioid and distinguished by the class attribute.
Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>
xslt/docbook/html/db2html-bibliography.xsl | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-bibliography.xsl b/xslt/docbook/html/db2html-bibliography.xsl
index 0162aef..e089305 100644
--- a/xslt/docbook/html/db2html-bibliography.xsl
+++ b/xslt/docbook/html/db2html-bibliography.xsl
@@ -325,14 +325,20 @@ a bibliography entry.
</xsl:template>
<!-- = isbn % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="isbn">
- <xsl:call-template name="db2html.inline"/>
+<xsl:template mode="db2html.biblioentry.mode"
+ match="isbn | db:biblioid[ class = 'isbn']">
+ <xsl:call-template name="db2html.inline">
+ <xsl:with-param name="name-class" select="'isbn'"/>
+ </xsl:call-template>
<xsl:text>. </xsl:text>
</xsl:template>
<!-- = issn % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="issn">
- <xsl:call-template name="db2html.inline"/>
+<xsl:template mode="db2html.biblioentry.mode"
+ match="issn | db:biblioid[ class = 'issn']">
+ <xsl:call-template name="db2html.inline">
+ <xsl:with-param name="name-class" select="'issn'"/>
+ </xsl:call-template>
<xsl:text>. </xsl:text>
</xsl:template>
@@ -426,8 +432,11 @@ a bibliography entry.
</xsl:template>
<!-- = pubsnumber % db2html.biblioentry.mode = -->
-<xsl:template mode="db2html.biblioentry.mode" match="pubsnumber">
- <xsl:call-template name="db2html.inline"/>
+<xsl:template mode="db2html.biblioentry.mode"
+ match="pubsnumber | db:biblioid[ class = 'pubsnumber']">
+ <xsl:call-template name="db2html.inline">
+ <xsl:with-param name="name-class" select="'pubsnumber'"/>
+ </xsl:call-template>
<xsl:text>. </xsl:text>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]