On 25.10.2006 22:07, [EMAIL PROTECTED] 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

Reply via email to