[yelp-xsl] dita2html-topic: Don't chunk for topicref buried in reltable etc



commit bceaa4a3f3c16b38171159f4e9011797f3b4f347
Author: Shaun McCance <shaunm gnome org>
Date:   Wed Nov 21 22:02:01 2012 -0500

    dita2html-topic: Don't chunk for topicref buried in reltable etc

 xslt/dita/html/dita2html-topic.xsl |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)
---
diff --git a/xslt/dita/html/dita2html-topic.xsl b/xslt/dita/html/dita2html-topic.xsl
index 476baf9..f571bf7 100644
--- a/xslt/dita/html/dita2html-topic.xsl
+++ b/xslt/dita/html/dita2html-topic.xsl
@@ -312,19 +312,27 @@ REMARK: Describe this module
 </xsl:template>
 
 
-<!-- == map == -->
-
-<!-- = map % html.output.after.mode = -->
-<xsl:template mode="html.output.after.mode" match="/&map_map;">
-  <xsl:for-each select="//&map_topicref;[ href]">
-    <xsl:call-template name="html.output">
-      <xsl:with-param name="href">
-        <xsl:call-template name="dita.ref.href.target"/>
-      </xsl:with-param>
-    </xsl:call-template>
+<!--#% html.output.after.mode -->
+<xsl:template mode="html.output.after.mode" match="/&map_map; | &map_topicref;">
+  <xsl:for-each select="&map_topicref;">
+    <xsl:choose>
+      <xsl:when test="@href">
+        <xsl:call-template name="html.output">
+          <xsl:with-param name="href">
+            <xsl:call-template name="dita.ref.href.target"/>
+          </xsl:with-param>
+        </xsl:call-template>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:apply-templates mode="html.output.after.mode" select="."/>
+      </xsl:otherwise>
+    </xsl:choose>
   </xsl:for-each>
 </xsl:template>
 
+
+<!-- == map == -->
+
 <!-- = map % html.title.mode = -->
 <xsl:template mode="html.title.mode" match="&map_map;">
   <xsl:choose>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]