[Xsltforms-support] attribute namespace problem
Brought to you by:
alain-couthures
From: Stephen C. <Ste...@ut...> - 2009-08-12 02:21:27
|
Hello I am getting an error in Firefox with an XPath having an predicate containing an attribute with a namespace. This is the code in question: <xf:select1 bind="project_role_person" appearance="minimal" incremental="true()"> <xf:label>Person</xf:label> <xf:item> <xf:label/> <xf:value/> </xf:item> <xf:itemset nodeset="instance('inst_project_role_person')//aatams:project_role_person[aatams:project_ref/aatams:project/@gml:id=instance('inst_prp')/project_id]"> <xf:value ref="@gml:id"/> <xf:label ref="aatams:person_ref/aatams:person/aatams:name"/> </xf:itemset> <xf:help>This is a presently unhelpful help message</xf:help> </xf:select1> The problem sees to be the use of @gml:id, the error I see is: Error: XForms Error (10): Error parsing XPath expression: instance('inst_project_role_person')//aatams:project_role_person[aatams:project_ref/aatams:project/@gml:id=instance('inst_prp')/project_id] Elsewhere the same use of @gml:id is not causing a problem so I suspect it is an issue with the select1 implementation only. For example the code below works in my submit, which is doing exactly the same thing (I think). <xf:insert nodeset="instance('inst_data')//aatams:model_ref/aatams:device_model" origin="instance('inst_device_model')//aatams:device_model[@gml:id=instance('inst_subfeatures')/device_model_id]"/> The one difference is that the select1 nodeset XPath will not find any nodes on loading the form as the value "instance('inst_prp')/project_id" has not been set by the user from another select1. I'd really appreciate some assistance in getting this resolved as it is a final hurdle before my app. can be used in production. Thanks -- 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 |