[yelp-xsl] db2html-callout: Just use db.id.key instead of custom key
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] db2html-callout: Just use db.id.key instead of custom key
- Date: Sat, 21 Apr 2012 00:38:41 +0000 (UTC)
commit e9388c31d3dbb261d264c4d0c35c117e14442524
Author: Shaun McCance <shaunm gnome org>
Date: Fri Apr 20 20:38:17 2012 -0400
db2html-callout: Just use db.id.key instead of custom key
xslt/docbook/html/db2html-callout.xsl | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-callout.xsl b/xslt/docbook/html/db2html-callout.xsl
index 45e1ba2..401757a 100644
--- a/xslt/docbook/html/db2html-callout.xsl
+++ b/xslt/docbook/html/db2html-callout.xsl
@@ -34,9 +34,6 @@ elements. Currently, only callouts to #{co} elements are supported. The
-->
-<xsl:key name="db2html.callout.key" match="co | db:co" use="@id | @xml:id"/>
-
-
<!--**==========================================================================
db2html.callout.label
Create a callout label for a #{co} element.
@@ -78,8 +75,8 @@ element, locate the corresponding #{co} element and call this template on it.
<xsl:for-each select="str:split(@arearefs)">
<xsl:variable name="arearef" select="string(.)"/>
<xsl:for-each select="$node">
- <xsl:variable name="co" select="key('db2html.callout.key', $arearef)"/>
- <xsl:if test="$co">
+ <xsl:variable name="co" select="key('db.id.key', $arearef)"/>
+ <xsl:if test="$co/self::co or $co/self::db:co">
<xsl:call-template name="db2html.callout.label">
<xsl:with-param name="node" select="$co"/>
</xsl:call-template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]