My problem is that in the view all the fields for address render as blank - that is there is a placeholder where they should appear but it is blank - as below.
Clients: Client Name:* Address: E-Mail: Phone: Comments: Here is the instance <Client xmlns="http://www.b2b.net/plants"> <Name/> <Address> <BuildingName/> <Street/> <City/> <County/> <Postcode/> </Address> <EmailAddress/> <Phone/> <Comments/> </Client> Here is my model for the instance <xf:model xmlns:xf="http://www.w3.org/2002/xforms" id="clientModel"> <xf:instance src="data/client.xml"/> <xf:bind id="clientName" nodeset="b2b:Name" type="xsd:string" required="true()"/> <xf:bind id="clientBuildingName" nodeset="b2b:BuildingName" type="xsd:string"/> <xf:bind id="clientStreet" nodeset="b2b:Street" type="xsd:string"/> <xf:bind id="clientCity" nodeset="b2b:City" type="xsd:string"/> <xf:bind id="clientCounty" nodeset="b2b:County" type="xsd:string"/> <xf:bind id="clientPostcode" nodeset="b2b:Postcode" type="xsd:string"/> <xf:bind id="clientEmailAddress" nodeset="b2b:EmailAddress" type="xsd:string"/> <xf:bind id="clientPhone" nodeset="b2b:Phone" type="xsd:string"/> <xf:bind id="clientComments" nodeset="b2b:Comments" type="xsd:string"/> <xf:submission id="submitClient" method="Post" action="save-new.xq"/> </xf:model> Here is the view..... it is a case within xf:switch Note the following 1. I have edited out the labels and hints to reduce the clutter. 2. The ref on the group has an absolute address - however the problem still shows when the address is relative as in group ref=b2b:Address <case id="clientCase"> <group ref="/b2b:Client" model="clientModel"> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientName"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <group ref="/b2b:Client/b2b:Address" model="clientModel"> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientBuildingName"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientStreet"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientCity"></xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientCounty"></xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientPostcode"></xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> </group> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientEmailAddress"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientPhone"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientComments"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> </group> <xf:submit xmlns:xf="http://www.w3.org/2002/xforms" submission="submitClient"> <xf:label>Save</xf:label> </xf:submit> </case> ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
