You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Jörg Heinicke (JIRA)" <ji...@apache.org> on 2008/02/06 05:55:07 UTC
[jira] Updated: (COCOON-2058) Ambiguous rule match for
"fi:styling/@submit-on-change"
[ https://issues.apache.org/jira/browse/COCOON-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jörg Heinicke updated COCOON-2058:
----------------------------------
Affects version (Component): Parent values: Blocks: Forms(10167). Level 1 values: 1.0.0-RC2(10330).
Fix version (Component): Parent values: Blocks: Forms(10239). Level 1 values: 1.0.0-RC3-SNAPSHOT(10333).
Affects Version/s: 2.2-dev (Current SVN)
2.1.11
Fix Version/s: 2.2-dev (Current SVN)
2.1.12-dev (Current SVN)
Also found this thread: http://marc.info/?t=115979449700002&r=1&w=4.
Eventually running into this issue myself ... Saxon weights "fi:styling/@*" the same as "fi:styling/@name" (exact attribute name). I consider this behavior of Saxon rather annoying ...
> Ambiguous rule match for "fi:styling/@submit-on-change"
> -------------------------------------------------------
>
> Key: COCOON-2058
> URL: https://issues.apache.org/jira/browse/COCOON-2058
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Forms
> Affects Versions: 2.1.11, 2.2-dev (Current SVN)
> Reporter: Ralph Collett
> Assignee: Jörg Heinicke
> Priority: Minor
> Fix For: 2.1.12-dev (Current SVN), 2.2-dev (Current SVN)
>
>
> Ambiguous rule match for "fi:styling/@submit-on-change" between "fi:styling/@submit-on-change" and "fi:styling/@*" in forms-field-styling.xsl rules when using Saxon. Priority of "fi:styling/@submit-on-change" should be set to 1 (as in the "fi:styling/@type" rule).
> --- Starting at line 151 of forms-field-styling.xsl ---
> <xsl:template match="fi:styling/@*" mode="styling">
> <xsl:copy-of select="."/>
> </xsl:template>
> <xsl:template match="fi:styling/@submit-on-change" mode="styling">
> <xsl:if test=". = 'true'">
> <xsl:attribute name="onchange">forms_submitForm(this)</xsl:attribute>
> </xsl:if>
> </xsl:template>
> <xsl:template match="fi:styling/@list-type | fi:styling/@list-orientation |
> fi:styling/@listbox-size | fi:styling/@format | fi:styling/@layout"
> mode="styling">
> <!--+
> | Ignore marker attributes so they don't go into the resuling HTML.
> +-->
> </xsl:template>
> <xsl:template match="fi:styling/@type" mode="styling" priority="1">
> <!--+
> | Do we have a duplicate semantic usage of @type?
> | @type is only a marker for the stylesheet in general, but some of the
> | types must/should be in the HTML output too.
> +-->
> <xsl:variable name="validHTMLTypes"
> select="'text hidden checkbox radio password image reset submit'"/>
> <xsl:if test="normalize-space(.) and
> contains(concat(' ', $validHTMLTypes, ' '), concat(' ', ., ' '))">
> <xsl:copy-of select="."/>
> </xsl:if>
> </xsl:template>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.