[Xsltforms-support] problems with an generated XForm
Brought to you by:
alain-couthures
From: Steve H. <ste...@co...> - 2009-11-30 10:53:09
|
Hi, all Firstly can I congratulate AgenceXML for this wonderful piece of work. We've plumbed it into our application and have instantly been able to remove our dependency on the Mozilla XForms plugin. While most of our forms work fine, there is one that is causing us trouble: the form controls are automatically hidden when the form is loaded. We haven't been able to track down why this is the case and wondered if someone could help? I suspect that it is not connecting to the instance document - the binding statements but the XPaths all seem to be in order... The form itself is quite large, but size appears unrelated to the problem: I include a fragment of the form that displays the same behaviour. I'm sure this is something simple but we can't spot it Many thanks Steve <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl"?> <?xsltforms-options debug="no"?> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:dss="http://www.mrc.ac.uk/dss" xmlns="http://www.w3.org/1999/xhtml"> <xhtml:head> <xhtml:meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <xhtml:title>Questionnaire</xhtml:title> <xforms:model id="myModel"> <xforms:instance id="main"> <dss:form > <dss:topicHeading_1> <dss:section_1.1> <dss:element_1.1.1></dss:element_1.1.1> <dss:element_1.1.2></dss:element_1.1.2> <dss:element_1.1.3></dss:element_1.1.3> <dss:element_1.1.4></dss:element_1.1.4> <dss:element_1.1.5></dss:element_1.1.5> <dss:element_1.1.6> <dss:startDate></dss:startDate> <dss:endDate></dss:endDate> </dss:element_1.1.6> <dss:element_1.1.7></dss:element_1.1.7> <dss:element_1.1.8></dss:element_1.1.8> <dss:element_1.1.9></dss:element_1.1.9> <dss:element_1.1.10></dss:element_1.1.10> </dss:section_1.1> </dss:topicHeading_1> </dss:form> </xforms:instance> <xforms:submission id="write-instance" action="../submit.xql" ref="instance('main')" method="post" replace="all"></xforms:submission> <xforms:bind nodeset="//dss:startDate" type="xs:date"></xforms:bind> <xforms:bind nodeset="//dss:endDate" type="xs:date"></xforms:bind> </xforms:model> <xhtml:link href="../default.css" rel="stylesheet" /> </xhtml:head> <xhtml:body> <xhtml:h1>Form </xhtml:h1> <xhtml:h2>Study descriptors</xhtml:h2> <xhtml:h3>Study description</xhtml:h3> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.1"> <xforms:label>Study title: What is the MRC or other published study identifier?</xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.2"> <xforms:label>Study title: What is the title of the study?</xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.3"> <xforms:label>Research area: What is the main clinical or social area studied?</xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.4"> <xforms:label>Study population: Please can you provide a short description of the study population?</xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.5"> <xforms:label>Types of data collected (summary): What are the main categories of data (variables) being collected?</xforms:label> </xforms:input> </p> <xhtml:h4>Collection period: What are the overall time periods of data collection? </xhtml:h4> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.6/dss:startDate"> <xforms:label>Start date:</xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.6/dss:endDate"> <xforms:label>End date:</xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.7"> <xforms:label>Geographical spread: What is the geographical area covered?</xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.8"> <xforms:label>Background summary: Please can you supply a short summary (100-200 words) to outline the study background and historic evolution?</xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.9"> <xforms:label>Web-site URL: URL of the study website or Unit/Centre Web site </xforms:label> </xforms:input> </p> <p> <xforms:input ref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.10"> <xforms:label>Search keywords: What would be the useful search keywords that might locate this study e.g. on the web?</xforms:label> </xforms:input> </p> <xhtml:section> <xforms:submit submission="write-instance"> <xforms:label>Submit</xforms:label> </xforms:submit> </xhtml:section> </xhtml:body> </xhtml:html> |