joerg       2004/01/23 06:47:44

  Modified:    src/blocks/woody/samples/resources woody-field-styling.xsl
  Log:
  unfortunately the last fix was not ok, mode="styling" was missing
  
  Revision  Changes    Path
  1.36      +8 -5      
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.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- woody-field-styling.xsl   23 Jan 2004 13:29:43 -0000      1.35
  +++ woody-field-styling.xsl   23 Jan 2004 14:47:44 -0000      1.36
  @@ -80,17 +80,20 @@
     </xsl:template>
   
     <xsl:template match="wi:styling/@list-type | wi:styling/@list-orientation |
  -                       wi:styling/@listbox-size"
  +                       wi:styling/@listbox-size | wi:styling/@format"
                   mode="styling">
       <!-- They are just markers for the stylesheet and don't go through to 
HTML. -->
     </xsl:template>
   
  -  <xsl:template match="wi:styling/@type" priority="2">
  +  <xsl:template match="wi:styling/@type" mode="styling">
       <!--+ Do we have a duplicate semantic usage of @type??
  -        | @type is only a marker for the stylesheet in general, but for
  -        | value 'password' we need to copy it.
  +        | @type is only a marker for the stylesheet in general, but some of 
the
  +        | types must/should be in the HTML output too.
           +-->
  -    <xsl:if test=". = 'password'">
  +    <xsl:variable name="validHTMLTypes"
  +                  select="'text hidden textarea checkbox radio password'"/>
  +    <xsl:if test="normalize-space(.) and
  +                  contains(concat(' ', $validHTMLTypes, ' '), concat(' ', ., 
' '))">
         <xsl:copy-of select="."/>      
       </xsl:if>
     </xsl:template>
  
  
  

Reply via email to