[Xsltforms-support] bug with nodeset of size=1 in itemset
Brought to you by:
alain-couthures
From: Stephen C. <Ste...@ut...> - 2010-01-13 06:37:16
|
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> -- Regards Stephen Cameron Data Programmer Integrated Marine Observing System (IMOS) eMarine Information Infrastructure Project University of Tasmania, Private Bag 21, Hobart, TAS 7001, Australia Tel: +61 3 6226 8507 Fax: +61 3 6226 2997 Email: ste...@ut... URL: http://www.imos.org.au/eMII.html |