Update of /var/cvs/applications/editwizard/templates/data/xsl
In directory james.mmbase.org:/tmp/cvs-serv20292

Modified Files:
        wizard.xsl 
Log Message:
a small refinement for fieldset's


See also: 
http://cvs.mmbase.org/viewcvs/applications/editwizard/templates/data/xsl


Index: wizard.xsl
===================================================================
RCS file: /var/cvs/applications/editwizard/templates/data/xsl/wizard.xsl,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -b -r1.185 -r1.186
--- wizard.xsl  9 Oct 2008 10:50:42 -0000       1.185
+++ wizard.xsl  9 Oct 2008 16:05:09 -0000       1.186
@@ -13,7 +13,7 @@
     @author Nico Klasens
     @author Martijn Houtman
     @author Robin van Meteren
-    @version $Id: wizard.xsl,v 1.185 2008/10/09 10:50:42 michiel Exp $
+    @version $Id: wizard.xsl,v 1.186 2008/10/09 16:05:09 michiel Exp $
 
     This xsl uses Xalan functionality to call java classes
     to format dates and call functions on nodes
@@ -520,6 +520,16 @@
     </td>
   </xsl:template>
 
+  <!--
+      If you don't use at least one prompt inside a fieldset, there is 
actually little
+      point in using it, besides if you use it only as a grouping
+      (e.g. the implemnentation of a 'block').
+      So, we simply ignore the 'fieldset' and simply apply the sub-elements if 
there are no prompts
+  -->
+  <xsl:template match="fieldset[count(prompt) = 0]">
+    <xsl:apply-templates select="field" />
+  </xsl:template>
+
   <xsl:template match="field">
     <td class="fieldprompt">
       <xsl:call-template name="prompt"/>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to