Re: [Xsltforms-support] problems with an generated XForm
Brought to you by:
alain-couthures
From: <ala...@ag...> - 2009-11-30 11:56:32
|
Hi Steve, I have fixed this problem. It was due on dot in names: it was not allowed by the regular expressions used for parsing with Javascript. It has been committed on the SVN repository. Thanks! -Alain <!-- /* Font Definitions */ @font-face{font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri","sans-serif";}a:link, span.MsoHyperlink{mso-style-priority:99;color:blue;text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed{mso-style-priority:99;color:purple;text-decoration:underline;}span.EmailStyle17{mso-style-type:personal-compose;font-family:"Calibri","sans-serif";color:windowtext;}.MsoChpDefault{mso-style-type:export-only;font-size:10.0pt;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 72.0pt 72.0pt 72.0pt;}div.Section1{page:Section1;}--> Hi, all Firstly can I congratulate AgenceXML for this wonderfulpiece of work. We’ve plumbed it into our application and haveinstantly been able to remove our dependency on the Mozilla XForms plugin. While most of our forms work fine, there is one that iscausing us trouble: the form controls are automatically hidden when the form isloaded. We haven’t been able to track down why this is the case andwondered if someone could help? I suspect that it is not connecting tothe instance document – the binding statements but the XPaths allseem to be in order... The form itself is quite large, but size appears unrelatedto the problem: I include a fragment of the form that displays the samebehaviour. I’m sure this is something simple but we can’tspot 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:metahttp-equiv="Content-Type" content="text/html;charset=UTF-8" /> <xhtml:title>Questionnaire</xhtml:title> <xforms:modelid="myModel"> <xforms:instanceid="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:submissionid="write-instance" action="../submit.xql"ref="instance('main')" method="post" replace="all"></xforms:submission> <xforms:bindnodeset="//dss:startDate" type="xs:date"></xforms:bind> <xforms:bindnodeset="//dss:endDate" type="xs:date"></xforms:bind> </xforms:model> <xhtml:linkhref="../default.css" rel="stylesheet" /> </xhtml:head> <xhtml:body> <xhtml:h1>Form</xhtml:h1> <xhtml:h2>Studydescriptors</xhtml:h2> <xhtml:h3>Studydescription</xhtml:h3> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.1"> <xforms:label>Studytitle: What is the MRC or other published study identifier?</xforms:label> </xforms:input> </p> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.2"> <xforms:label>Studytitle: 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>Researcharea: What is the main clinical or social area studied?</xforms:label> </xforms:input> </p> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.4"> <xforms:label>Studypopulation: Please can you provide a short description of the study population?</xforms:label> </xforms:input> </p> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.5"> <xforms:label>Typesof data collected (summary): What are the main categories of data (variables)being collected?</xforms:label> </xforms:input> </p> <xhtml:h4>Collectionperiod: What are the overall time periods of data collection? </xhtml:h4> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.6/dss:startDate"> <xforms:label>Startdate:</xforms:label> </xforms:input> </p> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.6/dss:endDate"> <xforms:label>Enddate:</xforms:label> </xforms:input> </p> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.7"> <xforms:label>Geographicalspread: What is the geographical area covered?</xforms:label> </xforms:input> </p> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.8"> <xforms:label>Backgroundsummary: Please can you supply a short summary (100-200 words) to outline thestudy background and historic evolution?</xforms:label> </xforms:input> </p> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.9"> <xforms:label>Web-siteURL: URL of the study website or Unit/Centre Web site </xforms:label> </xforms:input> </p> <p> <xforms:inputref="/dss:form/dss:topicHeading_1/dss:section_1.1/dss:element_1.1.10"> <xforms:label>Searchkeywords: What would be the useful search keywords that might locate this studye.g. on the web?</xforms:label> </xforms:input> </p> <xhtml:section> <xforms:submitsubmission="write-instance"> <xforms:label>Submit</xforms:label> </xforms:submit> </xhtml:section> </xhtml:body> </xhtml:html> |