[yelp-xsl] [mal-link.xsl] Normalize space for title sort keys



commit 80f69c2292386066d9b4a5dd090e987eee5bfa0b
Author: Shaun McCance <shaunm gnome org>
Date:   Mon Nov 1 10:40:57 2010 -0400

    [mal-link.xsl] Normalize space for title sort keys

 xslt/mallard/common/mal-link.xsl |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/xslt/mallard/common/mal-link.xsl b/xslt/mallard/common/mal-link.xsl
index bde2cc6..9390e6c 100644
--- a/xslt/mallard/common/mal-link.xsl
+++ b/xslt/mallard/common/mal-link.xsl
@@ -337,7 +337,7 @@ The output is a result tree fragment.  To use these results, call
         <xsl:if test="count($linklinknode) > 0">
           <mal:link xref="{$linklinkid}">
             <mal:title type="sort">
-              <xsl:value-of select="$linklinknode/mal:info/mal:title[ type = 'sort'][1]"/>
+              <xsl:value-of select="normalize-space($linklinknode/mal:info/mal:title[ type = 'sort'][1])"/>
             </mal:title>
           </mal:link>
         </xsl:if>
@@ -353,7 +353,7 @@ The output is a result tree fragment.  To use these results, call
     <xsl:if test="$linklinkid != '' and not($linknodes[ xref = $linklinkid])">
       <mal:link xref="{$linklinkid}">
         <mal:title type="sort">
-          <xsl:value-of select="mal:info/mal:title[ type = 'sort'][1]"/>
+          <xsl:value-of select="normalize-space(mal:info/mal:title[ type = 'sort'][1])"/>
         </mal:title>
       </mal:link>
     </xsl:if>
@@ -448,7 +448,7 @@ The output is a result tree fragment.  To use these results, call
               <xsl:value-of select="$groupsort"/>
             </xsl:attribute>
             <mal:title type="sort">
-              <xsl:value-of select="$linklinknode/mal:info/mal:title[ type = 'sort'][1]"/>
+              <xsl:value-of select="normalize-space($linklinknode/mal:info/mal:title[ type = 'sort'][1])"/>
             </mal:title>
           </mal:link>
         </xsl:if>
@@ -490,7 +490,7 @@ The output is a result tree fragment.  To use these results, call
           <xsl:value-of select="$groupsort"/>
         </xsl:attribute>
         <mal:title type="sort">
-          <xsl:value-of select="$source/mal:info/mal:title[ type = 'sort'][1]"/>
+          <xsl:value-of select="normalize-space($source/mal:info/mal:title[ type = 'sort'][1])"/>
         </mal:title>
       </mal:link>
     </xsl:if>
@@ -534,7 +534,7 @@ The output is a result tree fragment.  To use these results, call
         <xsl:if test="count($linklinknode) > 0">
           <mal:link xref="{$linklinkid}">
             <mal:title type="sort">
-              <xsl:value-of select="$linklinknode/mal:info/mal:title[ type = 'sort'][1]"/>
+              <xsl:value-of select="normalize-space($linklinknode/mal:info/mal:title[ type = 'sort'][1])"/>
             </mal:title>
           </mal:link>
         </xsl:if>
@@ -550,7 +550,7 @@ The output is a result tree fragment.  To use these results, call
     <xsl:if test="$linklinkid != '' and not($linknodes[ xref = $linklinkid])">
       <mal:link xref="{$linklinkid}">
         <mal:title type="sort">
-          <xsl:value-of select="mal:info/mal:title[ type = 'sort'][1]"/>
+          <xsl:value-of select="normalize-space(mal:info/mal:title[ type = 'sort'][1])"/>
         </mal:title>
       </mal:link>
     </xsl:if>



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