You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ugo Cei <ug...@apache.org> on 2005/10/20 21:19:29 UTC
[CForms] Ambiguous rule in stylesheets
I just got this error while displaying a previously working form in
an application, after having updated Cocoon to the latest revision
(326894) from branch 2.1:
Ambiguous rule match for /html/body[1]/div[1]/fi:form-template[1]/
fi:group[1]/fi:items[1]/div[2]/fi:field[1]/fi:styling[1]/@type
Matches both "fi:styling/@type" on line 134 of resource://org/apache/
cocoon/forms/resources/forms-field-styling.xsl
and "fi:styling/@*" on line 116 of resource://org/apache/cocoon/forms/
resources/forms-field-styling.xsl
I tried to fix it by adding priority="-1" to the template at line 116
and it seems that it works now, but I'm afraid of having broken
something else. Could someone else please verify the proposed fix
before I commit it?
Ugo
P.S. Now it works but it's the HTMLArea which stopped working ... sigh
--
Ugo Cei
Tech Blog: http://agylen.com/
Open Source Zone: http://oszone.org/
Wine & Food Blog: http://www.divinocibo.it/
Re: [CForms] Ambiguous rule in stylesheets
Posted by Joerg Heinicke <jo...@gmx.de>.
On 20.10.2005 21:19, Ugo Cei wrote:
> I just got this error while displaying a previously working form in an
> application, after having updated Cocoon to the latest revision
> (326894) from branch 2.1:
>
> Ambiguous rule match for /html/body[1]/div[1]/fi:form-template[1]/
> fi:group[1]/fi:items[1]/div[2]/fi:field[1]/fi:styling[1]/@type
> Matches both "fi:styling/@type" on line 134 of resource://org/apache/
> cocoon/forms/resources/forms-field-styling.xsl
> and "fi:styling/@*" on line 116 of resource://org/apache/cocoon/forms/
> resources/forms-field-styling.xsl
>
> I tried to fix it by adding priority="-1" to the template at line 116
> and it seems that it works now, but I'm afraid of having broken
> something else. Could someone else please verify the proposed fix
> before I commit it?
I guess this now bubbles up because Sylvain fixed the integration of
Xalan regarding error reporting. But does this also change the behaviour
of the transformer? Furthermore I wonder why "fi:styling/@type" is of
same priority as "fi:styling/@*".
Independent from the above questions I would suggest like Peter to raise
the priority of the more specific template.
Jörg
Re: [CForms] Ambiguous rule in stylesheets
Posted by Peter Hunsberger <pe...@gmail.com>.
On 10/20/05, Ugo Cei <ug...@apache.org> wrote:
>
> Il giorno 20/ott/05, alle ore 22:14, Peter Hunsberger ha scritto:
>
> > On 10/20/05, Ugo Cei <ug...@apache.org> wrote:
> >
> >>
> >> P.S. Now it works but it's the HTMLArea which stopped working ...
> >> sigh
> >>
> >
> > Try changing thhe priority the other way (bet you're using Saxon?)
>
> The problem I have now (and which probably has nothing to do with
> transformation) is that the contents of the HTMLArea are not copied
> to the form model upon save ... unless I switch the HTMLArea from
> WYSIWYG mode to text mode, strange as it may seem.
>
> My field is required and no matter what I input, validation always
> fails. But if I click on the "<>" button and submit, then it works.
>
> This seems to be the case whether Saxon or Xalan is used. And it
> happens only in my form and not in the samples.
Yah, that doesn't sound like it should be dependant on the style
sheet. Sounds more like event handling code changes?
--
Peter Hunsberger
Re: [CForms] Ambiguous rule in stylesheets
Posted by Ugo Cei <ug...@apache.org>.
Il giorno 20/ott/05, alle ore 22:14, Peter Hunsberger ha scritto:
> On 10/20/05, Ugo Cei <ug...@apache.org> wrote:
>
>>
>> P.S. Now it works but it's the HTMLArea which stopped working ...
>> sigh
>>
>
> Try changing thhe priority the other way (bet you're using Saxon?)
The problem I have now (and which probably has nothing to do with
transformation) is that the contents of the HTMLArea are not copied
to the form model upon save ... unless I switch the HTMLArea from
WYSIWYG mode to text mode, strange as it may seem.
My field is required and no matter what I input, validation always
fails. But if I click on the "<>" button and submit, then it works.
This seems to be the case whether Saxon or Xalan is used. And it
happens only in my form and not in the samples.
Ugo
Re: [CForms] Ambiguous rule in stylesheets
Posted by Peter Hunsberger <pe...@gmail.com>.
On 10/20/05, Ugo Cei <ug...@apache.org> wrote:
>
> P.S. Now it works but it's the HTMLArea which stopped working ... sigh
Try changing thhe priority the other way (bet you're using Saxon?)
--
Peter Hunsberger