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.


TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.