cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: svn commit: r467749 - /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/forms-field-styling.xsl
Date Wed, 25 Oct 2006 21:10:37 GMT
On 25.10.2006 22:07, ltrieloff@apache.org wrote:

> +  <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:copy-of select="@*"/>

This check is not necessary, the orignal version works. The reason is, 
that the potential attribute on the currently processed element 
overwrites the other one, as <xsl:copy-of select="@*"/> is applied after 
<xsl:attribute name="id">.

But something more general: This patch looks very specific for a maybe 
much more generic problem. This is just a feeling ... have not been 
working with CForms since 2 years and never with its Ajax functionality. 
What's the actual root cause?

Jörg

Mime
View raw message