[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:36:25 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=8b22804

The following commit has been merged in the master branch:
commit 8b22804c2297eb2a7df5aa560aef3fb78cd93ac5
Author: Andreas Huggel <ahuggel at gmx.net>
Date:   Tue Jun 1 11:23:10 2004 +0000

    Improved HTML output
---
 doc/tags.xsl | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/doc/tags.xsl b/doc/tags.xsl
index 9b87ba3..00a484b 100644
--- a/doc/tags.xsl
+++ b/doc/tags.xsl
@@ -2,7 +2,7 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 <xsl:output method="html" version="4.01" encoding="iso-8859-1" 
 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
- 
+
 <!-- *********************************************************************** -->
 <xsl:template match="TAGLIST">
 <html>
@@ -27,13 +27,13 @@ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
 
 <!-- *********************************************************************** -->
 <xsl:template match="HEADER/text">
-  <xsl:copy-of select="text()|*"/>
+  <xsl:copy-of select="text()|*" />
 </xsl:template>
 
 <!-- *********************************************************************** -->
 <xsl:template name="header">
   <h2><xsl:value-of select="HEADER/title" /></h2>
-  <xsl:apply-templates select="HEADER/text"/>
+  <xsl:apply-templates select="HEADER/text" />
 </xsl:template>
 
 <!-- *********************************************************************** -->
@@ -44,9 +44,7 @@ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
       <xsl:call-template name="header-row" />
     </thead>
     <tbody>
-      <xsl:for-each select="ROWSET/ROW">
-        <xsl:call-template name="data-row" />
-      </xsl:for-each>
+      <xsl:apply-templates select="ROWSET/ROW" />
     </tbody>
   </table>
   <xsl:call-template name="interactivity" />
@@ -77,8 +75,23 @@ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
 </xsl:template>
 
 <!-- *********************************************************************** -->
+<xsl:template match="ROWSET/ROW[position() mod 2 = 0]">
+  <xsl:call-template name="data-row">
+    <xsl:with-param name="rowClass" select="'EvenRow'" />
+  </xsl:call-template>
+</xsl:template>
+
+<!-- *********************************************************************** -->
+<xsl:template match="ROWSET/ROW[position() mod 2 = 1]">
+  <xsl:call-template name="data-row">
+    <xsl:with-param name="rowClass" select="'OddRow'" />
+  </xsl:call-template>
+</xsl:template>
+
+<!-- *********************************************************************** -->
 <xsl:template name="data-row">
-  <tr>
+  <xsl:param name="rowClass" />
+  <tr><xsl:attribute name="class"><xsl:value-of select="$rowClass" /></xsl:attribute>
     <td><xsl:value-of select="tagname" /></td>
     <td><xsl:value-of select="tagdesc" /></td>
     <td><xsl:value-of select="tagdec" /></td>
@@ -104,7 +117,6 @@ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
 		addClassName(rows[i], i % 2 ? "EvenRow" : "OddRow");
 	}
   };
-  t1.onsort();
   //]]>
   </script>
 </xsl:template>

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list