vgritsenko    2003/11/15 16:55:26

  Modified:    src/blocks/woody/samples/resources woody-field-styling.xsl
  Log:
  Replace named template woody-field-common with moded template
  <xsl:template match="wi:*" mode="common"/>
  
  Revision  Changes    Path
  1.12      +9 -9      
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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- woody-field-styling.xsl   15 Nov 2003 01:06:14 -0000      1.11
  +++ woody-field-styling.xsl   16 Nov 2003 00:55:25 -0000      1.12
  @@ -67,10 +67,10 @@
           <xsl:attribute name="onchange">woody_submitForm(this)</xsl:attribute>
         </xsl:if>
       </input>
  -    <xsl:call-template name="woody-field-common"/>
  +    <xsl:apply-templates select="." mode="common"/>
     </xsl:template>
     
  -  <xsl:template name="woody-field-common">
  +  <xsl:template match="wi:*" mode="common">
       <xsl:apply-templates select="wi:validation-message"/>
       <xsl:if test="@required='true'">
         <span class="woody-field-required"> * </span>
  @@ -141,7 +141,7 @@
           </select>
         </xsl:otherwise>
       </xsl:choose>
  -    <xsl:call-template name="woody-field-common"/>
  +    <xsl:apply-templates select="." mode="common"/>
     </xsl:template>
     
     <!--
  @@ -155,7 +155,7 @@
         <xsl:copy-of select="wi:styling/@*[not(name() = 'type')]"/>
         <xsl:copy-of select="wi:value/node()"/>
       </textarea>
  -    <xsl:call-template name="woody-field-common"/>
  +    <xsl:apply-templates select="." mode="common"/>
     </xsl:template>
   
     <!--
  @@ -183,7 +183,7 @@
         <xsl:copy-of select="wi:styling/@*[not(name() = 'type')]"/>
       </input>
       <a href="#" onClick="woody_calendar.select(woody_getForm(this)['[EMAIL 
PROTECTED]'],'{generate-id()}','{$format}'); return false;" 
NAME="{generate-id()}" ID="{generate-id()}"><img src="resources/cal.gif" 
border="0" alt="Calendar"/></a>
  -    <xsl:call-template name="woody-field-common"/>
  +    <xsl:apply-templates select="." mode="common"/>
     </xsl:template>
   
     <!--
  @@ -205,7 +205,7 @@
           <xsl:attribute name="checked">true</xsl:attribute>
         </xsl:if>
       </input>
  -    <xsl:call-template name="woody-field-common"/>
  +    <xsl:apply-templates select="." mode="common"/>
     </xsl:template>
   
     <!--
  @@ -295,7 +295,7 @@
           </xsl:otherwise>
         </xsl:choose>
       </span>
  -    <xsl:call-template name="woody-field-common"/>
  +    <xsl:apply-templates select="." mode="common"/>
     </xsl:template>
     
     <!--
  @@ -313,7 +313,7 @@
           <input type="file" id="[EMAIL PROTECTED]" name="[EMAIL PROTECTED]" 
title="{wi:hint}" accept="[EMAIL PROTECTED]"/>
         </xsl:otherwise>
       </xsl:choose>
  -    <xsl:call-template name="woody-field-common"/>
  +    <xsl:apply-templates select="." mode="common"/>
     </xsl:template>
   
     <!--
  @@ -404,7 +404,7 @@
           <xsl:attribute name="onchange">woody_submitForm(this)</xsl:attribute>
         </xsl:if>
       </input>
  -    <xsl:call-template name="woody-field-common"/>
  +    <xsl:apply-templates select="." mode="common"/>
     </xsl:template>
   
     <xsl:template match="wi:messages">
  
  
  

Reply via email to