vgritsenko    2003/11/06 05:25:29

  Modified:    src/blocks/woody/samples/resources woody-field-styling.xsl
  Log:
  wi:output styling for the booleanfield
  (how to make it more generic?)
  
  Revision  Changes    Path
  1.7       +19 -4     
cocoon-2.1/src/blocks/woody/samples/resources/woody-field-styling.xsl
  
  Index: woody-field-styling.xsl
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/woody/samples/resources/woody-field-styling.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- woody-field-styling.xsl   5 Nov 2003 13:36:02 -0000       1.6
  +++ woody-field-styling.xsl   6 Nov 2003 13:25:29 -0000       1.7
  @@ -1,8 +1,9 @@
   <?xml version="1.0"?>
  -<xsl:stylesheet
  -  version="1.0"
  -  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  -  xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";>
  +
  +<xsl:stylesheet version="1.0"
  +                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  +                xmlns:wi="http://apache.org/cocoon/woody/instance/1.0";
  +                exclude-result-prefixes="wi">
     
     <!-- must be called in <head> to load calendar script and setup the CSS -->
     <xsl:template name="woody-field-head">
  @@ -205,6 +206,20 @@
         </xsl:if>
       </input>
       <xsl:call-template name="woody-field-common"/>
  +  </xsl:template>
  +
  +  <!--
  +    wi:booleanfield with @type 'output' : rendered as text
  +  -->
  +  <xsl:template match="wi:booleanfield[wi:[EMAIL PROTECTED]'output']]">
  +    <xsl:choose>
  +      <xsl:when test="wi:value = 'true'">
  +        yes
  +      </xsl:when>
  +      <xsl:otherwise>
  +        no
  +      </xsl:otherwise>
  +    </xsl:choose>
     </xsl:template>
   
     <!--
  
  
  

Reply via email to