]> granicus.if.org Git - docbook-dsssl/commitdiff
Added /node() to the select expression that is used to compute the title text
authorMauritz Jeanson <mj@johanneberg.com>
Sat, 1 Aug 2009 15:48:00 +0000 (15:48 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sat, 1 Aug 2009 15:48:00 +0000 (15:48 +0000)
so that no <ttl> elements end up in the output. Closes bug #2830119.

xsl/common/olink.xsl

index 78a2fa594101a4ff87cdefedc32df16d09ed064c..a80431447537e8d64fb67832062845210c6e9578 100644 (file)
@@ -2,6 +2,16 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="1.0">
 
+<!-- ********************************************************************
+     $Id$
+     ********************************************************************
+
+     This file is part of the DocBook XSL Stylesheet distribution.
+     See ../README or http://docbook.sf.net/ for copyright
+     copyright and other information.
+
+     ******************************************************************** -->
+
 <!-- Create keys for quickly looking up olink targets -->
 <xsl:key name="targetdoc-key" match="document" use="@targetdoc" />
 <xsl:key name="targetptr-key"  match="div|obj"
               <xsl:for-each select="$target.database" >
                 <xsl:call-template name="insert.targetdb.data">
                   <xsl:with-param name="data"
-                                  select="key('targetptr-key', $olink.key)/ttl/>
+                                  select="key('targetptr-key', $olink.key)/ttl/node()"/>
                 </xsl:call-template>
               </xsl:for-each>
             </xsl:with-param>