stevenn     2003/08/18 12:58:51

  Modified:    src/blocks/woody/samples/xsl/html woody-default.xsl
  Log:
  working around xsltc bug - copy-of would fail with AOOB exception if no styling 
element was provided
  
  Revision  Changes    Path
  1.10      +3 -1      cocoon-2.1/src/blocks/woody/samples/xsl/html/woody-default.xsl
  
  Index: woody-default.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/xsl/html/woody-default.xsl,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- woody-default.xsl 17 Aug 2003 21:03:42 -0000      1.9
  +++ woody-default.xsl 18 Aug 2003 19:58:51 -0000      1.10
  @@ -32,7 +32,9 @@
     <xsl:template name="field">
       <xsl:param name="fieldelement"/>
       <input name="{$fieldelement/@id}" value="{$fieldelement/wi:value}">
  -      <xsl:copy-of select="wi:styling/@*"/>
  +      <xsl:if test="wi:styling">
  +        <xsl:copy-of select="wi:styling/@*"/>
  +      </xsl:if>
       </input>
     </xsl:template>
   
  
  
  

Reply via email to