xsltforms-support Mailing List for XSLTForms (Page 103)
Brought to you by:
alain-couthures
You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(6) |
Jun
(9) |
Jul
(16) |
Aug
(5) |
Sep
(43) |
Oct
(36) |
Nov
(58) |
Dec
(43) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(79) |
Feb
(81) |
Mar
(107) |
Apr
(93) |
May
(85) |
Jun
(54) |
Jul
(64) |
Aug
(54) |
Sep
(45) |
Oct
(53) |
Nov
(34) |
Dec
(77) |
2011 |
Jan
(56) |
Feb
(53) |
Mar
(52) |
Apr
(66) |
May
(44) |
Jun
(16) |
Jul
(28) |
Aug
(5) |
Sep
(15) |
Oct
(21) |
Nov
(51) |
Dec
(46) |
2012 |
Jan
(16) |
Feb
(38) |
Mar
(47) |
Apr
(45) |
May
(41) |
Jun
(41) |
Jul
(72) |
Aug
(17) |
Sep
(10) |
Oct
(16) |
Nov
(29) |
Dec
(30) |
2013 |
Jan
(25) |
Feb
(13) |
Mar
(20) |
Apr
(25) |
May
(34) |
Jun
(8) |
Jul
(12) |
Aug
(9) |
Sep
(21) |
Oct
(19) |
Nov
(6) |
Dec
(2) |
2014 |
Jan
(14) |
Feb
(8) |
Mar
(7) |
Apr
(13) |
May
(33) |
Jun
(13) |
Jul
(6) |
Aug
(5) |
Sep
(5) |
Oct
(34) |
Nov
(7) |
Dec
|
2015 |
Jan
(1) |
Feb
(6) |
Mar
(17) |
Apr
(12) |
May
(10) |
Jun
(18) |
Jul
(31) |
Aug
(9) |
Sep
(3) |
Oct
(6) |
Nov
(19) |
Dec
(1) |
2016 |
Jan
(18) |
Feb
(4) |
Mar
(13) |
Apr
(19) |
May
|
Jun
(17) |
Jul
(7) |
Aug
|
Sep
(3) |
Oct
(6) |
Nov
(3) |
Dec
|
2017 |
Jan
(5) |
Feb
(17) |
Mar
(4) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(5) |
Nov
(6) |
Dec
(4) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
(1) |
2019 |
Jan
|
Feb
|
Mar
(4) |
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
(2) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
(13) |
Feb
(17) |
Mar
(8) |
Apr
(11) |
May
(15) |
Jun
(11) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2021 |
Jan
(9) |
Feb
(26) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(18) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(10) |
2022 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(2) |
Nov
(10) |
Dec
(1) |
2023 |
Jan
(10) |
Feb
|
Mar
(7) |
Apr
(8) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(8) |
Oct
(11) |
Nov
(8) |
Dec
(5) |
2024 |
Jan
(7) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(4) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Micah D. <Mic...@ma...> - 2009-11-30 18:19:25
|
Also if you are running MarkLogic 4.1 or later, you already have examples of XSLTForms in use through the Application Builder (default running on localhost:8002) -m On Nov 29, 2009, at 7:51 PM, Alex Bleasdale wrote: >> Has anyone achieved this before? > > > Must have missed this when I initially did my research: > http://xqzone.com/howto/tutorials/2009-11-xsltforms-walkthrough.xqy > > In case anyone else wants to know... > > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Javier D. <jd...@ge...> - 2009-11-30 15:32:14
|
Hello, I have downloaded last version of xsltforms to use it instead beta2 version, because it have some improvements I think they may be useful, and I have one problem with it. In xsltforms.xsl, the property 'indent="no"' from <xsl:output method="html" omit-xml-declaration="no" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/> disappears in this version, and although it seems it works ok when using in a xsl client transformation, when applying the xsltform.xsl in server side, the html generated doesn't work properly. For example, I have tested "bookmarks" sample, and firsty, instead appearing two sections, only the second appears, and then when pressing buttons "New link" and "New section" doesn't work, when I push them, do not appear new links and sections. although it seems they are created, because when pression twice "New section" button, it is only deleted the initial section that appears when "Delete" button is pushed three times. I have been examining the code generated in both cases, but I don't find anything strange. You can see both of them attached in this email. Fortunately, if I put the indent="no" property again, it seems it works again, but I don't know if this affects in any other thing of xsltforms. Best Regards, Javier |
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> |
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> |
From: Alex B. <rho...@ya...> - 2009-11-30 03:51:17
|
> Has anyone achieved this before? Must have missed this when I initially did my research: http://xqzone.com/howto/tutorials/2009-11-xsltforms-walkthrough.xqy In case anyone else wants to know... |
From: Stephen C. <Ste...@ut...> - 2009-11-30 02:40:01
|
The xform below contains my solution to selection of default values in select1 lists, note the 'set-selected' custom action that gets fired by the 'xforms-ready' event. This is working in firefox but there are some problems in IE that will probably be fixed by upgrading to a newer version of xsltforms. Constructive criticism welcomed. Note that I am using a Web Feature Service (WFS) as my backend data source/sink. <?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_data"> <wfs:Transaction version="1.1.0" service="WFS"> <wfs:Insert> <wfs:FeatureCollection> <gml:featureMember> <aatams:device> <aatams:code_name /> <aatams:device_type_ref> <aatams:device_type> <aatams:name> RECEIVER </aatams:name> </aatams:device_type> </aatams:device_type_ref> <aatams:device_model_ref> <aatams:device_model /> </aatams:device_model_ref> <aatams:serial_number /> <aatams:project_person_ref> <aatams:project_person /> </aatams:project_person_ref> </aatams:device> </gml:featureMember> </wfs:FeatureCollection> </wfs:Insert> </wfs:Transaction> </xf:instance> <xf:instance id="inst_subfeatures"> <data xmlns=""> <device_model_id /> <device_type_id /> <project_id /> <project_person_id /> </data> </xf:instance> <xf:instance id="inst_device_model" src="../../deegree-wfs/services?service=WFS&version=1.1.0&request=GetFeature&namespace=xmlns(aatams=http://www.imos.org.au/aatams)&typename=aatams:device_model&filter=<ogc:Filter xmlns:ogc='http://www.opengis.net/ogc' xmlns:aatams='http://www.imos.org.au/aatams' xmlns:gml='http://www.opengis.net/gml'><ogc:PropertyIsEqualTo><ogc:PropertyName>aatams:device_type_ref/aatams:device_type/aatams:name</ogc:PropertyName><ogc:Literal>RECEIVER</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>" /> <xf:instance id="inst_project_person" src="../../deegree-wfs/services?service=WFS&version=1.1.0&request=GetFeature&namespace=xmlns(aatams=http://www.imos.org.au/aatams)&typename=aatams:project_person" /> <xf:instance id="inst_project" src="../../deegree-wfs/services?service=WFS&version=1.1.0&request=GetFeature&namespace=xmlns(aatams=http://www.imos.org.au/aatams)&typename=aatams:project" /> <xf:instance id="inst_response"> <dummy xmlns=""> <ows:Exception /> <wfs:TransactionResponse> <wfs:InsertResults> <wfs:Feature> <ogc:FeatureId /> </wfs:Feature> </wfs:InsertResults> </wfs:TransactionResponse> </dummy> </xf:instance> <xf:bind id="code_name" nodeset="instance('inst_data')//aatams:code_name" type="xsd:string" required="true()" /> <xf:bind id="device_model" nodeset="instance('inst_subfeatures')//device_model_id" type="xsd:string" required="true()" /> <xf:bind id="serial_number" nodeset="instance('inst_data')//aatams:serial_number" type="xsd:string" required="true()" /> <xf:bind id="project" nodeset="instance('inst_subfeatures')//project_id" type="xsd:string" required="true()" /> <xf:bind id="project_person" nodeset="instance('inst_subfeatures')//project_person_id" type="xsd:string" required="true()" /> <xf:bind id="error_message" nodeset="instance('inst_response')//ServiceException" type="xsd:string" /> <xf:bind id="success_message" nodeset="instance('inst_response')//ogc:FeatureId/@fid" type="xsd:string" /> <xf:submission id="s01" ref="instance('inst_data')" method="post" action="../../deegree-wfs/services" replace="instance" instance="inst_response"> <xf:action ev:event="xforms-submit"> <xf:delete nodeset="instance('inst_data')//aatams:status_id[.='']" /> <xf:insert nodeset="instance('inst_data')//aatams:device_model_ref/aatams:device_model" origin="instance('inst_device_model')//aatams:device_model[@gml:id=instance('inst_subfeatures')/device_model_id]" /> <xf:delete nodeset="instance('inst_data')//aatams:device_model_ref/aatams:device_model" at="1" /> <xf:insert nodeset="instance('inst_data')//aatams:project_person_ref/aatams:project_person" origin="instance('inst_project_person')//aatams:project_person[@gml:id=instance('inst_subfeatures')/project_person_id]" /> <xf:delete nodeset="instance('inst_data')//aatams:project_person_ref/aatams:project_person" at="1" /> </xf:action> <xf:message level="modeless" ev:event="xforms-submit-error"> Submit error. </xf:message> </xf:submission> <xf:dispatch ev:event="xforms-ready" name="set-selected" target="model1" /> <xf:action ev:event="set-selected"> <xf:setvalue ref="instance('inst_subfeatures')//device_model_id" value="instance('inst_device_model')//aatams:device_model[1]/@gml:id" /> <xf:setvalue ref="instance('inst_subfeatures')//project_id" value="instance('inst_project')//aatams:project[1]/@gml:id" /> <xf:setvalue ref="instance('inst_subfeatures')//project_person_id" value="instance('inst_project_person')//aatams:project_person[aatams:project_fid=instance('inst_subfeatures')/project_id][1]/@gml:id" /> <xf:dispatch name="xforms-revalidate" target="model1" /> </xf:action> </xf:model> </head> <body><!--Debug--> <div class="form"> <legend>ADD RECEIVER DEVICE</legend> <div class="form-contents"> <xf:input bind="code_name" incremental="true()"> <xf:label>Code Name</xf:label> </xf:input> <!-- xf:select1 bind="device_type" appearance="minimal" incremental="true()"> <xf:label>Device Type</xf:label> <xf:itemset nodeset="instance('inst_device_type')//aatams:device_type"> <xf:value ref="@gml:id"/> <xf:label ref="aatams:name"/> </xf:itemset> </xf:select1--> <xf:select1 bind="device_model" appearance="minimal" incremental="true()"> <xf:label>Model</xf:label> <xf:itemset nodeset="instance('inst_device_model')//aatams:device_model"> <xf:value ref="@gml:id" /> <xf:label ref="aatams:name" /> </xf:itemset> </xf:select1> <xf:input bind="serial_number" incremental="true()"> <xf:label>Serial Number</xf:label> </xf:input> <div class="dependant-selects"> <xf:select1 bind="project" appearance="minimal" incremental="true()"> <xf:label>Project</xf:label> <xf:itemset nodeset="instance('inst_project')//aatams:project"> <xf:value ref="@gml:id" /> <xf:label ref="aatams:name" /> </xf:itemset> <xf:action ev:event="xforms-value-changed"> <xf:setvalue ref="instance('inst_subfeatures')//project_person_id" value="" /> </xf:action> </xf:select1> <xf:select1 bind="project_person" appearance="minimal" incremental="true()"> <xf:label>Person(Role)</xf:label> <xf:itemset nodeset="instance('inst_project_person')//aatams:project_person[aatams:project_fid=instance('inst_subfeatures')/project_id]"> <xf:value ref="@gml:id" /> <xf:label ref="aatams:person_role" /> </xf:itemset> </xf:select1> </div> <xf:submit submission="s01"> <xf:label>Save</xf:label> </xf:submit> <xf:trigger> <xf:label>Reset</xf:label> <xf:reset ev:event="DOMActivate" /> <xf:dispatch ev:event="DOMActivate" name="set-selected" target="model1" /> <xf:delete ev:event="DOMActivate" nodeset="instance('inst_response')//ServiceException" /> <xf:delete ev:event="DOMActivate" nodeset="instance('inst_response')//ogc:FeatureId/@fid" /> </xf:trigger> <xf:group> <xf:output bind="error_message" class="error"> <xf:label>Error:</xf:label> </xf:output> <xf:output bind="success_message"> <xf:label>New Record Id:</xf:label> </xf:output> </xf:group> </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 |
From: Claudius T. <cla...@ya...> - 2009-11-29 09:28:20
|
Hi, Alain, Do you think it is possible to have a button under "Debug" checkbox, which would open another windows and list all the runtime data instances? Just listing in a simple format. Thank you, Claudius Teodorescu |
From: Owen N. <on...@gm...> - 2009-11-28 21:03:20
|
Alain, I do intend to launch an open source project providing tools for XSD-based application development. However, that's a ways off. My XForms tool is presently a prototype, a hack of the XHTML 1.0 schema. It appears to me that a more rigorous implementation would be based on the XHTML 2.0 XForms module, even though the XHTML charter is expiring (what do you think?). Anyhow, I'd be glad to make a product of this and share it with whoever is interested. That would of course require vehicles for posting, entering bugs and providing support. Perhaps we could do that under auspices of XSLTForms, or maybe I could accelerate setting up my project. I will attempt to build a more robust product and then get back to you. Cheers! Owen On Sat, Nov 28, 2009 at 6:51 AM, COUTHURES Alain < ala...@ag...> wrote: > Owen, > > I built a hybrid XForms 1.1. / XHTML schema to validate XForms, then ran > it against your examples to test it. > > This is a very interesting project. Is it an open source project ? > XSLTForms doesn't validate XForms and it can be difficult for developers to > locate problems. > > Attached are the messages that resulted. I believe these to be accurate > from the perspective of strict XHTML / XForms validation; please let me know > if you think otherwise. > > These examples have not been constructed in XHTML validation perspective > but your report will be useful to help for this: > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/balance.xml:7:66: cvc-complex-type.3.2.2: Attribute > 'xsd:dummy' is not allowed to appear in element 'html'. > > 1. This is a workaround for FireFox XSLT engine not supporting namespace > axis. It should be useless, in almost cases, with the next release. > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/balance.xml:52:116: cvc-complex-type.3.2.2: Attribute > 'show' is not allowed to appear in element 'xforms:submission'. > > 2. This is an extension which could be integrated in XForms 1.2. It should > be attached to a different namespace for validation. > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/select-model.xml:39:57: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:itemset'. One of '{" > http://www.w3.org/2002/xforms":label}' is expected. > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/select1.xml:20:22: cvc-complex-type.2.4.a: Invalid > content was found starting with element 'xf:item'. One of '{" > http://www.w3.org/2002/xforms":label}' is expected. > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/spreadsheet.xml:56:55: cvc-complex-type.2.4.a: Invalid > content was found starting with element 'xf:input'. One of '{" > http://www.w3.org/2002/xforms":label}' is expected. > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/calculator.xml:241:41: cvc-complex-type.2.4.a: Invalid > content was found starting with element 'xf:trigger'. One of '{" > http://www.w3.org/2002/xforms":label}' is expected. > > 3. But there is one xf:label element ??? > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/incremental.xml:20:40: cvc-complex-type.3.2.2: > Attribute 'nodeset' is not allowed to appear in element 'xf:group'. > > 4. Yes, that's right. It wasn't detected before because it's useless > anyway. > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/incremental.xml:23:23: cvc-complex-type.2.4.a: Invalid > content was found starting with element 'xf:label'. One of '{" > http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, " > http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, " > http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, " > http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, " > http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, " > http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, " > http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, " > http://www.w3.org/1999/xhtml":blockquote, "http://www.w3.org/1999/xhtml":address, > "http://www.w3.org/1999/xhtml":fieldset, "http://www.w3.org/1999/xhtml":table, > "http://www.w3.org/2002/xforms":group, "http://www.w3.org/2002/xforms":repeat, > "http://www.w3.org/2002/xforms":switch, "http://www.w3.org/2002/xforms":input, > "http://www.w3.org/2002/xforms":output, "http://www.w3.org/2002/xforms":range, > "http://www.w3.org/2002/xforms":secret, "http://www.w3.org/2002/xforms":select1, > "http://www.w3.org/2002/xforms":select, "http://www.w3.org/2002/xforms":submit, > "http://www.w3.org/2002/xforms":textarea, "http://www.w3.org/2002/xforms":trigger, > "http://www.w3.org/1999/xhtml":form, "http://www.w3.org/1999/xhtml":a, " > http://www.w3.org/1999/xhtml":span, "http://www.w3.org/1999/xhtml":bdo, " > http://www.w3.org/1999/xhtml":map, "http://www.w3.org/1999/xhtml":object, > "http://www.w3.org/1999/xhtml":img, "http://www.w3.org/1999/xhtml":tt, " > http://www.w3.org/1999/xhtml":i, "http://www.w3.org/1999/xhtml":b, " > http://www.w3.org/1999/xhtml":big, "http://www.w3.org/1999/xhtml":small, " > http://www.w3.org/1999/xhtml":em, "http://www.w3.org/1999/xhtml":strong, " > http://www.w3.org/1999/xhtml":dfn, "http://www.w3.org/1999/xhtml":code, " > http://www.w3.org/1999/xhtml":q, "http://www.w3.org/1999/xhtml":samp, " > http://www.w3.org/1999/xhtml":kbd, "http://www.w3.org/1999/xhtml":var, " > http://www.w3.org/1999/xhtml":cite, "http://www.w3.org/1999/xhtml":abbr, " > http://www.w3.org/1999/xhtml":acronym, "http://www.w3.org/1999/xhtml":sub, > "http://www.w3.org/1999/xhtml":sup, "http://www.w3.org/1999/xhtml":input, > "http://www.w3.org/1999/xhtml":select, "http://www.w3.org/1999/xhtml":textarea, > "http://www.w3.org/1999/xhtml":label, "http://www.w3.org/1999/xhtml":button, > "http://www.w3.org/1999/xhtml":noscript, "http://www.w3.org/1999/xhtml":ins, > "http://www.w3.org/1999/xhtml":del, "http://www.w3.org/1999/xhtml":script}' > is expected. > > 5. "fieldset" and "xf:group" have to be swapped. > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/spreadsheet.xml:51:57: UndeclaredPrefix: Cannot > resolve 'xsltforms:decimal' as a QName: the prefix 'xsltforms' is not > declared. > > 6. Yes, the corresponding namespace declaration is missing. > > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/xpath.xml:30:13: cvc-complex-type.2.4.a: Invalid > content was found starting with element 'ajx:tabs'. One of '{" > http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, " > http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, " > http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, " > http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, " > http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, " > http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, " > http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, " > http://www.w3.org/1999/xhtml":blockquote, "http://www.w3.org/1999/xhtml":address, > "http://www.w3.org/1999/xhtml":fieldset, "http://www.w3.org/1999/xhtml":table, > "http://www.w3.org/2002/xforms":group, "http://www.w3.org/2002/xforms":repeat, > "http://www.w3.org/2002/xforms":switch, "http://www.w3.org/2002/xforms":input, > "http://www.w3.org/2002/xforms":output, "http://www.w3.org/2002/xforms":range, > "http://www.w3.org/2002/xforms":secret, "http://www.w3.org/2002/xforms":select1, > "http://www.w3.org/2002/xforms":select, "http://www.w3.org/2002/xforms":submit, > "http://www.w3.org/2002/xforms":textarea, "http://www.w3.org/2002/xforms":trigger, > "http://www.w3.org/1999/xhtml":form, "http://www.w3.org/1999/xhtml":noscript, > "http://www.w3.org/1999/xhtml":ins, "http://www.w3.org/1999/xhtml":del, " > http://www.w3.org/1999/xhtml":script}' is expected. > > 7. ajx:tabs is an AJAXForms extension which will be depreciated in the next > release > > Examples have been partially updated and committed in the SVN repository. > > Thanks! > > -Alain > > > -- Best, Owen Newnan cell 720 260-5753 home 303 697 1925 http://www.linkedin.com/in/OwenNewnan |
From: Claudius T. <cla...@ya...> - 2009-11-28 20:39:47
|
Alain is right. When I needed a default value, I used to set on "xforms-submit-done" event of the respective submission. On the other hand, I have select1 elements dynamically populated as you said where, for design purposes, I don't set an initial value. It is up to you. Claudius Teodorescu |
From: COUTHURES A. <ala...@ag...> - 2009-11-28 14:46:22
|
Hi, > The select1 populates with the name/value pairs as expected and shows the first item in the select1 list; however - on load, the first item isn't selected by default. The user would need to activate the select1 control and select something before the element contained anything. > XSLTForms select1 control behavior has to be improved so, as other XForms implementations do, an empty value is displayed when no item is, yet, selected. This empty value shouldn't be accessible as soon as an item has been selected. This is not standard HTML SELECT behavior... > I think I can use xf:setvalue when the document is ready to make all the default selections but I was wondering whether select1s should automatically select the first item in a list in cases like this? > No, this has to be considered this way: a select1 control shows which item value is binded with it. An xf:setvalue has to be used to initialize an instance value if required (on "xforms-model-construct-done" event, for example) but there cannot be a default selected value for a select1 control. -Alain |
From: COUTHURES A. <ala...@ag...> - 2009-11-28 14:11:25
|
Paul, > OK, occured to me to view source on the output and here's what I found: > > new XFInstance("events",xf_model_0,null,'<newsm:newsitem xmlns:newsml="http://iptc.org/std/nar/2006-10-01/">foo</newsm:newsitem>'); > FireBug for FF3.5 on Windows gives me: new XFInstance("events",xf_model_0,null,'<newsml:newsitem xmlns:newsml="http://iptc.org/std/nar/2006-10-01/">foo</newsml:newsitem>'); Web Inspector for Safari 4.0.4 on Windows gives me: new XFInstance("events",xf_model_0,null,'<newsml:newsitem xmlns:newsml="http://iptc.org/std/nar/2006-10-01/">foo</newsml:newsitem>'); > Seems crazy. Am I right? If so it looks like a processor bug? > Yes, it looks like... but for both FireFox and Safari on your machine?? > Are you able to reproduce based on that second corrected code I sent, Alain? > No, I can't reproduce that... Can you test on another machine ? -Alain |
From: Alex B. <rho...@ya...> - 2009-11-28 13:51:03
|
Hi, I'm wondering whether someone on this forum can advise? I've got a select1 which is being populated dynamically from an XQuery. The select1 populates with the name/value pairs as expected and shows the first item in the select1 list; however - on load, the first item isn't selected by default. The user would need to activate the select1 control and select something before the element contained anything. I think I can use xf:setvalue when the document is ready to make all the default selections but I was wondering whether select1s should automatically select the first item in a list in cases like this? Thanks, A |
From: COUTHURES A. <ala...@ag...> - 2009-11-28 13:49:30
|
Owen, > I built a hybrid XForms 1.1. / XHTML schema to validate XForms, then > ran it against your examples to test it. This is a very interesting project. Is it an open source project ? XSLTForms doesn't validate XForms and it can be difficult for developers to locate problems. > Attached are the messages that resulted. I believe these to be > accurate from the perspective of strict XHTML / XForms validation; > please let me know if you think otherwise. These examples have not been constructed in XHTML validation perspective but your report will be useful to help for this: > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/balance.xml:7:66: cvc-complex-type.3.2.2: > Attribute 'xsd:dummy' is not allowed to appear in element 'html'. 1. This is a workaround for FireFox XSLT engine not supporting namespace axis. It should be useless, in almost cases, with the next release. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/balance.xml:52:116: cvc-complex-type.3.2.2: > Attribute 'show' is not allowed to appear in element 'xforms:submission'. 2. This is an extension which could be integrated in XForms 1.2. It should be attached to a different namespace for validation. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/select-model.xml:39:57: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:itemset'. One of > '{"http://www.w3.org/2002/xforms":label}' is expected. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/select1.xml:20:22: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:item'. One of > '{"http://www.w3.org/2002/xforms":label}' is expected. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/spreadsheet.xml:56:55: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:input'. One of > '{"http://www.w3.org/2002/xforms":label}' is expected. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/calculator.xml:241:41: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:trigger'. One of > '{"http://www.w3.org/2002/xforms":label}' is expected. 3. But there is one xf:label element ??? > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/incremental.xml:20:40: cvc-complex-type.3.2.2: > Attribute 'nodeset' is not allowed to appear in element 'xf:group'. 4. Yes, that's right. It wasn't detected before because it's useless anyway. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/incremental.xml:23:23: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:label'. One of > '{"http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, > "http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, > "http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, > "http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, > "http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, > "http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, > "http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, > "http://www.w3.org/1999/xhtml":blockquote, > "http://www.w3.org/1999/xhtml":address, > "http://www.w3.org/1999/xhtml":fieldset, > "http://www.w3.org/1999/xhtml":table, > "http://www.w3.org/2002/xforms":group, > "http://www.w3.org/2002/xforms":repeat, > "http://www.w3.org/2002/xforms":switch, > "http://www.w3.org/2002/xforms":input, > "http://www.w3.org/2002/xforms":output, > "http://www.w3.org/2002/xforms":range, > "http://www.w3.org/2002/xforms":secret, > "http://www.w3.org/2002/xforms":select1, > "http://www.w3.org/2002/xforms":select, > "http://www.w3.org/2002/xforms":submit, > "http://www.w3.org/2002/xforms":textarea, > "http://www.w3.org/2002/xforms":trigger, > "http://www.w3.org/1999/xhtml":form, "http://www.w3.org/1999/xhtml":a, > "http://www.w3.org/1999/xhtml":span, > "http://www.w3.org/1999/xhtml":bdo, > "http://www.w3.org/1999/xhtml":map, > "http://www.w3.org/1999/xhtml":object, > "http://www.w3.org/1999/xhtml":img, "http://www.w3.org/1999/xhtml":tt, > "http://www.w3.org/1999/xhtml":i, "http://www.w3.org/1999/xhtml":b, > "http://www.w3.org/1999/xhtml":big, > "http://www.w3.org/1999/xhtml":small, > "http://www.w3.org/1999/xhtml":em, > "http://www.w3.org/1999/xhtml":strong, > "http://www.w3.org/1999/xhtml":dfn, > "http://www.w3.org/1999/xhtml":code, "http://www.w3.org/1999/xhtml":q, > "http://www.w3.org/1999/xhtml":samp, > "http://www.w3.org/1999/xhtml":kbd, > "http://www.w3.org/1999/xhtml":var, > "http://www.w3.org/1999/xhtml":cite, > "http://www.w3.org/1999/xhtml":abbr, > "http://www.w3.org/1999/xhtml":acronym, > "http://www.w3.org/1999/xhtml":sub, > "http://www.w3.org/1999/xhtml":sup, > "http://www.w3.org/1999/xhtml":input, > "http://www.w3.org/1999/xhtml":select, > "http://www.w3.org/1999/xhtml":textarea, > "http://www.w3.org/1999/xhtml":label, > "http://www.w3.org/1999/xhtml":button, > "http://www.w3.org/1999/xhtml":noscript, > "http://www.w3.org/1999/xhtml":ins, > "http://www.w3.org/1999/xhtml":del, > "http://www.w3.org/1999/xhtml":script}' is expected. 5. "fieldset" and "xf:group" have to be swapped. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/spreadsheet.xml:51:57: UndeclaredPrefix: Cannot > resolve 'xsltforms:decimal' as a QName: the prefix 'xsltforms' is not > declared. 6. Yes, the corresponding namespace declaration is missing. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/xpath.xml:30:13: cvc-complex-type.2.4.a: Invalid > content was found starting with element 'ajx:tabs'. One of > '{"http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, > "http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, > "http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, > "http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, > "http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, > "http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, > "http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, > "http://www.w3.org/1999/xhtml":blockquote, > "http://www.w3.org/1999/xhtml":address, > "http://www.w3.org/1999/xhtml":fieldset, > "http://www.w3.org/1999/xhtml":table, > "http://www.w3.org/2002/xforms":group, > "http://www.w3.org/2002/xforms":repeat, > "http://www.w3.org/2002/xforms":switch, > "http://www.w3.org/2002/xforms":input, > "http://www.w3.org/2002/xforms":output, > "http://www.w3.org/2002/xforms":range, > "http://www.w3.org/2002/xforms":secret, > "http://www.w3.org/2002/xforms":select1, > "http://www.w3.org/2002/xforms":select, > "http://www.w3.org/2002/xforms":submit, > "http://www.w3.org/2002/xforms":textarea, > "http://www.w3.org/2002/xforms":trigger, > "http://www.w3.org/1999/xhtml":form, > "http://www.w3.org/1999/xhtml":noscript, > "http://www.w3.org/1999/xhtml":ins, > "http://www.w3.org/1999/xhtml":del, > "http://www.w3.org/1999/xhtml":script}' is expected. 7. ajx:tabs is an AJAXForms extension which will be depreciated in the next release Examples have been partially updated and committed in the SVN repository. Thanks! -Alain |
From: Owen N. <on...@gm...> - 2009-11-28 02:07:31
|
This is strictly an FYI, not a request for code maintenance. I built a hybrid XForms 1.1. / XHTML schema to validate XForms, then ran it against your examples to test it. Attached are the messages that resulted. I believe these to be accurate from the perspective of strict XHTML / XForms validation; please let me know if you think otherwise. -- Best, Owen Newnan cell 720 260-5753 home 303 697 1925 ============================================================================ Buildfile: /Users/Shared/workspaces/workspace/XML Stuff/build.xml validate-xsltforms-demos: validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/balance.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/balance.xml:7:66: cvc-complex-type.3.2.2: Attribute 'xsd:dummy' is not allowed to appear in element 'html'. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/balance.xml:52:116: cvc-complex-type.3.2.2: Attribute 'show' is not allowed to appear in element 'xforms:submission'. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/balance.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-model.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-model.xml:39:57: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:itemset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-model.xml:46:11: cvc-complex-type.2.3: Element 'body' cannot have character [children], because the type's content type is element-only. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-model.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/deep-copy.xml, failonerror = false. validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml:53:131: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:itemset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml:61:142: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:itemset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml:69:142: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:itemset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml:77:142: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:itemset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml:85:142: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:itemset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml:93:142: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:itemset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml:101:117: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:itemset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-multi-col.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/first-field.xml, failonerror = false. validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/bind.xml, failonerror = false. validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/balance.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/balance.xml:7:66: cvc-complex-type.3.2.2: Attribute 'xsd:dummy' is not allowed to appear in element 'html'. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/balance.xml:52:116: cvc-complex-type.3.2.2: Attribute 'show' is not allowed to appear in element 'xforms:submission'. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/balance.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/hello.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/hello.xml:15:54: cvc-complex-type.2.4.a: Invalid content was found starting with element 'br'. One of '{" http://www.w3.org/1999/xhtml":a, "http://www.w3.org/1999/xhtml":span, " http://www.w3.org/1999/xhtml":bdo, "http://www.w3.org/1999/xhtml":map, " http://www.w3.org/1999/xhtml":object, "http://www.w3.org/1999/xhtml":img, " http://www.w3.org/1999/xhtml":tt, "http://www.w3.org/1999/xhtml":i, " http://www.w3.org/1999/xhtml":b, "http://www.w3.org/1999/xhtml":big, " http://www.w3.org/1999/xhtml":small, "http://www.w3.org/1999/xhtml":em, " http://www.w3.org/1999/xhtml":strong, "http://www.w3.org/1999/xhtml":dfn, " http://www.w3.org/1999/xhtml":code, "http://www.w3.org/1999/xhtml":q, " http://www.w3.org/1999/xhtml":samp, "http://www.w3.org/1999/xhtml":kbd, " http://www.w3.org/1999/xhtml":var, "http://www.w3.org/1999/xhtml":cite, " http://www.w3.org/1999/xhtml":abbr, "http://www.w3.org/1999/xhtml":acronym, "http://www.w3.org/1999/xhtml":sub, "http://www.w3.org/1999/xhtml":sup, " http://www.w3.org/1999/xhtml":input, "http://www.w3.org/1999/xhtml":select, "http://www.w3.org/1999/xhtml":textarea, "http://www.w3.org/1999/xhtml":label, "http://www.w3.org/1999/xhtml":button, "http://www.w3.org/1999/xhtml":ins, " http://www.w3.org/1999/xhtml":del, "http://www.w3.org/1999/xhtml":script, " http://www.w3.org/2002/xforms":group, "http://www.w3.org/2002/xforms":repeat, "http://www.w3.org/2002/xforms":switch, "http://www.w3.org/2002/xforms":input, "http://www.w3.org/2002/xforms":output, "http://www.w3.org/2002/xforms":range, "http://www.w3.org/2002/xforms":secret, "http://www.w3.org/2002/xforms":select1, "http://www.w3.org/2002/xforms":select, "http://www.w3.org/2002/xforms":submit, "http://www.w3.org/2002/xforms":textarea, "http://www.w3.org/2002/xforms":trigger}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/hello.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select1-drop.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select1-drop.xml:52:12: cvc-complex-type.2.3: Element 'body' cannot have character [children], because the type's content type is element-only. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select1-drop.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/bookmarks.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/bookmarks.xml:26:114: cvc-complex-type.3.2.2: Attribute 'show' is not allowed to appear in element 'xf:submission'. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/bookmarks.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/incremental.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/incremental.xml:20:40: cvc-complex-type.3.2.2: Attribute 'nodeset' is not allowed to appear in element 'xf:group'. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/incremental.xml:21:20: cvc-complex-type.2.4.a: Invalid content was found starting with element 'fieldset'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/incremental.xml:23:23: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:label'. One of '{" http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, " http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, " http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, " http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, " http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, " http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, " http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, " http://www.w3.org/1999/xhtml":blockquote, "http://www.w3.org/1999/xhtml":address, "http://www.w3.org/1999/xhtml":fieldset, "http://www.w3.org/1999/xhtml":table, "http://www.w3.org/2002/xforms":group, "http://www.w3.org/2002/xforms":repeat, "http://www.w3.org/2002/xforms":switch, "http://www.w3.org/2002/xforms":input, "http://www.w3.org/2002/xforms":output, "http://www.w3.org/2002/xforms":range, "http://www.w3.org/2002/xforms":secret, "http://www.w3.org/2002/xforms":select1, "http://www.w3.org/2002/xforms":select, "http://www.w3.org/2002/xforms":submit, "http://www.w3.org/2002/xforms":textarea, "http://www.w3.org/2002/xforms":trigger, "http://www.w3.org/1999/xhtml":form, "http://www.w3.org/1999/xhtml":a, " http://www.w3.org/1999/xhtml":span, "http://www.w3.org/1999/xhtml":bdo, " http://www.w3.org/1999/xhtml":map, "http://www.w3.org/1999/xhtml":object, " http://www.w3.org/1999/xhtml":img, "http://www.w3.org/1999/xhtml":tt, " http://www.w3.org/1999/xhtml":i, "http://www.w3.org/1999/xhtml":b, " http://www.w3.org/1999/xhtml":big, "http://www.w3.org/1999/xhtml":small, " http://www.w3.org/1999/xhtml":em, "http://www.w3.org/1999/xhtml":strong, " http://www.w3.org/1999/xhtml":dfn, "http://www.w3.org/1999/xhtml":code, " http://www.w3.org/1999/xhtml":q, "http://www.w3.org/1999/xhtml":samp, " http://www.w3.org/1999/xhtml":kbd, "http://www.w3.org/1999/xhtml":var, " http://www.w3.org/1999/xhtml":cite, "http://www.w3.org/1999/xhtml":abbr, " http://www.w3.org/1999/xhtml":acronym, "http://www.w3.org/1999/xhtml":sub, " http://www.w3.org/1999/xhtml":sup, "http://www.w3.org/1999/xhtml":input, " http://www.w3.org/1999/xhtml":select, "http://www.w3.org/1999/xhtml":textarea, "http://www.w3.org/1999/xhtml":label, "http://www.w3.org/1999/xhtml":button, "http://www.w3.org/1999/xhtml":noscript, "http://www.w3.org/1999/xhtml":ins, "http://www.w3.org/1999/xhtml":del, "http://www.w3.org/1999/xhtml":script}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/incremental.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select1.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select1.xml:20:22: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:item'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select1.xml:42:11: cvc-complex-type.2.3: Element 'body' cannot have character [children], because the type's content type is element-only. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select1.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/button.xml, failonerror = false. validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/input-width.xml, failonerror = false. validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:51:57: UndeclaredPrefix: Cannot resolve 'xsltforms:decimal' as a QName: the prefix 'xsltforms' is not declared. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:51:57: cvc-attribute.3: The value 'xsltforms:decimal' of attribute 'type' on element 'xf:bind' is not valid with respect to its type, 'QName'. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:56:55: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:input'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:56:55: cvc-complex-type.2.4.b: The content of element 'xf:input' is not complete. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:57:55: cvc-complex-type.2.4.b: The content of element 'xf:input' is not complete. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:58:55: cvc-complex-type.2.4.b: The content of element 'xf:input' is not complete. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:60:55: cvc-complex-type.2.4.b: The content of element 'xf:input' is not complete. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:61:55: cvc-complex-type.2.4.b: The content of element 'xf:input' is not complete. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:66:55: cvc-complex-type.2.4.b: The content of element 'xf:input' is not complete. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:67:55: cvc-complex-type.2.4.b: The content of element 'xf:input' is not complete. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml:68:55: cvc-complex-type.2.4.b: The content of element 'xf:input' is not complete. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/spreadsheet.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/calculator.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/calculator.xml:241:41: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:trigger'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/calculator.xml:252:41: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:trigger'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/calculator.xml:263:41: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:trigger'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/calculator.xml:274:41: cvc-complex-type.2.4.a: Invalid content was found starting with element 'xf:trigger'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/calculator.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/input.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/input.xml:31:32: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, " http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, " http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, " http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, " http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, " http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, " http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, " http://www.w3.org/1999/xhtml":blockquote, "http://www.w3.org/1999/xhtml":address, "http://www.w3.org/1999/xhtml":fieldset, "http://www.w3.org/1999/xhtml":table, "http://www.w3.org/2002/xforms":group, "http://www.w3.org/2002/xforms":repeat, "http://www.w3.org/2002/xforms":switch, "http://www.w3.org/2002/xforms":input, "http://www.w3.org/2002/xforms":output, "http://www.w3.org/2002/xforms":range, "http://www.w3.org/2002/xforms":secret, "http://www.w3.org/2002/xforms":select1, "http://www.w3.org/2002/xforms":select, "http://www.w3.org/2002/xforms":submit, "http://www.w3.org/2002/xforms":textarea, "http://www.w3.org/2002/xforms":trigger, "http://www.w3.org/1999/xhtml":form, "http://www.w3.org/1999/xhtml":noscript, "http://www.w3.org/1999/xhtml":ins, "http://www.w3.org/1999/xhtml":del, " http://www.w3.org/1999/xhtml":script}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/input.xml:35:11: cvc-complex-type.2.3: Element 'body' cannot have character [children], because the type's content type is element-only. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/input.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/textarea.xml, failonerror = false. validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/checkbox.xml, failonerror = false. validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/secret.xml, failonerror = false. validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xf.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xf.xml:24:112: cvc-complex-type.3.2.2: Attribute 'show' is not allowed to appear in element 'xf:submission'. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xf.xml:35:22: cvc-complex-type.2.4.a: Invalid content was found starting with element 'input'. One of '{" http://www.w3.org/2002/xforms":label}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xf.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-from-file.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-from-file.xml:24:11: cvc-complex-type.2.3: Element 'head' cannot have character [children], because the type's content type is element-only. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/select-from-file.xml is not a valid XML document validate-xforms11: [echo] Validating /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml, failonerror = false. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:30:13: cvc-complex-type.2.4.a: Invalid content was found starting with element 'ajx:tabs'. One of '{" http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, " http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, " http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, " http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, " http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, " http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, " http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, " http://www.w3.org/1999/xhtml":blockquote, "http://www.w3.org/1999/xhtml":address, "http://www.w3.org/1999/xhtml":fieldset, "http://www.w3.org/1999/xhtml":table, "http://www.w3.org/2002/xforms":group, "http://www.w3.org/2002/xforms":repeat, "http://www.w3.org/2002/xforms":switch, "http://www.w3.org/2002/xforms":input, "http://www.w3.org/2002/xforms":output, "http://www.w3.org/2002/xforms":range, "http://www.w3.org/2002/xforms":secret, "http://www.w3.org/2002/xforms":select1, "http://www.w3.org/2002/xforms":select, "http://www.w3.org/2002/xforms":submit, "http://www.w3.org/2002/xforms":textarea, "http://www.w3.org/2002/xforms":trigger, "http://www.w3.org/1999/xhtml":form, "http://www.w3.org/1999/xhtml":noscript, "http://www.w3.org/1999/xhtml":ins, "http://www.w3.org/1999/xhtml":del, " http://www.w3.org/1999/xhtml":script}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:34:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:40:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:46:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:57:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:69:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:76:28: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:81:28: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:89:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:94:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:100:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:105:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:110:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:116:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:130:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:135:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:142:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:148:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:154:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:160:28: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:166:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:172:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:178:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:186:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:191:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:196:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:202:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:208:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:215:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:222:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:229:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:234:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:239:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:249:26: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml:255:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'b'. One of '{" http://www.w3.org/2002/xforms":output}' is expected. [schemavalidate] /Users/Shared/workspaces/workspace/XML Stuff/XSLTForms-Demos/xpath.xml is not a valid XML document BUILD SUCCESSFUL Total time: 36 seconds |
From: Paul K. <pa...@xm...> - 2009-11-27 21:32:29
|
OK, occured to me to view source on the output and here's what I found: new XFInstance("events",xf_model_0,null,'<newsm:newsitem xmlns:newsml="http://iptc.org/std/nar/2006-10-01/">foo</newsm:newsitem>'); Note: "<newsm:newsitem" So I followed the trail in xsltforms.xsl to here: <xsl:template match="xforms:instance" mode="script" priority="1"> and then inside that template to here: <xsl:otherwise> <xsl:text>null,'</xsl:text> <xsl:apply-templates select="*" mode="xml2string"> <xsl:with-param name="root" select="true()"/> </xsl:apply-templates> <xsl:text>'); </xsl:text> </xsl:otherwise> From there I think it's handed off to: <xsl:template match="*" mode="xml2string"> where it looks like the culprit is: <xsl:value-of select="name()"/> i.e. name() = newsm:newsitem Seems crazy. Am I right? If so it looks like a processor bug? Are you able to reproduce based on that second corrected code I sent, Alain? On 2009-11-27, at 3:42 PM, Paul Kelly wrote: > Problem still exists though :) I fixed the code to make it re-produce the original error I specified. > > Did you run the corrected code? That should show you the truncation of the name. > > > On 2009-11-27, at 3:23 PM, COUTHURES Alain wrote: > >> Paul, >>> Sorry, the following line was wrong: >>> >>> <xf:instance xmlns:newsml="" id="events"> >>> >>> should be: >>> >>> <xf:instance xmlns="" id="events"> >>> >> Yes, for me this is detected by the browser itself. >> >> Thank you for testing XSLTForms ! >> >> -Alain > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Paul K. <pa...@xm...> - 2009-11-27 20:42:52
|
Problem still exists though :) I fixed the code to make it re-produce the original error I specified. Did you run the corrected code? That should show you the truncation of the name. On 2009-11-27, at 3:23 PM, COUTHURES Alain wrote: > Paul, >> Sorry, the following line was wrong: >> >> <xf:instance xmlns:newsml="" id="events"> >> >> should be: >> >> <xf:instance xmlns="" id="events"> >> > Yes, for me this is detected by the browser itself. > > Thank you for testing XSLTForms ! > > -Alain |
From: COUTHURES A. <ala...@ag...> - 2009-11-27 20:40:33
|
Hello Christophe, As you probably already know XPath parsing is performed with XSLT 1.0 in XSLTForms. This is clearly the most complex part of it and not everything is perfect yet... > > XSLTForms Exception > -------------------------- > > Error parsing the following XPath expression : > > if(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/selected='true', > concat(.,instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, > ' '), concat(substring-before(. > ,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, > ' ') ), substring-after ( > .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, > ' ')))) > > Unknown operator at ' ( > .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, > ' '))))' in > 'if(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/selected='true', > concat(.,instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, > ' '), concat(substring-before(. > ,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, > ' ') ), substring-after ( > .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, > ' '))))' > There is a white space between "substring-after" and "(". > > XSLTForms Exception > -------------------------- > > Error parsing the following XPath expression : > > if(string-length(.) = 0 > ,(if(../preceding-sibling::*[1]/position[1],../preceding-sibling::*[1]/position[1] > + 1 ,1)), .) > > Unknown operator at > ':*[1]/position[1],../preceding-sibling::*[1]/position[1] + 1 ,1)), > .)' in 'if(string-length(.) = 0 > ,(if(../preceding-sibling::*[1]/position[1],../preceding-sibling::*[1]/position[1] > + 1 ,1)), .)' Axes are not yet supported. It shouldn't require a lot of time to implement them in XSLTForms, considering that the Javascript part (inherited from AJAXForms) can already treat them. Thank you for testing XSLTForms! -Alain |
From: COUTHURES A. <ala...@ag...> - 2009-11-27 20:29:17
|
Paul, > Sorry, the following line was wrong: > > <xf:instance xmlns:newsml="" id="events"> > > should be: > > <xf:instance xmlns="" id="events"> > Yes, for me this is detected by the browser itself. Thank you for testing XSLTForms ! -Alain |
From: Alex B. <rho...@ya...> - 2009-11-27 18:07:36
|
Hi, I'm wondering whether anyone has had any success getting ML to generate an XForm dynamically? I've seen the examples in the Wikibook for eXist (http://en.wikibooks.org/wiki/XRX/XSLTForms_and_eXist) and I found this in a MarkLogic forum (http://www.mail-archive.com/ge...@de.../msg02337.html) but as soon as I try to put in the XSLTForms PI, ML throws an error: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Lbrace_ in /create/, on line 3 [1.0-ml] Based on that forum posting so far, I've tried this: declare function common:generateXsltFormsPi(){ let $pi := "<?xml-stylesheet href='/xsltforms/xsltforms.xsl' type='text/xsl'?>" return (xdmp:unquote($pi)) } Has anyone achieved this before? |
From: Paul K. <pa...@xm...> - 2009-11-27 16:23:22
|
Sorry, the following line was wrong: <xf:instance xmlns:newsml="" id="events"> should be: <xf:instance xmlns="" id="events"> Here's the corrected code: <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:newsml="http://iptc.org/std/nar/2006-10-01/" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>Demonstration of XForms Select1</title> <style type="text/css">body {font-family: Helvetica, sans-serif;}</style> <xf:model> <xf:instance xmlns=""> <data> <DayOfWeekCode/> </data> </xf:instance> <xf:instance xmlns="" id="events"> <newsml:newsitem>foo</newsml:newsitem> </xf:instance> </xf:model> </head> <body> <xf:select1 ref="DayOfWeekCode"> <xf:label>Day of Week:</xf:label> <xf:item> <xf:label>Monday</xf:label> <xf:value>monday</xf:value> </xf:item> <xf:item> <xf:label>Tesday</xf:label> <xf:value>tuesday</xf:value> </xf:item> <xf:item> <xf:label>Wednesday</xf:label> <xf:value>wednesday</xf:value> </xf:item> <xf:item> <xf:label>Thrusday</xf:label> <xf:value>thrusday</xf:value> </xf:item> <xf:item> <xf:label>Friday</xf:label> <xf:value>friday</xf:value> </xf:item> <xf:item> <xf:label>Saturday</xf:label> <xf:value>saturday</xf:value> </xf:item> <xf:item> <xf:label>Sunday</xf:label> <xf:value>sunday</xf:value> </xf:item> </xf:select1> <br/> Output: <xf:output ref="DayOfWeekCode"/> </body> </html> On 2009-11-26, at 4:15 PM, Paul Kelly wrote: > Hi, I'm pasting a simple form borrowed from here: > > http://en.wikibooks.org/wiki/XForms/Select1_drop_list#Source_Code > > Only I've added an instance containing a namespaced element. The name space is declared globally and can either be declared at xf:instance or not, I still get the same error in both firefox and safari: > > *** > XSLTForms Exception > -------------------------- > > Error initializing : > > XML parser exception: prefix newsm not found > > </message> > *** > > Note the the name is actually "newsml" not "newsm". That's consistent: if I change the name to "moo" the error says it is "mo". Even if i'm making a simple, obvious error it seems weird that the name is truncaed like that. > > Running this on eXist 1.4.0 on OSX. Any help is appreciated. Thanks. > > Source: > > <?xml version="1.0" encoding="UTF-8"?> > <html > xmlns="http://www.w3.org/1999/xhtml" > xmlns:newsml="http://iptc.org/std/nar/2006-10-01/" > xmlns:xf="http://www.w3.org/2002/xforms"> > <head> > <title>Demonstration of XForms Select1</title> > <style type="text/css">body {font-family: Helvetica, sans-serif;}</style> > <xf:model> > <xf:instance xmlns=""> > <data> > <DayOfWeekCode/> > </data> > </xf:instance> > <xf:instance xmlns:newsml="" id="events"> > <newsml:newsitem>foo</newsml:newsitem> > </xf:instance> > </xf:model> > </head> > <body> > <xf:select1 ref="DayOfWeekCode"> > <xf:label>Day of Week:</xf:label> > <xf:item> > <xf:label>Monday</xf:label> > <xf:value>monday</xf:value> > </xf:item> > <xf:item> > <xf:label>Tesday</xf:label> > <xf:value>tuesday</xf:value> > </xf:item> > <xf:item> > <xf:label>Wednesday</xf:label> > <xf:value>wednesday</xf:value> > </xf:item> > <xf:item> > <xf:label>Thrusday</xf:label> > <xf:value>thrusday</xf:value> > </xf:item> > <xf:item> > <xf:label>Friday</xf:label> > <xf:value>friday</xf:value> > </xf:item> > <xf:item> > <xf:label>Saturday</xf:label> > <xf:value>saturday</xf:value> > </xf:item> > <xf:item> > <xf:label>Sunday</xf:label> > <xf:value>sunday</xf:value> > </xf:item> > </xf:select1> > <br/> > Output: <xf:output ref="DayOfWeekCode"/> > </body> > </html> > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Paul K. <pa...@xm...> - 2009-11-26 21:16:05
|
Hi, I'm pasting a simple form borrowed from here: http://en.wikibooks.org/wiki/XForms/Select1_drop_list#Source_Code Only I've added an instance containing a namespaced element. The name space is declared globally and can either be declared at xf:instance or not, I still get the same error in both firefox and safari: *** XSLTForms Exception -------------------------- Error initializing : XML parser exception: prefix newsm not found </message> *** Note the the name is actually "newsml" not "newsm". That's consistent: if I change the name to "moo" the error says it is "mo". Even if i'm making a simple, obvious error it seems weird that the name is truncaed like that. Running this on eXist 1.4.0 on OSX. Any help is appreciated. Thanks. Source: <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:newsml="http://iptc.org/std/nar/2006-10-01/" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>Demonstration of XForms Select1</title> <style type="text/css">body {font-family: Helvetica, sans-serif;}</style> <xf:model> <xf:instance xmlns=""> <data> <DayOfWeekCode/> </data> </xf:instance> <xf:instance xmlns:newsml="" id="events"> <newsml:newsitem>foo</newsml:newsitem> </xf:instance> </xf:model> </head> <body> <xf:select1 ref="DayOfWeekCode"> <xf:label>Day of Week:</xf:label> <xf:item> <xf:label>Monday</xf:label> <xf:value>monday</xf:value> </xf:item> <xf:item> <xf:label>Tesday</xf:label> <xf:value>tuesday</xf:value> </xf:item> <xf:item> <xf:label>Wednesday</xf:label> <xf:value>wednesday</xf:value> </xf:item> <xf:item> <xf:label>Thrusday</xf:label> <xf:value>thrusday</xf:value> </xf:item> <xf:item> <xf:label>Friday</xf:label> <xf:value>friday</xf:value> </xf:item> <xf:item> <xf:label>Saturday</xf:label> <xf:value>saturday</xf:value> </xf:item> <xf:item> <xf:label>Sunday</xf:label> <xf:value>sunday</xf:value> </xf:item> </xf:select1> <br/> Output: <xf:output ref="DayOfWeekCode"/> </body> </html> |
From: christophe g. <chr...@e-...> - 2009-11-25 16:51:06
|
Dear Alain and all I have done some tests with the xsltforms library today to see what would be the amount of work necessary to port my xForms application (currently runing under with the mozilla plugin) to xhtml forms. there are part of code that will need to be refined (css mainly, I fear), but it seems more or less in control. But, first of all - the xsltforms library and concept looks great and it is a real relief to see xforms solutions coming out! And the fact that xsltforms is integrated with eXist is also a really good new. There are a couple of errors thrown while xpath code is being processed that I don't quite get however (as I think it is valid xpath, or at leat, it was recognized so with the FF plugin). I use the latest code downloaded from sourceforge, and FF 3 under a linux distribution) and, by the way am not in a hurry as I will continue to use the FF plugin for development and switch to xsltforms a bit later. Cheers Christophe XSLTForms Exception -------------------------- Error parsing the following XPath expression : if(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/selected='true', concat(.,instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' '), concat(substring-before(. ,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' ') ), substring-after ( .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' ')))) Unknown operator at ' ( .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' '))))' in 'if(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/selected='true', concat(.,instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' '), concat(substring-before(. ,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' ') ), substring-after ( .,concat(instance('search_indicator')/searchResult/hit[position()=index('repeat_all_search_indicator')]/id, ' '))))' XSLTForms Exception -------------------------- Error parsing the following XPath expression : if(string-length(.) = 0 ,(if(../preceding-sibling::*[1]/position[1],../preceding-sibling::*[1]/position[1] + 1 ,1)), .) Unknown operator at ':*[1]/position[1],../preceding-sibling::*[1]/position[1] + 1 ,1)), .)' in 'if(string-length(.) = 0 ,(if(../preceding-sibling::*[1]/position[1],../preceding-sibling::*[1]/position[1] + 1 ,1)), .)' XSLTForms Exception -------------------------- Error parsing the following XPath expression : not(../preceding-sibling::*/label = .) or string-length(.)=0 Unknown operator at ':*/label = .) or string-length(.)=0' in 'not(../preceding-sibling::*/label = .) or string-length(.)=0' -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |
From: Alex B. <rho...@ya...> - 2009-11-25 15:08:49
|
Hi Alain, Thanks again for your response - I put together a test to circumvent the cross-domain javascript issues by creating a resource that manages the transactions with the XML Server and so far it seems to be working great (tested briefly with Firefox this morning).. Thanks very much for your advice and assistance helping me get around these issues; much appreciated. |
From: COUTHURES A. <ala...@ag...> - 2009-11-25 05:47:49
|
Hi Alex, I didn't mention another possibility in my previous response: the cross-domain constraint. Javascript is allowed to ask and send data just to the same domain with the same port. Do you have this problem? Best regards, -Alain > Hi Alain, > > Thanks very much for your response. I checked the latest code from svn and copied the latest files from trunk/build into my project. I tried adding the xmlns="" in beta 2 and in both with and without with the current build in trunk. > > Unfortunately I still seem to be having problems submitting data successfully; I was wondering whether I could just run my latest code by you and see if I can get some advice? > > I'm testing the submissions on MarkLogic 4.1 this time (the target db for this project). As before, I'm having success submitting using Internet Explorer 8; however, for some reason, Chrome and Firefox 3.5 are still throwing errors. I haven't tried Opera since. > > IE8 shows the response returned by the xquery and writes the XML document to the collection. > > Chrome displays a submit error in the debug log: > 0 -> Submit put - undefined - http://localhost:8005/crv/basic-crud/savehttpput.xqy - true > 91 -> NETWORK_ERR: XMLHttpRequest Exception 101 > > Firefox 3.5 also displays an error in the log > 0 -> Submit put - undefined - http://localhost:8005/crv/basic-crud/savehttpput.xqy - true > 125 -> Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send] > > I'm pasting in the xq code, the xml instance and the form markup - if there's anything you can spot, I'd really appreciate any thoughts you may have; thanks very much in advance :) > > The XQuery:xqueryversion"1.0-ml";declarefunctionlocal:updateNode(){let$form-data:= xdmp:get-request-body()/node()return$form-data};xdmp:document-insert > < > < > { > </ > > The XML instance:<?xml version="1.0" encoding="UTF-8"?><itemxmlns=""></item> > > The XForm markup:<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?> > <?xsltforms-options debug="yes"?><htmlxmlns="http://www.w3.org/1999/xhtml"xmlns:xf="http://www.w3.org/2002/xforms"xmlns:ev="http://www.w3.org/2001/xml-events"><head><title>XSLTForms - Basic Submission PUT example</title><xf:model><xf:instanceid="default"src="test-instance.xml"/><xf:submissionid="save"method="put"action="http://localhost:8005/xqueries/savehttpput.xqy"><xf:togglecase="case-busy"ev:event="xforms-submit"/><xf:togglecase="case-submit-done"ev:event="xforms-submit-done"/><xf:togglecase="case-submit-error"ev:event="xforms-submit-error"/></xf:submission></xf:model></head><body><xf:inputref="/item/name"><xf:label>Name: </xf:label></xf:input></html><xf:submitclass="store"submission="save"><xf:label>Save</xf:label></xf:submit><xf:switch><xf:caseid="ready"/><xf:caseid="case-busy"><p>Waiting for results from server...</p></xf:case><xf:caseid="case-submit-error"><p>Submit error</p></xf:case><xf:caseid="case-submit-done"><p>Submit > done</p></xf:case></xf:switch></body><name>simple doc content</name> > > > > > > > ("xml-doc-name-here.xml", item>{local:updateNode()}</item>,xdmp:default-permissions(),"collection-name-here"), result>xdmp:get-request-body()/node()}result> > > > > > |
From: Alex B. <rho...@ya...> - 2009-11-25 03:56:03
|
Just noticed that the XQuery got a bit fragmented with the last post; I'm sending it again, so hopefully it'll be a bit more readable this time: xqueryversion"1.0-ml";declarefunctionlocal:updateNode(){let$form-data:= xdmp:get-request-body()/node()return$form-data};xdmp:document-insert < < { </("xmldoc2.xml", item>{local:updateNode()}</item>,xdmp:default-permissions(),"ecrv"), result>xdmp:get-request-body()/node()}result> |