diff flys-artifacts/contrib/fixoverview2html.xsl @ 2632:7d163c2c6e6d

Improve XSL transformation for fixings overview output. flys-artifacts/trunk@4251 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 17 Apr 2012 13:55:50 +0000
parents 72f77b2210c2
children d6e32ae72da6
line wrap: on
line diff
--- a/flys-artifacts/contrib/fixoverview2html.xsl	Fri Apr 13 07:44:25 2012 +0000
+++ b/flys-artifacts/contrib/fixoverview2html.xsl	Tue Apr 17 13:55:50 2012 +0000
@@ -3,7 +3,12 @@
   version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-  <xsl:output method="xml" encoding="UTF-8"/>
+  <xsl:output method="xml" encoding="UTF-8"
+    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes"/>
+
+  <xsl:param name="project-uuid">de3f3307-3429-4ff9-8f43-3fb2fcf21b27</xsl:param>
+  <xsl:param name="render-checkboxes" select="true()"/>
 
   <xsl:template name="percent">
     <xsl:param name="sector"/>
@@ -84,6 +89,11 @@
 
   <xsl:template match="event">
     <tr>
+      <xsl:if test="$render-checkboxes">
+        <td>
+          <input type="checkbox" name="{$project-uuid}:{@cid}"/>
+        </td>
+      </xsl:if>
       <td>
         <xsl:apply-templates mode="sectors"/>
       </td>
@@ -95,10 +105,13 @@
   </xsl:template>
 
   <xsl:template match="events">
-    <table width="95%" border="1" cellspacing="0" cellpadding="0">
+    <table width="95%" border="1" cellspacing="0" cellpadding="0" style="font-size: 11pt;font-family:Arial;Verdana,sans-serif">
       <colgroup>
-        <col width="85%"/>
-        <col width="15%"/>
+        <xsl:if test="$render-checkboxes">
+            <col width="1em"/>
+        </xsl:if>
+        <col width="*"/>
+        <col width="11em"/>
       </colgroup>
       <xsl:apply-templates/>
     </table>

http://dive4elements.wald.intevation.org