cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <g...@tuffmail.com>
Subject Re: two bugs in form block
Date Fri, 02 Feb 2007 12:47:37 GMT
Abbas Mousavi napisaƂ(a):
> Hi
>
> I want to report 2 minor bugs in cocoon 2.1.10
>
> first form styling stylesheets dont work with saxon for example
> when you use saxon, some form block examples show this error, I
> looked at the stylesheet but can not find the problem:
>
> -----------------------------------------------
> net.sf.saxon.trans.DynamicError: Ambiguous rule match for
> /html/body[1]/fi:form-template[1]/div[1]/fi:group[1]/fi:items[1]/fi:group[1]/fi:items[1]/fi:field[2]/fi:styling[1]/@list-type
> Matches both "fi:styling/@list-type | fi:styling/@list-orientation |
> fi:styling/@listbox-size | fi:styling/@format | fi:styling/@layout |
> fi:styling/@class" on line 149 of
> resource://org/apache/cocoon/forms/resources/forms-field-styling.xsl
> and "fi:styling/@*" on line 137 of
> resource://org/apache/cocoon/forms/resources/forms-field-styling.xsl
> resource://org/apache/cocoon/forms/resources/forms-field-styling.xsl -
> 102:-1
> -----------------------------------------------------
>
> second is that when you use saveXml to save a form
> to disk in flowscript this error happens
>
> Serialization parameter {indent} must have the value yes or no
>
> I have edited org\apache\cocoon\forms\flow\javascript\Forms.js
> around line 361 and changed
>
>            
> transformer.setOutputProperty(Packages.javax.xml.transform.OutputKeys.INDENT,
> "true");
>
> to
>
>            
> transformer.setOutputProperty(Packages.javax.xml.transform.OutputKeys.INDENT,
> "yes");
>
> and it solved the problem.
Could you please report this on JIRA including patch for the second
issue? Also patch for the first one would be welcomed. :)
Thanks

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message