xsltforms-support Mailing List for XSLTForms (Page 39)
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: Alain C. <ala...@ag...> - 2012-11-01 15:20:58
|
Hello Elias, Welcome to XSLTForms support list! I suspect a namespace issue: there is no prefix in your example and XForms assumes that the default namespace to be its own. Is it possible for you to add a prefix in your instance, at least just for test purposes? Thank you for your feedbacks! -Alain Le 01/11/2012 16:09, Elias Mazur a écrit : > Hi. > > I'm trying to create an instance that has an xsi:type attribute. The > instance defines the xsi namespace and xsi:schemaLocation at the root > element as follows: > > <Document xmlns="urn:hl7-org:v3" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="urn:hl7-org:v3 > http://localhost:8080/exist/rest/db/studydata/schemas/StudyDesign.xsd" > classCode="DOCCLIN" moodCode="EVN"> > > and the node that is breaking is the <effectiveTime> with the xsi:type > attribute: > > <component3 typeCode="COMP"> > <substanceAdministration classCode="SBADM" moodCode="DEF"> > <effectiveTime xsi:type="PIVL_TS"> > <period value="1" unit="day"/> > </effectiveTime> > <routeCode code="xxxx" displayName="ORAL" codeSystem="1.22.3.3"/> > <doseQuantity value="0.625" unit="mg"/> > <consumable typeCode="CSM" xsi:nil="true"/> > </substanceAdministration> > </component3> > > The XML validates fine against the instance schema in the xsi > definition using XML spy as well as the xquery validate eXist > functions (JAXP, JAXV and JING). Environment is eXist database, Xquery. > > Problem: when I try to create the instance as follows: > > <xf:model id="hl7-message"> > <xf:instance id="sd-model" > src="http://localhost:8080/exist/rest/db/studydata/instances/studydesign-model.xml" > /> > </xf:model> > > I get a "Message from webpage" pop error message (see attached): > > "Type PIVL_TS not defined in namespace > http://www.w3.org/2002/xforms" > > The complex type PIVL_TS is defined in one of the schemas included in > "StudyDesign.xsd" defined in xsi:schemaLocation. > > Any help is appreciated. > > Thanks > Elias > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Alain C. <ala...@ag...> - 2012-11-01 12:49:16
|
Hi, Sorry, AVT for XForms submission is not supported in XForms 1.1 and XSLTForms, use resource sub-element instead: http://www.w3.org/TR/xforms11/#submit-resource-elem XPath 2.0 is not supported either, BTW, but there is the choose() function: http://www.w3.org/TR/xforms11/#fn-choose -Alain Le 01/11/2012 13:42, Dan McCreary a écrit : > Hi Immanuel, > > Perhaps you should consider using HTTP POST and creating a save.xq > similar to the one in the Beginner's Guide. The problem with PUT is > that you must make sure that you have write access and this opens up > security concerns. HTTP POST allows you to use the request:get-data() > to get the incoming data file and then do an xmldb:store() > > Here is the submission line: > > <xf:submission id="save" method="post" action="{if ($new='true') then > ('save-new.xq') else ('update.xq')}" instance="my-task" > replace="all"/> > > http://www.danmccreary.com/xrx/beginners-guide/beginners-guide-to-xrx.xhtml#d0e733 > > - Dan > > On Wed, Oct 31, 2012 at 6:06 PM, Immanuel Normann > <imm...@go...> wrote: >> Hi, >> >> I still try to understand how submission put and get works. Exist-db comes >> with the example >> exist/webapp/xforms/hello2.xml (I assume it is known to you?! see >> http://exist-db.org/exist/xforms/hello2.xml). >> >> This example works basically as one expects. In order to learn from it I >> made copy to >> >> /db/my-hello.xml >> >> and changed only two paths in that file to fit to my setting: >> >> <xf:submission id="put-to-db" method="put" replace="none" >> resource="../rest/db/xforms-example-hello2.xml"> >> >> to >> >> <xf:submission id="put-to-db" method="put" replace="none" >> resource="/exist/rest/db/xforms-example-my-hello.xml"> >> >> and >> >> >> <xf:submission id="get-from-db" method="get" replace="instance" >> resource="../rest/db/xforms-example-hello2.xml?_query=/person&_wrap=no"> >> >> to >> <xf:submission id="get-from-db" method="get" replace="instance" >> resource="/exist/rest/db/xforms-example-my-hello.xml?_query=/person&_wrap=no"> >> >> And this is my problem: >> >> Let's say the initial content of /exist/rest/db/xforms-example-my-hello.xml >> is >> >> <person> >> <name>Otto</name> >> </person> >> >> When I go to http://localhost:8080/exist/rest/db/my-hello.xml everything is >> displayed as in the hello2 example. >> >> Now I type in the text: Anna >> and push the button: Safe >> >> This changes /exist/rest/db/xforms-example-my-hello.xml to: >> >> <person> >> <name>Anna</name> >> <name>Otto</name> >> <name/> >> <name/> >> <test/> >> <name/> >> </person> >> >> Actually this is the same effect as in the hello2 example. The first >> question here: why is >> >> <name/> >> <name/> >> <test/> >> <name/> >> >> added? I would expect only a change to >> >> <person> >> <name>Anna</name> >> <name>Otto</name> >> </person> >> >> But even more strange is the effect of the following interaction: >> >> Let's start again with >> >> <person> >> <name>Otto</name> >> </person> >> >> Now I type again the text: Anna >> but push then the button: Refresh from DB >> >> Still the content of xforms-example-my-hello.xml is (as expected): >> >> <person> >> <name>Otto</name> >> </person> >> >> However, when I type again: Anna >> And then push the button: Safe >> >> Then the content of xforms-example-my-hello.xml is: >> >> <exist:result> >> <name>Anna</name> >> </exist:result> >> >> That's not I would expect. Instead I would expect again: >> >> <person> >> <name>Anna</name> >> <name>Otto</name> >> </person> >> >> For me the behaviour of submission is thus rather unpredictable. Or do you >> have an explanation? I would be very happy to learn how this submission >> really works. >> >> Immanuel >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > > |
From: Dan M. <dan...@gm...> - 2012-11-01 12:42:19
|
Hi Immanuel, Perhaps you should consider using HTTP POST and creating a save.xq similar to the one in the Beginner's Guide. The problem with PUT is that you must make sure that you have write access and this opens up security concerns. HTTP POST allows you to use the request:get-data() to get the incoming data file and then do an xmldb:store() Here is the submission line: <xf:submission id="save" method="post" action="{if ($new='true') then ('save-new.xq') else ('update.xq')}" instance="my-task" replace="all"/> http://www.danmccreary.com/xrx/beginners-guide/beginners-guide-to-xrx.xhtml#d0e733 - Dan On Wed, Oct 31, 2012 at 6:06 PM, Immanuel Normann <imm...@go...> wrote: > Hi, > > I still try to understand how submission put and get works. Exist-db comes > with the example > exist/webapp/xforms/hello2.xml (I assume it is known to you?! see > http://exist-db.org/exist/xforms/hello2.xml). > > This example works basically as one expects. In order to learn from it I > made copy to > > /db/my-hello.xml > > and changed only two paths in that file to fit to my setting: > > <xf:submission id="put-to-db" method="put" replace="none" > resource="../rest/db/xforms-example-hello2.xml"> > > to > > <xf:submission id="put-to-db" method="put" replace="none" > resource="/exist/rest/db/xforms-example-my-hello.xml"> > > and > > > <xf:submission id="get-from-db" method="get" replace="instance" > resource="../rest/db/xforms-example-hello2.xml?_query=/person&_wrap=no"> > > to > <xf:submission id="get-from-db" method="get" replace="instance" > resource="/exist/rest/db/xforms-example-my-hello.xml?_query=/person&_wrap=no"> > > And this is my problem: > > Let's say the initial content of /exist/rest/db/xforms-example-my-hello.xml > is > > <person> > <name>Otto</name> > </person> > > When I go to http://localhost:8080/exist/rest/db/my-hello.xml everything is > displayed as in the hello2 example. > > Now I type in the text: Anna > and push the button: Safe > > This changes /exist/rest/db/xforms-example-my-hello.xml to: > > <person> > <name>Anna</name> > <name>Otto</name> > <name/> > <name/> > <test/> > <name/> > </person> > > Actually this is the same effect as in the hello2 example. The first > question here: why is > > <name/> > <name/> > <test/> > <name/> > > added? I would expect only a change to > > <person> > <name>Anna</name> > <name>Otto</name> > </person> > > But even more strange is the effect of the following interaction: > > Let's start again with > > <person> > <name>Otto</name> > </person> > > Now I type again the text: Anna > but push then the button: Refresh from DB > > Still the content of xforms-example-my-hello.xml is (as expected): > > <person> > <name>Otto</name> > </person> > > However, when I type again: Anna > And then push the button: Safe > > Then the content of xforms-example-my-hello.xml is: > > <exist:result> > <name>Anna</name> > </exist:result> > > That's not I would expect. Instead I would expect again: > > <person> > <name>Anna</name> > <name>Otto</name> > </person> > > For me the behaviour of submission is thus rather unpredictable. Or do you > have an explanation? I would be very happy to learn how this submission > really works. > > Immanuel > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > -- Dan McCreary NoSQL Evangelist office: (952) 931-9198 cell: (612) 986-1552 |
From: Immanuel N. <imm...@go...> - 2012-10-31 23:07:03
|
Hi, I still try to understand how submission put and get works. Exist-db comes with the example exist/webapp/xforms/hello2.xml (I assume it is known to you?! see http://exist-db.org/exist/xforms/hello2.xml). This example works basically as one expects. In order to learn from it I made copy to /db/my-hello.xml and changed only two paths in that file to fit to my setting: <xf:submission id="put-to-db" method="put" replace="none" resource="../rest/db/xforms-example-hello2.xml"> to <xf:submission id="put-to-db" method="put" replace="none" resource="/exist/rest/db/xforms-example-my-hello.xml"> and <xf:submission id="get-from-db" method="get" replace="instance" resource="../rest/db/xforms-example-hello2.xml?_query=/person&_wrap=no"> to <xf:submission id="get-from-db" method="get" replace="instance" resource="/exist/rest/db/xforms-example-my-hello.xml?_query=/person&_wrap=no"> And this is my problem: Let's say the initial content of /exist/rest/db/xforms-example-my-hello.xml is <person> <name>Otto</name> </person> When I go to http://localhost:8080/exist/rest/db/my-hello.xml everything is displayed as in the hello2 example. Now I type in the text: Anna and push the button: Safe This changes /exist/rest/db/xforms-example-my-hello.xml to: <person> <name>Anna</name> <name>Otto</name> <name/> <name/> <test/> <name/> </person> Actually this is the same effect as in the hello2 example. The first question here: why is <name/> <name/> <test/> <name/> added? I would expect only a change to <person> <name>Anna</name> <name>Otto</name> </person> But even more strange is the effect of the following interaction: Let's start again with <person> <name>Otto</name> </person> Now I type again the text: Anna but push then the button: Refresh from DB Still the content of xforms-example-my-hello.xml is (as expected): <person> <name>Otto</name> </person> However, when I type again: Anna And then push the button: Safe Then the content of xforms-example-my-hello.xml is: <exist:result> <name>Anna</name> </exist:result> That's not I would expect. Instead I would expect again: <person> <name>Anna</name> <name>Otto</name> </person> For me the behaviour of submission is thus rather unpredictable. Or do you have an explanation? I would be very happy to learn how this submission really works. Immanuel |
From: Dan M. <dan...@gm...> - 2012-10-31 21:27:57
|
Hi Bill, I am using the latest version of XSLTForms on eXist 2.0 and I did find that some of the javascript within the HTML files had to have the ampersand character escaped or my loader ant tasks would not run correctly. This was only in the code for the Tiny editor as I recall. - Dan On Wed, Oct 31, 2012 at 3:13 PM, William Velasquez <wi...@bi...> wrote: > Hi, > > Has anybody used the latest version of XSLTForms with eXist 2.0 beta? > > I'm just testing the examples and getting errors accesing config.xsl in > the local disk. > > When I change the PI in the XForm to the full path of XSLTForms in the > eXist server, the form begins to load, but a message box with null > reference error appers. > > Thanks everybody, > > > Bill > > > PD: Para quienes hablan Español, estoy escribiendo el libro de XForms > en Wikibooks http://es.wikibooks.org/wiki/XForms Todos sus aportes son > bien recibidos. > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support -- Dan McCreary NoSQL Evangelist office: (952) 931-9198 cell: (612) 986-1552 |
From: William V. <wi...@bi...> - 2012-10-31 21:13:20
|
Hi, Has anybody used the latest version of XSLTForms with eXist 2.0 beta? I'm just testing the examples and getting errors accesing config.xsl in the local disk. When I change the PI in the XForm to the full path of XSLTForms in the eXist server, the form begins to load, but a message box with null reference error appers. Thanks everybody, Bill PD: Para quienes hablan Español, estoy escribiendo el libro de XForms en Wikibooks http://es.wikibooks.org/wiki/XForms Todos sus aportes son bien recibidos. |
From: Ihe O. <ihe...@gm...> - 2012-10-31 06:33:48
|
On Tue, Oct 30, 2012 at 8:45 PM, Alain Couthures <ala...@ag...> wrote: > Hi Immanuel, >> >> However, I stuck at >> http://en.wikibooks.org/wiki/XForms/Search_Form which doesn't work on >> my setting (I am running eXist-db). >> I copied and pasted the example and added on top >> <?xml-stylesheet href="/xforms/xsltforms/xsltforms.xsl" type="text/xsl"?> >> >> The search form is displayed correctly, but a click on the Search >> button hasn't got any effect >> > To effectively watch what's going on, the better is to use a debugger > with a network profiler (I generally use the Firebug extension for > Firefox). This is the easiest way to locate an issue. >> Moreover, already at loading time of the page existdb emits these >> warnings: >> >> Warning: on line 3870 of xsltforms.xsl: >> The namespace axis starting at an attribute node will never select >> anything >> Warning: on line 404 of xsltforms.xsl: >> The attribute axis starting at an attribute node will never select >> anything > Those warnings have no consequence (I've heard about them already... and > I will look at how to avoid them). The warnings are from the XSLT processor. They are caused because the XSLT is trying to traverse axes (in this case the namespace and attribute axis) from a context node of type attribute. Since attributes never contain anything other than text, such a traversal will never return anything). It is worth looking at the XSLT to see if the intent of those statements is preserved. > The |
From: Alain C. <ala...@ag...> - 2012-10-30 21:03:47
|
Hello Peter, > I get my piece of XML returned nicely, except that the xforms-submit-error exception is triggered and when I look at that I find that the server returns a 200 code, but the error-type is a 'parse-error'. > > I have pared this down to a minimal size of XML. > > Any suggestions as to what is triggering the error or how to debug please? The 'parse-error' error-type is always returned when an exception occurs during the response processing. Could you test again in the Debug Mode (press F1) to see if the exception is detailed? Thank you for your feedbacks! -Alain |
From: Alain C. <ala...@ag...> - 2012-10-30 20:45:46
|
Hi Immanuel, > > However, I stuck at > http://en.wikibooks.org/wiki/XForms/Search_Form which doesn't work on > my setting (I am running eXist-db). > I copied and pasted the example and added on top > <?xml-stylesheet href="/xforms/xsltforms/xsltforms.xsl" type="text/xsl"?> > > The search form is displayed correctly, but a click on the Search > button hasn't got any effect > To effectively watch what's going on, the better is to use a debugger with a network profiler (I generally use the Firebug extension for Firefox). This is the easiest way to locate an issue. > Moreover, already at loading time of the page existdb emits these > warnings: > > Warning: on line 3870 of xsltforms.xsl: > The namespace axis starting at an attribute node will never select > anything > Warning: on line 404 of xsltforms.xsl: > The attribute axis starting at an attribute node will never select > anything Those warnings have no consequence (I've heard about them already... and I will look at how to avoid them). Thank you for your feedbacks! -Alain |
From: Immanuel N. <imm...@go...> - 2012-10-30 09:52:06
|
Hi, I am trying to learn about submission in XForms and I was recommended to have a look at http://en.wikibooks.org/wiki/XForms/Search_Form - which is in fact a valuable resource. However, I stuck at http://en.wikibooks.org/wiki/XForms/Search_Form which doesn't work on my setting (I am running eXist-db). I copied and pasted the example and added on top <?xml-stylesheet href="/xforms/xsltforms/xsltforms.xsl" type="text/xsl"?> The search form is displayed correctly, but a click on the Search button hasn't got any effect Moreover, already at loading time of the page existdb emits these warnings: Warning: on line 3870 of xsltforms.xsl: The namespace axis starting at an attribute node will never select anything Warning: on line 404 of xsltforms.xsl: The attribute axis starting at an attribute node will never select anything What is wrong here? Thanks for feedback. - Immanuel |
From: Alain C. <ala...@ag...> - 2012-10-23 20:18:28
|
Hi Alex, > getting rid of @id would be a great thing, IMHO. > > Regarding the voting options - from your view point as an XForms implementor - can you please discuss a bit about the implications of > > · Allow author to choose between @id and @name > vs. > · Deprecate @id and use @name everywhere > If @id is deprecated, current implementations could ignore issues regarding it and new implementations would be allowed to not support it at all. Choosing between @id and @name is much better for ascending compatibility. BTW, actions, such as setfocus, toggle and dispatch, should be extended to work with @name. -Alain |
From: Alexander H. <ale...@ho...> - 2012-10-23 07:33:01
|
Hi Alain, On Oct 20, 2012, at 11:35 AM, Alain Couthures wrote: > Hello, > > I just added a new post at XForms Users Community Group about XForms 2.0 > new features and limitations due to id attr: > http://www.w3.org/community/xformsusers/2012/10/20/xforms-2-0-new-features-and-limitations-due-to-id-attribute-use/ > > Please join the community group and vote for the embedded poll! > > Thanks! getting rid of @id would be a great thing, IMHO. Regarding the voting options - from your view point as an XForms implementor - can you please discuss a bit about the implications of · Allow author to choose between @id and @name vs. · Deprecate @id and use @name everywhere Thanks a lot, Alex |
From: peter w. <p....@in...> - 2012-10-22 16:14:05
|
Hello List This might be a daft question, but I am using version 525 with exist-db and I have an XForm that makes a submission to an XQuery that is returning a small well-formed piece of XML (which is indented and without the XML declaration) So, my submission is: <xf:submission id="s1" method="get" replace="instance" instance="report-transformed'"> <xf:resource value="/exist/.../some-nodes.xquery"/> </xf:action> </xf:submission> I get my piece of XML returned nicely, except that the xforms-submit-error exception is triggered and when I look at that I find that the server returns a 200 code, but the error-type is a 'parse-error'. I have pared this down to a minimal size of XML. Any suggestions as to what is triggering the error or how to debug please? Thanks Peter ____________________________________________________________ FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more! |
From: Stephen C. <ste...@gm...> - 2012-10-21 22:33:12
|
Hi Alain, There is a possible bug in XSLTForms rev. 558 (and earlier), in that a model update does not occur when you move off a control via a mouse click on another (repeat?) control. This can be seen in the online schema designer at: http://collinta.com.au/xsltforms/designer.xml 1. Load the 'library.xsd' schema into the form by selecting it in the 'Select Schema' select1 at the bottom of the UI. 2. In the library element there is a sequence of child elements, try to edit the 'Title and Description' of one of them in the relevant Tab. 3. Move to another child element in the sequence by clicking on it, then go back to the one you tried to update in (2.) 4. You'll should see that the Title update has saved but not the Description update. So it seems to me that a DOMFocusOut event is not being triggered or not being handled. It seems to be related to moving to a xf:repeat row from an xf:input or xf:select1. If necessary I can try to create a simpler test case that still shows the behaviour. Regards Steve |
From: Alain C. <ala...@ag...> - 2012-10-20 09:35:20
|
Hello, I just added a new post at XForms Users Community Group about XForms 2.0 new features and limitations due to id attr: http://www.w3.org/community/xformsusers/2012/10/20/xforms-2-0-new-features-and-limitations-due-to-id-attribute-use/ Please join the community group and vote for the embedded poll! Thanks! -Alain |
From: Alain C. <ala...@ag...> - 2012-10-12 13:32:26
|
Hi Alex and all, This can probably be managed by a config option. Would it be an interesting way to proceed? Thank you for your point of views! -Alain Le 10/10/2012 13:15, Alex Bozhenko a écrit : > Does it possible to put > <span class="xforms-required-icon">*</span> > after > <label class="xforms-label"> > (if label exist for this input), but not after > <span class="value"> > ? |
From: Alex B. <ale...@gm...> - 2012-10-10 11:16:25
|
Does it possible to put <span class="xforms-required-icon">*</span> after <label class="xforms-label"> (if label exist for this input), but not after <span class="value"> ? |
From: Alain C. <ala...@ag...> - 2012-10-03 19:44:26
|
Hello Javier, I have committed this patch without a test case to valid it. Thank you for your feedbacks! -Alain Le 03/09/2012 13:34, Javier Díaz a écrit : > Hello, > > We are trying to set a checkbox readonly but it only gets shadowed, but > it can still be checked. > > We have done this change in javascript: > > XsltForms_input.prototype.changeReadonly = function() { > + var node = this.element.node; > + var type = node ? > XsltForms_schema.getType(XsltForms_browser.getType(node) || > "xsd_:string") : XsltForms_schema.getType("xsd_:string"); > + > if (this.input) { > + if (type["class"] === "boolean") { > + this.input.disabled = this.readonly; > + } > + > this.input.readOnly = this.readonly; > if (this.calendarButton) { > this.calendarButton.style.display = > this.readonly ? "none" : ""; > > > So the checkbox is readonly, althought it isn't sent when submit (it > isn't a problem for me). > > ¿Do you know a better way of forcing it? > > |
From: Alain C. <ala...@ag...> - 2012-10-03 19:42:28
|
Hello Javier, I have committed this patch and I would appreciate if you could confirm that it works now for you. Thank you for your feedbacks! -Alain Le 16/09/2012 20:00, Javier Díaz a écrit : > Hello, > > I hope this is useful for official version, or at least to somebody in > the same situation as us. > > Using r545 we had to do change invocation to initImpl immediatelly after > MagicSeparator comment in order to avoid a warning in IE6,7 & 8: > > @@ -330,6 +330,10 @@ > <script > id="xsltforms-generatedscript" type="text/javascript"> > <xsl:text>/* > XsltForms_MagicSeparator */ > </xsl:text> > + <xsl:text>function > </xsl:text> > + <xsl:value-of > select="$vn_pf"/> > + <xsl:text>initImpl() { > +</xsl:text> > > <xsl:text>XsltForms_globals.language = "</xsl:text> > <xsl:choose> > <xsl:when > test="$lang != ''"> > @@ -353,10 +357,6 @@ > </xsl:choose> > <xsl:text>"; > </xsl:text> > - <xsl:text>function > </xsl:text> > - <xsl:value-of > select="$vn_pf"/> > - <xsl:text>initImpl() { > -</xsl:text> > > The warning was: > > Mensaje: 'XsltForms_globals' no está definido > Línea: 4 > Carácter: 1 > Código: 0 > > With the js change all works as previously did but error doesn't appear. > > Cheers, > Javier > |
From: Alain C. <ala...@ag...> - 2012-09-25 19:50:02
|
Hello Mark, > I'm using what I assume is the stable release, 1.0RC. (So far I'm impressed, having used FormFaces some years ago). You could also use the trunk builds because they are quite stable, too ;-) > My problem is attempting to add a TinyMCE textarea within a repeating element: my code is based on the example at http://www.agencexml.com/xsltforms/tinymce.xml. > > The first instantiation of the repeated element is fine. > > I use a trigger which inserts the new element set in the usual way - the TinyMCE textarea is a leaf element in that set. > > An insert creates the new elements with TinyMCE populating the textarea but the text-area UI is grey and unresponsive. > > If I save and reload the instance data the TinyMCE in the latest insert is now active. > > I guess that TinyMCE needs to be initialised and does it when the page loads without conflict between multiple instances of itself. Is there any way to make it initialise on insert? There was an issue about TinyMCE been initialized more than once so, probably, the corresponding fix is not good for your situation. Could you please send a minimal test case? Thanks! -Alain |
From: Mark B. <ma...@te...> - 2012-09-23 22:09:29
|
Hi I'm new to xsltforms and to this list, so please forgive beginner errors. I am not a JavaScript person. I'm using what I assume is the stable release, 1.0RC. (So far I'm impressed, having used FormFaces some years ago). My problem is attempting to add a TinyMCE textarea within a repeating element: my code is based on the example at http://www.agencexml.com/xsltforms/tinymce.xml. The first instantiation of the repeated element is fine. I use a trigger which inserts the new element set in the usual way - the TinyMCE textarea is a leaf element in that set. An insert creates the new elements with TinyMCE populating the textarea but the text-area UI is grey and unresponsive. If I save and reload the instance data the TinyMCE in the latest insert is now active. I guess that TinyMCE needs to be initialised and does it when the page loads without conflict between multiple instances of itself. Is there any way to make it initialise on insert? Thanks for any ideas. -- Mark Barratt |
From: peter w. <p....@in...> - 2012-09-18 08:19:20
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD> <BODY> Hello Alain<br>Thank you for your helpful illustration.<br>I am getting the XML instance from a schema/schmatron validation process and it looks like this ...<br><br><br><pre id="line1"><span style="color: rgb(0, 99, 198);" class="pi"><?xml version="1.0" encoding="UTF-8"?></span><span style="color: rgb(0, 99, 198);"> <span id="line2"></span><<span class="start-tag">out</span>> <span id="line3"></span> <<span class="start-tag">report</span> <span class="attribute-name">accref</span>="<a class="attribute-value">missacc</a>" <span id="line4"></span> <span class="attribute-name">save</span>="<a class="attribute-value">/db/records/harderrors/missacc.xml</a>" <span id="line5"></span> <span class="attribute-name">sort</span>="soft" <span id="line6"></span> <span class="attribute-name">submission</span>="<a class="attribute-value">testupgrade.txt.xml</a>"> <span id="line7"></span> <<span class="start-tag">error</span>> <span id="line8"></span> <<span class="start-tag">code</span>>java:org.xml.sax.SAXException</<span class="end-tag">code</span>> <span id="line9"></span> <<span class="start-tag">desc</span>>An empty sequence is not allowed as the second argument of index-of()</<span class="end-tag">desc</span>> <span id="line10"></span> <<span class="start-tag">val</span><span>/</span>> <span id="line11"></span> </<span class="end-tag">error</span>> <span id="line12"></span> </<span class="end-tag">report</span>> <span id="line13"></span> <<span class="start-tag">report</span> <span class="attribute-name">accref</span>="<a class="attribute-value">missveh</a>" <span id="line14"></span> <span class="attribute-name">save</span>="<a class="attribute-value">/db/STATS21test/STATS21-Code-2012-07-12/records/harderrors/missveh.xml</a>" <span id="line15"></span> <span class="attribute-name">sort</span>="<a class="attribute-value">hard</a>" <span id="line16"></span> <span class="attribute-name">submission</span>="<a class="attribute-value">testupgrade.txt.xml</a>"> <span id="line17"></span> <<span class="start-tag">error</span>> <span id="line18"></span> <<span class="start-tag">code</span>>java:org.xml.sax.SAXException</<span class="end-tag">code</span>> <span id="line19"></span> <<span class="start-tag">desc</span>>An empty sequence is not allowed as the second argument of index-of()</<span class="end-tag">desc</span>> <span id="line20"></span> <<span class="start-tag">val</span><span>/</span>> <span id="line21"></span> </<span class="end-tag">error</span>> <span id="line22"></span> </<span class="end-tag">report</span>> <span id="line23"></span> </span><span><span style="color: rgb(0, 99, 198);"><</span><span style="color: rgb(0, 99, 198);" class="start-tag">report</span><span style="color: rgb(0, 99, 198);"> </span><span style="color: rgb(0, 99, 198);" class="attribute-name">accref</span><span style="color: rgb(0, 99, 198);">="</span><a style="color: rgb(0, 99, 198);" class="attribute-value">misscas</a><span style="color: rgb(0, 99, 198);">" </span><span style="color: rgb(0, 99, 198);" id="line24"></span><span style="color: rgb(0, 99, 198);"> </span><span style="color: rgb(0, 99, 198);" class="attribute-name">save</span><span style="color: rgb(0, 99, 198);">="</span><a style="color: rgb(0, 99, 198);" class="attribute-value">/db/records/harderrors/misscas.xml</a><span style="color: rgb(0, 99, 198);">" </span><span style="color: rgb(0, 99, 198);" id="line25"></span><span style="color: rgb(0, 99, 198);"> </span><span style="color: rgb(0, 99, 198);" class="attribute-name">sort</span><span style="color: rgb(0, 99, 198);">="</span><a style="color: rgb(0, 99, 198);" class="attribute-value">hard</a><span style="color: rgb(0, 99, 198);">" </span><span style="color: rgb(0, 99, 198);" id="line26"></span><span style="color: rgb(0, 99, 198);"> </span><span style="color: rgb(0, 99, 198);" class="attribute-name">submission</span><span style="color: rgb(0, 99, 198);">="</span><a style="color: rgb(0, 99, 198);" class="attribute-value">testupgrade.txt.xml</a><span style="color: rgb(0, 99, 198);">"></span><br><br><br>etc<br><br><font style="font-family: Arial,Helvetica,sans-serif;" size="3">and I am wanting to get counts of the report/@sort values ('hard', 'soft' etc). <br>Do I set up an additional instance to hold these count values? </font><br><br><br><font style="font-family: Tahoma,sans-serif;" size="3">Also, I am wanting to convert report/@save values into a hyperlink. I can retrieve these values using the <xf:repeat ...> approach <br>but only get text outputs via the <xf:output /> as follows:</font><br><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <xf:repeat model="general" nodeset="instance('validate-xml-results')/report"></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <div></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <span></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <xf:output value="@save"></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <xf:label>file:</xf:label></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </xf:output></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </span></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <span></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <xf:output value="@sort"></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <xf:label>Sort: </xf:label></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </xf:output></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </span></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <span></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <xf:repeat nodeset="svrl:schematron-output/svrl:failed-assert"></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <xf:output value="svrl:text"></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <xf:label>failed assert: </xf:label></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </xf:output> </span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </xf:repeat></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </span></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </div> </span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> <hr/></span><br style="color: rgb(0, 99, 198);"><span style="color: rgb(0, 99, 198);"> </xf:repeat></span><br><br><font size="3"><span style="font-family: Tahoma,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;">What is the way to present the @save attribute as a URL?</span><br style="font-family: Arial,Helvetica,sans-serif;"><br style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;">Many thanks </span><br style="font-family: Arial,Helvetica,sans-serif;"><br style="font-family: Arial,Helvetica,sans-serif;"><br style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;">Peter</span><br></span></font></span><span></span></pre><br> <div> </div><br><br><blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"><div class="msgHeaders">-----Original Message-----<br><b>From:</b> ala...@ag...<br><b>Sent:</b> Mon, 17 Sep 2012 21:06:37 +0200<br><b>To:</b> p....@in...<br><b>Subject:</b> Re: [Xsltforms-support] multiple "calculate" on the same bind<br><br></div><div class="oldBody"><div> <div _class="moz-cite-prefix">Hello Peter,<br> <br> To calculate separate counts, you need as many nodes as counts as you want. You could use an attribute to distinguish from colour=white or colour=black then the calculate expression will be evaluated according to this value.<br> <br> <html xmlns=<a _class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a> xmlns:xf=<a _class="moz-txt-link-rfc2396E" href="http://www.w3.org/2002/xforms">"http://www.w3.org/2002/xforms"</a>><br> <head><br> <title>Count colours</title><br> <xf:model><br> <xf:instance><br> <items xmlns=""><br> <item><br> <colour>black</colour><br> </item><br> <item><br> <colour>black</colour><br> </item><br> <item><br> <colour>white</colour><br> </item><br> <count colour="black"/><br> <count colour="white"/><br> </items><br> </xf:instance><br> <xf:bind nodeset="count" calculate="count(../item[colour = current()/@colour])"/><br> </xf:model><br> </head><br> <body><br> <h1>Count colors</h1><br> <xf:repeat nodeset="count"><br> <xf:output value="@colour"><br> <xf:label>Colour: </xf:label><br> </xf:output><br> &#160;<br> <xf:output value="."><br> <xf:label>Count: </xf:label><br> </xf:output><br> </xf:repeat><br> </body><br> </html><br> <br> Is it what you want to do?<br> <br> Thanks!<br> <br> -Alain<br> <br> Le 17/09/2012 20:04, peter winstanley a écrit :<br> </div> <blockquote cite="mid:2D2...@in..." type="cite"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta content="INBOX.COM" name="GENERATOR"> Hello List<br> <br> This is probably a trivial question, so apologies in advance.<br> <br> I have an xform for which I want to calculate two or more seperate counts [ e.g. count of nodes where colour=white and another count of the same instance where colour=black]<br> <br> AFAIK, I can only have one 'calculate' per instance/nodeset. {I would appreciate clarification here}, so the only way that I have been able to do this is to have the same XML instance in two separate models and to have one bind and calculate in one model and the other bind and calculate in the other model.<br> <br> How should I really do this?<br> <br> Thanks<br> <br> Peter<br> <br> </blockquote> <br> </div></div></blockquote> <hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;"> <div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em"> <a href="http://www.inbox.com/smileys"><img src="http://my.inbox.com/img/ftrs/smileys.jpg" width="438" hight="73" alt="Smileys Preview" border="0" style="margin-bottom:10px" /></a><br> <nobr><strong><font color="2086c3">Get Free Smileys for Your IM & Email</font></strong> - Learn more at <a href="http://www.crawler.com/smileys">www.crawler.com/smileys</a></nobr><br> <nobr>Works with AIM<font size="-1"><sup>®</sup></font>, MSN<font size="-1"><sup>®</sup></font> Messenger, Yahoo!<font size="-1"><sup>®</sup></font> Messenger, ICQ<font size="-1"><sup>®</sup></font>, Google Talk<font size="-1"><sup>™</sup></font> and most webmails</nobr></div> </BODY> </HTML> |
From: Alain C. <ala...@ag...> - 2012-09-17 19:06:51
|
Hello Peter, To calculate separate counts, you need as many nodes as counts as you want. You could use an attribute to distinguish from colour=white or colour=black then the calculate expression will be evaluated according to this value. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>Count colours</title> <xf:model> <xf:instance> <items xmlns=""> <item> <colour>black</colour> </item> <item> <colour>black</colour> </item> <item> <colour>white</colour> </item> <count colour="black"/> <count colour="white"/> </items> </xf:instance> <xf:bind nodeset="count" calculate="count(../item[colour = current()/@colour])"/> </xf:model> </head> <body> <h1>Count colors</h1> <xf:repeat nodeset="count"> <xf:output value="@colour"> <xf:label>Colour: </xf:label> </xf:output>   <xf:output value="."> <xf:label>Count: </xf:label> </xf:output> </xf:repeat> </body> </html> Is it what you want to do? Thanks! -Alain Le 17/09/2012 20:04, peter winstanley a écrit : > Hello List > > This is probably a trivial question, so apologies in advance. > > I have an xform for which I want to calculate two or more seperate > counts [ e.g. count of nodes where colour=white and another count of > the same instance where colour=black] > > AFAIK, I can only have one 'calculate' per instance/nodeset. {I would > appreciate clarification here}, so the only way that I have been able > to do this is to have the same XML instance in two separate models and > to have one bind and calculate in one model and the other bind and > calculate in the other model. > > How should I really do this? > > Thanks > > Peter > |
From: peter w. <p....@in...> - 2012-09-17 18:04:12
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD> <BODY> Hello List<br><br>This is probably a trivial question, so apologies in advance.<br><br>I have an xform for which I want to calculate two or more seperate counts [ e.g. count of nodes where colour=white and another count of the same instance where colour=black]<br><br>AFAIK, I can only have one 'calculate' per instance/nodeset. {I would appreciate clarification here}, so the only way that I have been able to do this is to have the same XML instance in two separate models and to have one bind and calculate in one model and the other bind and calculate in the other model.<br><br>How should I really do this?<br><br>Thanks<br><br>Peter<br> <hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;"> <div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em"> <a href="http://www.inbox.com/earth"><img src="http://my.inbox.com/img/ftrs/earth.jpg" width="100" hight="90" alt="3D Earth Screensaver Preview" align="left" border="0" style="margin-right:15px" /></a> <br><strong><font color="2086c3">Free 3D Earth Screensaver</font></strong><br> <nobr>Watch the Earth right on your desktop!</nobr> <nobr>Check it out at <a href="http://www.inbox.com/earth">www.inbox.com/earth</a></nobr></div> </BODY> </HTML> |
From: Javier D. <jd...@tc...> - 2012-09-16 18:00:46
|
Hello, I hope this is useful for official version, or at least to somebody in the same situation as us. Using r545 we had to do change invocation to initImpl immediatelly after MagicSeparator comment in order to avoid a warning in IE6,7 & 8: @@ -330,6 +330,10 @@ <script id="xsltforms-generatedscript" type="text/javascript"> <xsl:text>/* XsltForms_MagicSeparator */ </xsl:text> + <xsl:text>function </xsl:text> + <xsl:value-of select="$vn_pf"/> + <xsl:text>initImpl() { +</xsl:text> <xsl:text>XsltForms_globals.language = "</xsl:text> <xsl:choose> <xsl:when test="$lang != ''"> @@ -353,10 +357,6 @@ </xsl:choose> <xsl:text>"; </xsl:text> - <xsl:text>function </xsl:text> - <xsl:value-of select="$vn_pf"/> - <xsl:text>initImpl() { -</xsl:text> The warning was: Mensaje: 'XsltForms_globals' no está definido Línea: 4 Carácter: 1 Código: 0 With the js change all works as previously did but error doesn't appear. Cheers, Javier ************************************************************************************************************************************************ *La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada. * *Está dirigida exclusivamente a la persona destinataria. * *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.* *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * *The information in this e-mail is confidential and may be legally privileged. * *It is intended solely for the addressee. * *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * *If you are not the intended recipient, please delete this e-mail. * ************************************************************************************************************************************************ |