Re: [Xsltforms-support] bug with nodeset of size=1 in itemset
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2010-01-13 21:02:14
|
Hello Stephen, This has been fixed and commited. Now, all controls are disabled before evaluation to prevent temporary rendering at loading step. That's why different parts of XSLTForms have been changed and not yet fully tested... Thanks! -Alain > Hello Alain, > > There is a bug in the current build when you have an xforms:itemset with > a @nodeset of size=1. > > An exception is thrown it seems. > > The following code demonstrates the effect: > > <?xml version="1.0" encoding="UTF-8"?> > <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?><html > xmlns:aatams="http://www.imos.org.au/aatams" > xmlns:xf="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:ows="http://www.opengis.net/ows" > xmlns="http://www.w3.org/1999/xhtml" > xmlns:gml="http://www.opengis.net/gml"> > <head> > <title>AATAMS Web Interface</title> > <link href="aatams.css" rel="stylesheet" type="text/css"/> > <xf:model id="model1"> > <xf:instance id="inst_implant_type"> > <wfs:FeatureCollection> > <gml:featureMember> > <aatams:implant_type gml:id="aatams.implant_type.1"> > <aatams:name>INTERNAL</aatams:name> > </aatams:implant_type> > </gml:featureMember> > </wfs:FeatureCollection> > </xf:instance> > <xf:instance id="inst_subfeatures"> > <dummy xmlns=""> > <implant_type_id/> > </dummy> > </xf:instance> > <xf:bind id="implant_type" > nodeset="instance('inst_subfeatures')//implant_type_id" > type="xsd:string" > required="false()"/> > </xf:model> > </head> > <body> > <div class="form"> > <label>ADD TAG RELEASE</label> > <div class="form-contents"> > <div class="xfselect1"> > <xf:select1 bind="implant_type" appearance="minimal" > incremental="true()"> > <xf:label>implant type</xf:label> > <xf:itemset > nodeset="instance('inst_implant_type')/gml:featureMember/aatams:implant_type"> > <xf:value ref="@gml:id"/> > <xf:label ref="aatams:name"/> > </xf:itemset> > </xf:select1> > </div> > </div> > </div> > <br/> > <div id="console"/> > </body> > </html> > > > |