doc: Add index letter links to XSLT HTML build
authorPeter Eisentraut
Thu, 3 Nov 2016 16:00:00 +0000 (12:00 -0400)
committerPeter Eisentraut
Fri, 4 Nov 2016 02:50:46 +0000 (22:50 -0400)
This matches what was already implemented in the DSSSL HTML build.

doc/src/sgml/stylesheet.xsl

index 631fcc4edfcbb5e3c6261a4a8caba42bafb89b93..39c9df28ad08511c086c9df435c870cc34e3b28c 100644 (file)
@@ -1,4 +1,8 @@
 
+
+
+%common.entities;
+]>
 
                 version='1.0'
                 xmlns="http://www.w3.org/TR/xhtml1/transitional"
@@ -59,4 +63,187 @@ section   toc
 set       toc,title
 
 
+
+
+
+
+
+
+  
+
+  
+    
+      
+    
+  
+
+  
+    
+      
+    
+  
+
+  
+                select="//indexterm
+                        [count(.|key('letter',
+                          translate(substring(&primary;, 1, 1),
+                             &lowercase;,
+                             &uppercase;))
+                          [&scope;][1]) = 1
+                          and not(@class = 'endofrange')]"/>
+
+  
+                select="$terms[contains(concat(&lowercase;, &uppercase;),
+                                        substring(&primary;, 1, 1))]"/>
+
+  
+                                                 &uppercase;),
+                                             substring(&primary;, 1, 1)))]"/>
+
+  
+    
+    
+      
+        
+          
+        
+      
+      
+                                   translate(substring(&primary;, 1, 1),
+                                   &lowercase;,&uppercase;))[&scope;][1]) = 1]"
+                           mode="index-div-quicklinks">
+        
+        
+        
+        
+        
+      
+    

+    
+
+    
+      
+        
+                        $others[@type = $type][count(.|key('primary', &primary;)[&scope;][1]) = 1]">
+          
+          
+            

+              
+                
+              
+            
+            
+              
+                                   mode="index-symbol-div">
+                
+                
+                
+                
+                
+              
+            
+          
+        
+        
+          
+        
+        
+          
+          
+            

+              
+                
+              
+            
+            
+              
+                                          &primary;)[&scope;][1]) = 1]"
+                                  mode="index-symbol-div">
+                
+                
+                
+                
+                
+              
+            
+          
+        
+      
+    
+
+    
+                                 translate(substring(&primary;, 1, 1),
+                                           &lowercase;,&uppercase;))[&scope;][1]) = 1]"
+                         mode="index-div-basic">
+      
+      
+      
+      
+      
+    
+  
+
+
+
+  
+  
+  
+
+  
+                select="translate(substring(&primary;, 1, 1),
+                         &lowercase;,&uppercase;)"/>
+
+  
+                [count(.|key('primary', &primary;)[&scope;][1]) = 1]">
+    
+      
+      
+        
+      
+
+      
+        

+          
+        
+      
+      
+        
+                                     [count(.|key('primary', &primary;)
+                                     [&scope;][1])=1]"
+                             mode="index-primary">
+          
+          
+          
+          
+          
+        
+      
+    
+  
+
+
+
+
+  
+  
+  
+
+  
+                select="translate(substring(&primary;, 1, 1),
+                        &lowercase;,&uppercase;)"/>
+
+  
+                [count(.|key('primary', &primary;)[&scope;][1]) = 1]">
+    
+      |
+      
+        
+          
+        
+        
+    
+  
+
+