You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by lt...@apache.org on 2006/10/26 15:19:32 UTC

svn commit: r467993 - /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl

Author: ltrieloff
Date: Thu Oct 26 06:19:32 2006
New Revision: 467993

URL: http://svn.apache.org/viewvc?view=rev&rev=467993
Log:
remove unneccesary check for existance of id attribute

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl?view=diff&rev=467993&r1=467992&r2=467993
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl (original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl Thu Oct 26 06:19:32 2006
@@ -749,10 +749,7 @@
 
   <xsl:template match="*" mode="copy-parent-id">
     <xsl:copy>
-      <!-- do not override id if already specified, else use parent id -->
-      <xsl:if test="not(@id)">
-        <xsl:attribute name="id"><xsl:value-of select="../@id"/></xsl:attribute>
-      </xsl:if>
+      <xsl:attribute name="id"><xsl:value-of select="../@id"/></xsl:attribute>
       <xsl:copy-of select="@*"/>
       <xsl:apply-templates/>
     </xsl:copy>