[Xsltforms-support] multiple bind problem in trunk 494
Brought to you by:
alain-couthures
From: Leigh L. K. Jr. <Lei...@Xe...> - 2011-03-26 23:18:38
|
bind/@readonly and bind/@relevant work if it is the only or second bind on a node, but not if it is the first. If the second bind assigns readonly, relevant, or type, then the first bind (readonly or relevant) fails. <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="/xsltforms/xsltforms.xsl"?> <?css-conversion no?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <head> <title>bind example</title> <model xmlns="http://www.w3.org/2002/xforms"> <instance id="main"> <data xmlns=""> <title/> </data> </instance> <!-- swap the order of these binds and readonly will work --> <!-- drop the second bind and readonly will work --> <!-- use relevant instead of readonly in the first bind and the same problems occur --> <bind nodeset="title" readonly="false()" /> <bind nodeset="title" type="xsd:string" /> </model> </head> <body> <group xmlns="http://www.w3.org/2002/xforms"> <input ref="instance('main')/title"> <label>Title: </label> </input> </group> </body> </html> |