[yelp-xsl] dita2html-topic: Support shortdesc as intro para and link desc



commit e9e77fbfd64e7b048a3a46b2c3e854e6b7176f0a
Author: Shaun McCance <shaunm gnome org>
Date:   Thu Nov 8 11:48:12 2012 -0500

    dita2html-topic: Support shortdesc as intro para and link desc

 xslt/dita/html/dita2html-topic.xsl |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/xslt/dita/html/dita2html-topic.xsl b/xslt/dita/html/dita2html-topic.xsl
index 3e5ab44..07fd1b1 100644
--- a/xslt/dita/html/dita2html-topic.xsl
+++ b/xslt/dita/html/dita2html-topic.xsl
@@ -314,6 +314,7 @@ th, td { border: solid 1px; }
     <xsl:call-template name="dita.id"/>
     <xsl:call-template name="html.lang.attrs"/>
     <div class="contents">
+      <xsl:apply-templates mode="dita2html.topic.mode" select="../&topic_shortdesc;"/>
       <xsl:apply-templates mode="dita2html.topic.mode" select="$conref/node()"/>
     </div>
     <xsl:if test="$subtopics">
@@ -335,6 +336,13 @@ th, td { border: solid 1px; }
                   </xsl:otherwise>
                 </xsl:choose>
               </a>
+              <xsl:variable name="desc" select="document(@href, $node)/&topic_topic_all;/&topic_shortdesc;"/>
+              <xsl:if test="$desc">
+                <span class="desc">
+                  <xsl:text> &#x2014; </xsl:text>
+                  <xsl:apply-templates mode="dita2html.topic.mode" select="yelp:dita.ref.conref($desc)/node()"/>
+                </span>
+              </xsl:if>
             </li>
           </xsl:for-each>
         </ul>



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