xsltforms-support Mailing List for XSLTForms (Page 51)
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: Grégoire C. <gco...@gm...> - 2012-02-02 20:21:54
|
Hi Alain, This expression is used in a <xf:output value="" model="" /> element. I already corrected the confusions between @ref and @value in my page, and so this is surprising that this doesn't work anymore. Grégoire PS : sorry for the previous (incomplete) mail. Le 02/02/2012 21:01, Alain Couthures a écrit : > Hello Grégoire, > > This error message is displayed when a nodeset is expected and when the > result of the expression evaluation is not returning a nodeset. > > For example, confusing xf:output/@ref and xf:output/@value could produce > this error. > > Could you please tell where this big XPath expression is used? > > Thanks! > > -Alain > > Le 02/02/2012 20:45, Grégoire COLBERT a écrit : >> Hi! >> >> I upgraded to revision 523 and I now get an error during initialization: >> >> Binding evaluation didn't returned a nodeset but ' ' for XPath >> expression: concat( substring(instance('instance-annonces')/annonce[id = >> instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id >> >> = instance('instance-annonce-selectionnee')/id]/prix)-8, 3) , ' ' , >> substring(instance('instance-annonces')/annonce[id = >> instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id >> >> = instance('instance-annonce-selectionnee')/id]/prix)-5, 3) , ' ' , >> substring(instance('instance-annonces')/annonce[id = >> instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id >> >> = instance('instance-annonce-selectionnee')/id]/prix)-2, 3) ) >> >> This ugly XPath is used to separate large numbers in (up to) 3 groups of >> numbers (1234567 is displayed as 1 234 567). I know I could do this >> differently, but for now, I'd like to know why this doesn't work anymore? >> >> Thanks, >> Grégoire >> >> ------------------------------------------------------------------------------ >> >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > |
From: Alain C. <ala...@ag...> - 2012-02-02 20:14:12
|
Leigh, Thank you very much for those patches. They are now committed as rev. 524. -Alain Le 02/02/2012 00:01, Leigh L Klotz Jr a écrit : > Here are two patches for xsltforms-523: > > - for select/optgroup (one level) support; now working in Chrome as > well (removed a stray xhtml namespace-prefixed 'opgroup' element). > - for table/group expanding into the correct table child element > instead of div. > > Leigh. > |
From: Alain C. <ala...@ag...> - 2012-02-02 20:04:08
|
Hello Mark, This is probably a mime-type problem because IE is checking them before applying the transformation. With IE9 you can use the F12 debugger to capture network traffic and look at effective mime-types. Depending on your Apache version, there is a mime.types file in the conf directory that should contain this uncommented line: application/xml xml xsl Thank you for your feedbacks! -Alain Le 02/02/2012 09:26, Mark Seaborne a écrit : > Hi, > > I have set up an XSLTForms application on my machine using MAMP as the host. My XForms works beautifully in every browser I try with the exception of IE (8& 9). It looks as though the client-side XSLT just doesn't get called. Can anyone point me at documentation that explains what I need to do to to get my form to work in IE 8& 9. Thanks in advance for any advice. > > Mark > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Alain C. <ala...@ag...> - 2012-02-02 20:01:35
|
Hello Grégoire, This error message is displayed when a nodeset is expected and when the result of the expression evaluation is not returning a nodeset. For example, confusing xf:output/@ref and xf:output/@value could produce this error. Could you please tell where this big XPath expression is used? Thanks! -Alain Le 02/02/2012 20:45, Grégoire COLBERT a écrit : > Hi! > > I upgraded to revision 523 and I now get an error during initialization: > > Binding evaluation didn't returned a nodeset but ' ' for XPath > expression: concat( substring(instance('instance-annonces')/annonce[id = > instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id > = instance('instance-annonce-selectionnee')/id]/prix)-8, 3) , ' ' , > substring(instance('instance-annonces')/annonce[id = > instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id > = instance('instance-annonce-selectionnee')/id]/prix)-5, 3) , ' ' , > substring(instance('instance-annonces')/annonce[id = > instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id > = instance('instance-annonce-selectionnee')/id]/prix)-2, 3) ) > > This ugly XPath is used to separate large numbers in (up to) 3 groups of > numbers (1234567 is displayed as 1 234 567). I know I could do this > differently, but for now, I'd like to know why this doesn't work anymore? > > Thanks, > Grégoire > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Grégoire C. <gco...@gm...> - 2012-02-02 19:45:28
|
Hi! I upgraded to revision 523 and I now get an error during initialization: Binding evaluation didn't returned a nodeset but ' ' for XPath expression: concat( substring(instance('instance-annonces')/annonce[id = instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id = instance('instance-annonce-selectionnee')/id]/prix)-8, 3) , ' ' , substring(instance('instance-annonces')/annonce[id = instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id = instance('instance-annonce-selectionnee')/id]/prix)-5, 3) , ' ' , substring(instance('instance-annonces')/annonce[id = instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id = instance('instance-annonce-selectionnee')/id]/prix)-2, 3) ) This ugly XPath is used to separate large numbers in (up to) 3 groups of numbers (1234567 is displayed as 1 234 567). I know I could do this differently, but for now, I'd like to know why this doesn't work anymore? Thanks, Grégoire |
From: William D. V. <wi...@bi...> - 2012-02-02 14:10:47
|
Hi Mark, The mosto common issue with Internet Explorer is that it doesn't support application/xthml+xml Content Type. If your XForms are .xhtml files, check that your server sends them as text/xml o application/xml Content Type. Another quick solution is to change the file extension to xml and it will work. Hope this helps On 02.02.2012 03:26, Mark Seaborne wrote: > Hi, > > I have set up an XSLTForms application on my machine using MAMP as > the host. My XForms works beautifully in every browser I try with the > exception of IE (8 & 9). It looks as though the client-side XSLT just > doesn't get called. Can anyone point me at documentation that > explains > what I need to do to to get my form to work in IE 8 & 9. Thanks in > advance for any advice. > > Mark > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft > developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support -- William David Velasquez Laboratorio de Software Bitlab http://bitlab.com.co Movil 310 412 0218 |
From: Jens Ø. P. <oe...@gm...> - 2012-02-02 08:34:04
|
Dear Alain, Thank you for your patience! Regards, Jens On Feb 1, 2012, at 9:22 PM, Alain Couthures wrote: > Hello Jens, > > Since rev. 513, global JS elements have been renamed to avoid name conflicts with frameworks. > > Could you please replace "show" by "XsltForms_browser.show"? > > Thank you for your feedbacks! > > -Alain > > Le 01/02/2012 11:26, Jens Østergaard Petersen a écrit : >> Dear list, >> >> This should be a simple question …. >> >> I am using revision 522, with eXist trunk. >> >> I use some innocent javascript code instead of the built-in xforms hints. >> >> <span class="xforms-hint"> >> <span onmouseover="show(this, 'hint', true)" onmouseout="show(this, 'hint', false)" >> class="xforms-hint-icon"/> >> <div class="xforms-hint-value"> >> <xf:output mediatype="application/xhtml+xml" incremental="true" >> ref="instance('code-tables')/code-table[code-table-name='hint-code']/items/item[value='name']/help" >> /> >> </div> >> </span> >> >> or (without use of output): >> >> <span class="xforms-hint"> >> <span onmouseover="show(this, 'hint', true)" onmouseout="show(this, 'hint', false)" >> class="xforms-hint-icon"/> >> <div class="xforms-hint-value"> >> <p> Use Topic to indicate any primary topical/abstract subjects that do not fit into the >> Geographic, Temporal, Title Information, or Name subfields. In general, abstract >> nouns should be used. While it is highly recommended that subject values be parsed >> into subfields, they may also be listed as a string, divided by e.g. dashes, as in >> Library of Congress Subject Headings.</p> >> </div> >> </span> >> >> Somehow this popup has ceased to work sometime after revision 511. With 522, only the icon is displayed. What could be the reason for this? >> >> I insert these "hints" after the field label, thereby getting a much nicer display of my (at times quite lengthy) hints texts. The hints don't move around on the screen like they do when they are attached to the right of fields (which have varying length) and they can therefore easily have a consistent greater width. >> >> Cheers, >> >> Jens >> >> PS: The "advertisement" in the 522 profiler should be updated. >> > > |
From: Mark S. <m_s...@ma...> - 2012-02-02 08:26:57
|
Hi, I have set up an XSLTForms application on my machine using MAMP as the host. My XForms works beautifully in every browser I try with the exception of IE (8 & 9). It looks as though the client-side XSLT just doesn't get called. Can anyone point me at documentation that explains what I need to do to to get my form to work in IE 8 & 9. Thanks in advance for any advice. Mark |
From: Leigh L K. Jr <lei...@xe...> - 2012-02-01 23:36:10
|
Here are two patches for xsltforms-523: - for select/optgroup (one level) support; now working in Chrome as well (removed a stray xhtml namespace-prefixed 'opgroup' element). - for table/group expanding into the correct table child element instead of div. Leigh. |
From: Alain C. <ala...@ag...> - 2012-02-01 20:28:01
|
Hello Jens, Since rev. 513, global JS elements have been renamed to avoid name conflicts with frameworks. Could you please replace "show" by "XsltForms_browser.show"? Thank you for your feedbacks! -Alain Le 01/02/2012 11:26, Jens Østergaard Petersen a écrit : > Dear list, > > This should be a simple question …. > > I am using revision 522, with eXist trunk. > > I use some innocent javascript code instead of the built-in xforms hints. > > <span class="xforms-hint"> > <span onmouseover="show(this, 'hint', true)" onmouseout="show(this, 'hint', false)" > class="xforms-hint-icon"/> > <div class="xforms-hint-value"> > <xf:output mediatype="application/xhtml+xml" incremental="true" > ref="instance('code-tables')/code-table[code-table-name='hint-code']/items/item[value='name']/help" > /> > </div> > </span> > > or (without use of output): > > <span class="xforms-hint"> > <span onmouseover="show(this, 'hint', true)" onmouseout="show(this, 'hint', false)" > class="xforms-hint-icon"/> > <div class="xforms-hint-value"> > <p> Use Topic to indicate any primary topical/abstract subjects that do not fit into the > Geographic, Temporal, Title Information, or Name subfields. In general, abstract > nouns should be used. While it is highly recommended that subject values be parsed > into subfields, they may also be listed as a string, divided by e.g. dashes, as in > Library of Congress Subject Headings.</p> > </div> > </span> > > Somehow this popup has ceased to work sometime after revision 511. With 522, only the icon is displayed. What could be the reason for this? > > I insert these "hints" after the field label, thereby getting a much nicer display of my (at times quite lengthy) hints texts. The hints don't move around on the screen like they do when they are attached to the right of fields (which have varying length) and they can therefore easily have a consistent greater width. > > Cheers, > > Jens > > PS: The "advertisement" in the 522 profiler should be updated. > |
From: Alain C. <ala...@ag...> - 2012-02-01 20:22:35
|
Hello Steve, This bug is now fixed and a new revision is committed: the difference between the 2 XPath expressions is that, in the first one, a nodeset is compared to a constant string while, in the second one, just one node is compared to the same constant string. Thank you for your feedbacks! -Alain Le 01/02/2012 08:40, Stephen Cameron a écrit : > Hello Alain, > > The test cases I promised are attached. > > test1.xml is the version that works > test2.xml is the version that should work but does not > > in each there are two select1 controls. > > Also there is another interesting problem that I cannot explain, in > the two select1 controls the xf:help value is dynamic and should > change with the value that you have selected in the control, it does > change in the second select1 but does not change in the first select1. > > I will make these forms available online at: > > http://collinta.com.au/xsltforms/test1.xml > http://collinta.com.au/xsltforms/test2.xml > > I get the same error across the following browsers: FF 9.0.1, IE > 9.08112.16421, Chrome 16.0.912.77, Safari 5.1.2 > > Regards > > Steve Cameron |
From: Jens Ø. P. <oe...@gm...> - 2012-02-01 10:26:37
|
Dear list, This should be a simple question …. I am using revision 522, with eXist trunk. I use some innocent javascript code instead of the built-in xforms hints. <span class="xforms-hint"> <span onmouseover="show(this, 'hint', true)" onmouseout="show(this, 'hint', false)" class="xforms-hint-icon"/> <div class="xforms-hint-value"> <xf:output mediatype="application/xhtml+xml" incremental="true" ref="instance('code-tables')/code-table[code-table-name='hint-code']/items/item[value='name']/help" /> </div> </span> or (without use of output): <span class="xforms-hint"> <span onmouseover="show(this, 'hint', true)" onmouseout="show(this, 'hint', false)" class="xforms-hint-icon"/> <div class="xforms-hint-value"> <p> Use Topic to indicate any primary topical/abstract subjects that do not fit into the Geographic, Temporal, Title Information, or Name subfields. In general, abstract nouns should be used. While it is highly recommended that subject values be parsed into subfields, they may also be listed as a string, divided by e.g. dashes, as in Library of Congress Subject Headings. </p> </div> </span> Somehow this popup has ceased to work sometime after revision 511. With 522, only the icon is displayed. What could be the reason for this? I insert these "hints" after the field label, thereby getting a much nicer display of my (at times quite lengthy) hints texts. The hints don't move around on the screen like they do when they are attached to the right of fields (which have varying length) and they can therefore easily have a consistent greater width. Cheers, Jens PS: The "advertisement" in the 522 profiler should be updated. |
From: Alain C. <ala...@ag...> - 2012-01-31 06:02:46
|
Hello Stephen, This TypeError is a bug by itself and I agree that the 2 XPath expressions should return the same results. Could you please send me a testcase? Did you test with different browsers? Thanks! -Alain Le 30/01/2012 23:18, Stephen Cameron a écrit : > Hello > > I am interested to know why the following Xpath is incorrect > > Error evaluating the following XPath expression : > > instance('rendering')/s2x:render-list[s2x:render-for = > 'xs:schema/xs:element']/s2x:render[@as=current()]/s2x:description > > TypeError > > node.documentElement is undefined > > However, this modification fixes it: > > instance('rendering')/s2x:render-list[s2x:render-for[. = > 'xs:schema/xs:element']]/s2x:render[@as=current()]/s2x:description > > I imagine that they are the same thing effectively? > > Regards > > Steve Cameron > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Stephen C. <ste...@gm...> - 2012-01-30 22:18:27
|
Hello I am interested to know why the following Xpath is incorrect Error evaluating the following XPath expression : instance('rendering')/s2x:render-list[s2x:render-for = 'xs:schema/xs:element']/s2x:render[@as=current()]/s2x:description TypeError node.documentElement is undefined However, this modification fixes it: instance('rendering')/s2x:render-list[s2x:render-for[. = 'xs:schema/xs:element']]/s2x:render[@as=current()]/s2x:description I imagine that they are the same thing effectively? Regards Steve Cameron |
From: Stephen C. <ste...@gm...> - 2012-01-17 09:44:17
|
Hi All, I think that my problem is due to having a select1 without any items in its itemset nodeset. I seem to be on the right path to a resolution now. |
From: Stephen C. <ste...@gm...> - 2012-01-17 08:28:44
|
Hello, I have a problem with an XForms Schema designer "app" that I am building based on XSLTForms I get an exception thrown that causes the view to freeze up. The problem can be replicated here: http://collinta.com.au/xsltforms/designer.xml (Note: in FF minimize and maximise the window after it loads in, seems to be FF bug) You will see two repeats one on the left which is a list of schema elements 1 to 5 and one in the middle which shows the children of the specific element selected on the left. Its possible to select each of elements 1 to 5 no problems. But if you select element 1, that contains a sequence of two elements a and b, and then select any two items (order seems irrelevant) you should see the view freeze up. This occurs in Firefox 9.0.1 and IE 9.0. In FF Error Console I see an error that occurs on line 5882 (marked by >> below), namely "this.select.firstChild is null": XsltForms_select.prototype.setValue = function(value) { if (!this.full && (!value || value === "")) { this.selectedOptions = []; if (this.select.firstChild.value !== "\xA0") { var empty = this.select.options[0].cloneNode(true); empty.value = "\xA0"; empty.text = "\xA0"; empty.id = ""; this.select.insertBefore(empty, this.select.options[0]); this.select.selectedIndex = 0; } } else { >> if (!this.full && this.select.firstChild.value === "\xA0") { this.select.removeChild(this.select.firstChild); } var vals = value? (this.multiple? value.split(XsltForms_globals.valuesSeparator) : [value]) : [""]; var list = this.full? (XsltForms_browser.isXhtml ? this.element.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "input") : this.element.getElementsByTagName("input")) : this.select.options; var well = true; for (var i = 0, len = vals.length; well && i < len; i++) { var val = vals[i]; var found = false; for (var j = 0, len1 = list.length; !found && j < len1; j++) { if (list[j].value === val) { found = true; } } well = found; } if (well || (this.multiple && !value)) { if (this.outRange) { this.outRange = false; XsltForms_xmlevents.dispatch(this, "xforms-in-range"); } } else if ((!this.multiple || value) && !this.outRange) { this.outRange = true; XsltForms_xmlevents.dispatch(this, "xforms-out-of-range"); } vals = this.multiple? vals : [vals[0]]; var readonly = this.element.node.readonly; var item; if (this.full) { for (var n = 0, len2 = list.length; n < len2; n++) { item = list[n]; item.checked = XsltForms_browser.inArray(item.value, vals); } } else { this.selectedOptions = []; for (var k = 0, len3 = list.length; k < len3; k++) { item = list[k]; var b = XsltForms_browser.inArray(item.value, vals); if (b) { this.selectedOptions.push(item); } try { item.selected = b; } catch(e) { } } } } }; Any help with this is greatly appreciated. Steve Cameron |
From: Grégoire C. <gco...@gm...> - 2012-01-16 07:31:06
|
Hi, I just updated from 521 to 522 and I now get the following error on initialization : xforms-compute-exception I don't really understand what this means. It seems to come from these lines: <xf:model id="modele-configuration"> <xf:instance id="instance-configuration" src="/configuration"/> <xf:load ev:event="xforms-model-construct-done" resource="javascript:$('body').scrollTop(0);$(window).scrollTop(0);$('body').scrollLeft(0);$(window).scrollLeft(0);"/> </xf:model> Any help would be greatly appreciated! Grégoire Le 13/04/2010 16:17, Kostis Anagnostopoulos a écrit : > Hi, > > I've added the capability to define @ev:phase attributes on xf:actions. > > This patch also include a check of miss-typed phase tokens. > Against rev385 (maintained tabs and indentation on sources) > > (unfortunately i could not build it, since make my apache's rewritting > rules might to work) > > Regards, > Kostis > > PS: > 1) Is this mailling-list the right place to submit patches? > 2) Should my patches also include the changes on the final > xsltforms.{js,xsl} files? > > > file: evPhaseAttr.diff > ------------------------------- > > Index: src/js/xmlevtmngt/Listener.js.xml > =================================================================== > --- src/js/xmlevtmngt/Listener.js.xml (revision 383) > +++ src/js/xmlevtmngt/Listener.js.xml (working copy) > @@ -31,6 +31,12 @@ > <![CDATA[ > function Listener(observer, name, phase, handler) { > phase = phase || "default"; > + if (phase != "default" && phase != "capture") { > + xforms.error(xforms.defaultModel, "xforms-compute-exception", > + "Unknown event-phase(" + phase +") for event(" > + + name + ")"+(observer? " on element(" + observer.id > + ")":"") + "!"); > + return; > + } > this.observer = observer; > this.name = name; > this.evtName = document.addEventListener? name : "errorupdate"; > Index: src/xslt/script/named-templates/listeners.xsl.xml > =================================================================== > --- src/xslt/script/named-templates/listeners.xsl.xml (revision 383) > +++ src/xslt/script/named-templates/listeners.xsl.xml (working copy) > @@ -47,7 +47,12 @@ > </xsl:choose> > <xsl:text>"),</xsl:text> > <xsl:call-template name="toScriptParam"><xsl:with-param name="p" > select="@ev:event"/></xsl:call-template> > - <xsl:text>,null,function(evt) {run(xf_</xsl:text> > + <xsl:text>,</xsl:text> > + <xsl:choose> > + <xsl:when test="@ev:phase">'<xsl:value-of select="@ev:phase"/>'</xsl:when> > + <xsl:otherwise>null</xsl:otherwise> > + </xsl:choose> > + <xsl:text>,function(evt) {run(xf_</xsl:text> > <xsl:variable name="lname2" select="local-name()"/> > <xsl:variable name="nsuri" select="namespace-uri()"/> > <xsl:value-of select="$lname2"/> > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: William D. V. <wi...@bi...> - 2012-01-10 13:29:52
|
Off course Dan, i know the next step is getting good documentation and I´ll be glad of sharing it. I have some ideas, like a step-by-step guide and a youTube video, but I like to hear more. Maybe for the end of this week I´ll get something done. Greetings, William On 07.01.2012 10:29, Dan McCreary wrote: > William an Alain, > > Great work! This is something I have wanted to use in my own XForms training for several years. It make a classroom setup so much easier if students can just write to their local disk and not deal with full Apache web server administration. > > Is there any chance I can convince you to point me to anything you have written or documentation on this topic? I think it would make for an excellent XForms wikibook article or perhaps a standalone PDF document that could be bundled with the XSLTForms documentation. > > Thanks - Dan > > On Fri, Jan 6, 2012 at 1:25 PM, Alain Couthures wrote: > >> Hi William, >> >> Thank you for sharing NanoXFServer. >> >> I developed a similar product named tXs for .Net and PHP: >> http://sourceforge.net/projects/txs/ [1] >> >> I still think that developing a small proxy-server for the same purpose >> should be great too! >> >> -Alain >> >> Le 06/01/2012 19:36, William David Velasquez a écrit : >> >>> Hi XSLTForms list, >> > >> > As you may know, using XSLTForms in the local filesytem without a >> > webserver is practically impossible due to javscript security >> > restrictions and saving an XML Instance to a local file is totally >> > impossible. >> > >> > A solution is to use a eXist-db or a localhost webserver with some >> > script to handle post or put and save the file. >> > >> > There is a really small and easy to use web server called NanoHTTPD >> > http://elonen.iki.fi/code/nanohttpd/ [2] made of just one Java file. >> > >> > I made a small modification on it to allow handling PUT method, and >> > wrote a subclass of NanoHTTPD that handles PUT or xml-urlencoded-post >> > submissions and saves xml instances to local files. >> > >> > I hope you'll find it useful for testing XForms, teaching (I personally >> > will use it for teaching XForms to my University students) or even >> > creating standalone XForms applications. >> > >> > You can download NanoXFServer on http://bitlab.com.co/nanoxfserver/ [3] >> > >> > All your comments are welcome! >> > >> > >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox [4] >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... [5] >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support [6] > > -- > Dan McCreary > Semantic Solutions Architect > office: (952) 931-9198 > cell: (612) 986-1552 -- William David Velasquez Laboratorio de Software Bitlab http://bitlab.com.co Movil 310 412 0218 Links: ------ [1] http://sourceforge.net/projects/txs/ [2] http://elonen.iki.fi/code/nanohttpd/ [3] http://bitlab.com.co/nanoxfserver/ [4] http://p.sf.net/sfu/Citrix-VDIinabox [5] mailto:Xsl...@li... [6] https://lists.sourceforge.net/lists/listinfo/xsltforms-support [7] mailto:ala...@ag... |
From: Dan M. <dan...@gm...> - 2012-01-09 14:33:31
|
Hi Stephen, In response to: > My current problem is in regard to XForm select1 elements, it is simple to indicate that a schema simple element should become a select1 but not so simple to indicate where the itemset for the select1 should come from (at least in a way that seems logical to me). This is a great question and one that has dogged everyone I know that has worked in the area of automatic XForms generation. The core problem is that XML Schemas are designed for validation, not presentation. So there is no element attribute for "label". In general the "best practice" that we use at the US Federal level is to generate both the Code <http://en.wikipedia.org/wiki/Code_%28metadata%29>-related SimpleTypes with enumerations (restriction of xs:string) from something called an ISO-11179 metadata registry. Although this sounds complicated there is only a single service you need out of the registry called a "code table service" that returns code-table items for each "Code" Representation Term <http://en.wikipedia.org/wiki/Representation_term> (any element that has a suffix called "Code"). This service takes in a "Data Element Name" (like CountryCode) and returns an item set that includes both the "value" and "label" for each item in a code set. This service is then used to create the enumerations for each SimpleType when the sub-schema is generated and the label/value pairs for the data elements. The way I build most of my XForms is to put all the codes in a single instance (usually called the "code-tables" or "all-codes" instance/service) and then reference this in each select1 or select. The decision to use select1 or select comes from the cardinality of the element in the XML Schema. Here is the structure of this code-table instance: http://en.wikibooks.org/wiki/XForms/Selecting_Codes_From_File#Structure_of_Code_Tables_Instance The key I have found is that some large forms use the same code-table in many areas. This approach allows you to only have to load the code-table once per form. In my XRX frameworks "all-codes.xq" is just a service that gets all the codes for any form. You can deduce this if all your elements end with the suffix "Code" or have the proper enumerations. I will try to document some of these best practices and put them in a wikibook article. Keep up the great work! - Dan On Sat, Jan 7, 2012 at 11:35 PM, Stephen Cameron <ste...@gm... > wrote: > Hi List > > This is somewhat off the subject of XSLTForms but I'm hoping there are > XML Schema/Schematron experts amongst the group who might like to > comment. > > I am building a XML Schema/Schematron designer using XSLTForms and > providing a means to generate XForms from the schemas produced. > > The designer side is looking pretty good now, and I'm starting to > focus on the XForms generation side of things. > > The basic idea is that XML Schema elements are annotated with > rendering elements indicating how they should be represented in an > XForm. Also Schematron asserts can be added that become constraints > on binds in the generated forms. > > The main requirement is that the schema must be able to generate forms > and also be useful for validating the XML generated by each form at > the server. > > My current problem is in regard to XForm select1 elements, it is > simple to indicate that a schema simple element should become a > select1 but not so simple to indicate where the itemset for the > select1 should come from (at least in a way that seems logical to me). > > I want to use an itemset that is bound to an 'code-list' instance > nodeset and provide a separate CRUD Xform for maintaining the items in > the code-list. Also. sometimes I want to be able to maintain a > hierarchical code-list such that two or more selects (one after the > other in the form) are linked to the same instance and selecting an > item in one itemset affects what is visible in the select1 itemset > below it (and so on). These are very common requirements and so I'd > like to create an intuitive way to set this scenario up in the > designer. > > This is something that is simple in a relational schema but not so > straight-forward in XML Schema. I think what I am wanting is to define > a element and say the possible set of values for that element are in > another element altogether and I'm not sure if the relationship needs > to be a derivation of the first element from the second element. > > If there is anyone with expertise in this arena that might like to comment. > > Thanks > > Steve Cameron > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > -- Dan McCreary Semantic Solutions Architect office: (952) 931-9198 cell: (612) 986-1552 |
From: Raja <m.r...@ni...> - 2012-01-09 08:54:25
|
Hi William And Alain !!! Really an amazing work. Like Dan we also expected same one from past 3 years. Wonderful option without eXist-db the local save from single Java file. Good time to see more number of xforms implementation. I personally feel xforms growing with you guys support .... By Rajamani M XRX Team Gov of India On 01/07/12, Dan McCreary <dan...@gm...> wrote: > William an Alain, > > Great work! This is something I have wanted to use in my own XForms training for several years. It make a classroom setup so much easier if students can just write to their local disk and not deal with full Apache web server administration. > > > Is there any chance I can convince you to point me to anything you have written or documentation on this topic? I think it would make for an excellent XForms wikibook article or perhaps a standalone PDF document that could be bundled with the XSLTForms documentation. > > > Thanks - Dan > > On Fri, Jan 6, 2012 at 1:25 PM, Alain Couthures <ala...@ag...> wrote: > > > > > Hi William, > > > > > > > > Thank you for sharing NanoXFServer. > > > > > > > > I developed a similar product named tXs for .Net and PHP: > > > > http://sourceforge.net/projects/txs/ > > > > > > > > I still think that developing a small proxy-server for the same purpose > > > > should be great too! > > > > > > > > -Alain > > > > > > > > Le 06/01/2012 19:36, William David Velasquez a écrit : > > > > > Hi XSLTForms list, > > > > > > > > > > As you may know, using XSLTForms in the local filesytem</x> without a > > > > > webserver is practically impossible due to javsc-ript security > > > > > restrictions and saving an XML Instance to a local file is totally > > > > > impossible. > > > > > > > > > > A solution is to use a eXist-db or a localhost webserver with some > > > > >sc-ript to handle post or put and save the file. > > > > > > > > > > There is a really small and easy to use web server called NanoHTTPD > > > > > http://elonen.iki.fi/code/nanohttpd/ made of just one Java file. > > > > > > > > > > I made a small modification on it to allow handling PUT method, and > > > > > wrote a subclass of NanoHTTPD that handles PUT or xml-urlencoded-post > > > > > submissions and saves xml instances to local files. > > > > > > > > > > I hope you'll find it useful for testing XForms, teaching (I personally > > > > > will use it for teaching XForms to my University students) or even > > > > > creating standalone XForms applications. > > > > > > > > > > You can download NanoXFServer on http://bitlab.com.co/nanoxfserver/ > > > > > > > > > > All your comments are welcome! > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > > > > infrastructure or vast IT resources to deliver seamless, secure access to > > > > virtual desktops. With this all-in-one solution, easily deploy virtual > > > > desktops for less than the cost of PCs and save 60% on VDI infrastructure > > > > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > > > > _______________________________________________ > > > > Xsltforms-support mailing list > > > > Xsl...@li... > > > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > > > > > > > > -- > Dan McCreary > Semantic Solutions Architect > office: (952) 931-9198 > cell: (612) 986-1552 > > > -- Rajamani Marimuthu Junior Research Fellow-JRF NIC -Open Technology Centre Rajaji Bhavan Besant Nagar, Chennai - 90 Cell : 9677192096 |
From: Stephen C. <ste...@gm...> - 2012-01-08 05:35:37
|
Hi List This is somewhat off the subject of XSLTForms but I'm hoping there are XML Schema/Schematron experts amongst the group who might like to comment. I am building a XML Schema/Schematron designer using XSLTForms and providing a means to generate XForms from the schemas produced. The designer side is looking pretty good now, and I'm starting to focus on the XForms generation side of things. The basic idea is that XML Schema elements are annotated with rendering elements indicating how they should be represented in an XForm. Also Schematron asserts can be added that become constraints on binds in the generated forms. The main requirement is that the schema must be able to generate forms and also be useful for validating the XML generated by each form at the server. My current problem is in regard to XForm select1 elements, it is simple to indicate that a schema simple element should become a select1 but not so simple to indicate where the itemset for the select1 should come from (at least in a way that seems logical to me). I want to use an itemset that is bound to an 'code-list' instance nodeset and provide a separate CRUD Xform for maintaining the items in the code-list. Also. sometimes I want to be able to maintain a hierarchical code-list such that two or more selects (one after the other in the form) are linked to the same instance and selecting an item in one itemset affects what is visible in the select1 itemset below it (and so on). These are very common requirements and so I'd like to create an intuitive way to set this scenario up in the designer. This is something that is simple in a relational schema but not so straight-forward in XML Schema. I think what I am wanting is to define a element and say the possible set of values for that element are in another element altogether and I'm not sure if the relationship needs to be a derivation of the first element from the second element. If there is anyone with expertise in this arena that might like to comment. Thanks Steve Cameron |
From: Dan M. <dan...@gm...> - 2012-01-07 15:29:34
|
William an Alain, Great work! This is something I have wanted to use in my own XForms training for several years. It make a classroom setup so much easier if students can just write to their local disk and not deal with full Apache web server administration. Is there any chance I can convince you to point me to anything you have written or documentation on this topic? I think it would make for an excellent XForms wikibook article or perhaps a standalone PDF document that could be bundled with the XSLTForms documentation. Thanks - Dan On Fri, Jan 6, 2012 at 1:25 PM, Alain Couthures < ala...@ag...> wrote: > Hi William, > > Thank you for sharing NanoXFServer. > > I developed a similar product named tXs for .Net and PHP: > http://sourceforge.net/projects/txs/ > > I still think that developing a small proxy-server for the same purpose > should be great too! > > -Alain > > Le 06/01/2012 19:36, William David Velasquez a écrit : > > Hi XSLTForms list, > > > > As you may know, using XSLTForms in the local filesytem without a > > webserver is practically impossible due to javscript security > > restrictions and saving an XML Instance to a local file is totally > > impossible. > > > > A solution is to use a eXist-db or a localhost webserver with some > > script to handle post or put and save the file. > > > > There is a really small and easy to use web server called NanoHTTPD > > http://elonen.iki.fi/code/nanohttpd/ made of just one Java file. > > > > I made a small modification on it to allow handling PUT method, and > > wrote a subclass of NanoHTTPD that handles PUT or xml-urlencoded-post > > submissions and saves xml instances to local files. > > > > I hope you'll find it useful for testing XForms, teaching (I personally > > will use it for teaching XForms to my University students) or even > > creating standalone XForms applications. > > > > You can download NanoXFServer on http://bitlab.com.co/nanoxfserver/ > > > > All your comments are welcome! > > > > > > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > -- Dan McCreary Semantic Solutions Architect office: (952) 931-9198 cell: (612) 986-1552 |
From: Alain C. <ala...@ag...> - 2012-01-06 19:26:08
|
Hi William, Thank you for sharing NanoXFServer. I developed a similar product named tXs for .Net and PHP: http://sourceforge.net/projects/txs/ I still think that developing a small proxy-server for the same purpose should be great too! -Alain Le 06/01/2012 19:36, William David Velasquez a écrit : > Hi XSLTForms list, > > As you may know, using XSLTForms in the local filesytem without a > webserver is practically impossible due to javscript security > restrictions and saving an XML Instance to a local file is totally > impossible. > > A solution is to use a eXist-db or a localhost webserver with some > script to handle post or put and save the file. > > There is a really small and easy to use web server called NanoHTTPD > http://elonen.iki.fi/code/nanohttpd/ made of just one Java file. > > I made a small modification on it to allow handling PUT method, and > wrote a subclass of NanoHTTPD that handles PUT or xml-urlencoded-post > submissions and saves xml instances to local files. > > I hope you'll find it useful for testing XForms, teaching (I personally > will use it for teaching XForms to my University students) or even > creating standalone XForms applications. > > You can download NanoXFServer on http://bitlab.com.co/nanoxfserver/ > > All your comments are welcome! > > |
From: William D. V. <wi...@bi...> - 2012-01-06 18:36:36
|
Hi XSLTForms list, As you may know, using XSLTForms in the local filesytem without a webserver is practically impossible due to javscript security restrictions and saving an XML Instance to a local file is totally impossible. A solution is to use a eXist-db or a localhost webserver with some script to handle post or put and save the file. There is a really small and easy to use web server called NanoHTTPD http://elonen.iki.fi/code/nanohttpd/ made of just one Java file. I made a small modification on it to allow handling PUT method, and wrote a subclass of NanoHTTPD that handles PUT or xml-urlencoded-post submissions and saves xml instances to local files. I hope you'll find it useful for testing XForms, teaching (I personally will use it for teaching XForms to my University students) or even creating standalone XForms applications. You can download NanoXFServer on http://bitlab.com.co/nanoxfserver/ All your comments are welcome! -- William David Velasquez Laboratorio de Software Bitlab http://bitlab.com.co Movil 310 412 0218 |
From: Alain C. <ala...@ag...> - 2012-01-06 13:52:34
|
Hi Stephen, This problem is due to XSLTForms not yet implementing deferred updates http://www.w3.org/TR/xforms11/#action-deferred-update-behavior Sorry, your proposed fix sounds more like a permissive workaround (this.element.node is not updated when out of range???)... Thanks! -Alain Le 06/01/2012 04:25, Stephen Cameron a écrit : > Futher to my last email > > this works better > > XsltForms_repeat.prototype.setIndex = function(index) { > if (this.index !== index) { > this.index = index; > if (this.index<= this.nodes.length&& this.nodes[index-1] ) { > XsltForms_globals.openAction(); > this.element.node = this.nodes[index-1]; > XsltForms_globals.addChange(this); > > XsltForms_globals.addChange(document.getElementById(XsltForms_browser.getMeta(this.element.node.ownerDocument.documentElement, > "model")).xfElement); > XsltForms_globals.closeAction(); > } > } > }; > > :) > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |