joerg       2004/01/23 05:29:43

  Modified:    src/blocks/woody/samples/resources woody-field-styling.xsl
  Log:
  fixed password styling.
  Do we have a duplicate semantic usage of @type??
  
  Revision  Changes    Path
  1.35      +12 -2     
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.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- woody-field-styling.xsl   22 Jan 2004 18:02:38 -0000      1.34
  +++ woody-field-styling.xsl   23 Jan 2004 13:29:43 -0000      1.35
  @@ -79,10 +79,20 @@
       </xsl:if>
     </xsl:template>
   
  -  <xsl:template match="wi:styling/@type | wi:styling/@list-type |
  -                       wi:styling/@list-orientation | 
wi:styling/@listbox-size"
  +  <xsl:template match="wi:styling/@list-type | wi:styling/@list-orientation |
  +                       wi:styling/@listbox-size"
                   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">
  +    <!--+ 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.
  +        +-->
  +    <xsl:if test=". = 'password'">
  +      <xsl:copy-of select="."/>      
  +    </xsl:if>
     </xsl:template>
   
     <!--+
  
  
  

Reply via email to