xsltforms-support Mailing List for XSLTForms (Page 97)
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: COUTHURES A. <ala...@ag...> - 2010-02-06 21:53:05
|
Hi Thorsten, Thank you very much for pointing at this problem and for providing this localization file. The next version of XSLTForms will not be using messages.properties files anymore but config.xsl files so I have modified the previous config_de.xsl instead. This can already be tested with the SVN version. Best regards, -Alain > Hi > > Sorry, I've done too much date programming with is very bad for you > mental health. In the German localization I used the ISO date separator > instead of the customary German separator. This is corrected in the > attached file. > > Regards > Thorsten > |
From: Thorsten R. <ju...@sc...> - 2010-02-05 23:05:45
|
Hi Sorry, I've done too much date programming with is very bad for you mental health. In the German localization I used the ISO date separator instead of the customary German separator. This is corrected in the attached file. Regards Thorsten |
From: Thorsten R. <ju...@sc...> - 2010-02-05 22:03:06
|
Hi The date picker does not work if the correct language support file for the browser language is not available. I attached the German i18n file. If the list eats it or something miscodes the Umlaut in March (März) let me know and I'll remail to wherever is appropriate. Regards Thorsten |
From: COUTHURES A. <ala...@ag...> - 2010-02-05 20:43:33
|
Hi Christophe, > is there a way to properly render a structure like this one? > > <xf:trigger class="tree-icon" appearance="minimal" ref="current()/@l"> > <img class="tree-icon elbow-line" > src="/db/e-Smile/system/resource/images/s.gif"/> > </xf:trigger> > > With the current release, the img stuff is not rendered at all. This > structure (trigger+img) can be pretty usefull in complex scenario - > for instance I use it to render a classic dynamic tree structure (with > '+' and '-' triggers to expand/collapse the tree. > > A workaround seems to write it this way: > <xf:trigger class="tree-icon" appearance="minimal" ref="current()/@l"> > <xf:label> > <img class="tree-icon elbow-line" > src="/db/e-Smile/system/resource/images/s.gif"/> > </xf:label> > </xf:trigger> I prefer the mediatype approach. Can you test this ? <xf:trigger class="tree-icon" appearance="minimal" ref="current()/@l"> <xf:label> <xf:output class="tree-icon elbow-line" value="'/db/e-Smile/system/resource/images/s.gif'" mediatype="image/*"/> </xf:label> </xf:trigger> > > But this option is only a partial one (= img is rendered) as the > xf:label adds '*' (required) and 'x'(alert) symbols on the form. I can't see that with a simple test case. Don't you have a binding on this attribute ? -Alain |
From: christophe g. <chr...@e-...> - 2010-02-05 17:16:09
|
Hi all is there a way to properly render a structure like this one? <xf:trigger class="tree-icon" appearance="minimal" ref="current()/@l"> <img class="tree-icon elbow-line" src="/db/e-Smile/system/resource/images/s.gif"/> </xf:trigger> With the current release, the img stuff is not rendered at all. This structure (trigger+img) can be pretty usefull in complex scenario - for instance I use it to render a classic dynamic tree structure (with '+' and '-' triggers to expand/collapse the tree. A workaround seems to write it this way: <xf:trigger class="tree-icon" appearance="minimal" ref="current()/@l"> <xf:label> <img class="tree-icon elbow-line" src="/db/e-Smile/system/resource/images/s.gif"/> </xf:label> </xf:trigger> But this option is only a partial one (= img is rendered) as the xf:label adds '*' (required) and 'x'(alert) symbols on the form. Thanks Christophs -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |
From: Klotz, L. <Lei...@xe...> - 2010-02-05 17:08:38
|
You're right, I think: http://www.w3.org/TR/xforms11/#submit-submission-element "When the [instance] attribute is absent, then the default is the instance that contains the submission data." Leigh. ________________________________ From: christophe geiser [mailto:chr...@e-...] Sent: Friday, February 05, 2010 2:23 AM To: xsl...@li... Subject: [Xsltforms-support] the default replace instance seems to be thefirst one on submission Hi all See the attached doc or below for the test case. It seems that a submission written without the 'instance' attribute like: <xforms:submission id="submit" ref="instance('toInsert')" action="toInsert.xml" replace="instance" method="post"/> would replace the first instance in the model and not the instance declared by the 'ref' attribute as default - I am not sure this is the spec behavior. Cheers and have a nice day Christophe ... |
From: christophe g. <chr...@e-...> - 2010-02-04 13:16:46
|
Hi all just to report on this: an expression like <xf:repeat nodeset="instance('data')//*[@id]"/> seems to have some difficulties to be properly evaluated. <?xml-stylesheet href="xsltForms/db/xsltforms/trunk/build/xsltforms.xsl" type="text/xsl"?> <?xsltforms-options debug="yes"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events"> <head> <title>test repeat with //</title> <xf:model id="mod"> <xf:instance id="data" xmlns=""> <data> <task id="1"> <name>1</name> <task id="2"> <name>2</name> </task> </task> <task id="3"> <name>3</name> </task> <task id="4"> <name>4</name> <task id="5"> <name>5</name> </task> </task> </data> </xf:instance> </xf:model> </head> <body> <h1>test repeat </h1> <div> <p>working: nodeset="instance('data')//@id"</p> <xf:repeat nodeset="instance('data')//@id" id="rep"> <xf:output ref="../name"/> </xf:repeat> </div> <div> <p>not working: nodeset="instance('data')//*[@id]</p> <xf:repeat nodeset="instance('data')//*[@id]" id="rep2"> <xf:output ref="name"/> </xf:repeat> </div> </body> </html> I will continue testing the features of xsltform against my application. Till now, I must say that I am really happy with this solution - it is pretty fast and intuitive. Cheers C. |
From: christophe g. <chr...@e-...> - 2010-02-03 22:24:57
|
You are right - I naively tought the link 'download XSLTForms at sourceforge.net' would point to the latest SVN version. Axes works fine with the trunk - thanks a lot C. On Wed, Feb 3, 2010 at 9:06 PM, COUTHURES Alain < ala...@ag...> wrote: > Hi Christophe, > > I must be missing something re axes support (I read somewhere that axes >> support had been integrated - I might be wrong though). The following form >> casts an xPath expression Error (Unknown operator at ':rep/tt' in >> 'current()/ancestor::rep/tt). Or is there another way to declare axes? >> > I have just tested it successfully with the latest SVN version. Are you > sure you tried with it ? > > Thanks! > > -Alain > > -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |
From: COUTHURES A. <ala...@ag...> - 2010-02-03 20:06:25
|
Hi Christophe, > I must be missing something re axes support (I read somewhere that > axes support had been integrated - I might be wrong though). The > following form casts an xPath expression Error (Unknown operator at > ':rep/tt' in 'current()/ancestor::rep/tt). Or is there another way to > declare axes? I have just tested it successfully with the latest SVN version. Are you sure you tried with it ? Thanks! -Alain |
From: Christopher D. <cd...@vi...> - 2010-02-03 14:38:13
|
Alain, I have a follow-up and possibly a partial solution to this issue. However, I would like your feedback. My largest issue is the number of seconds it takes a user to "tab" from one field to the next in my form. As you probably saw, my form has several unique characteristics: . very large instance data . several hundred inputs . nested repeats (3 levels deep) After doing some profiling in IE, I noticed that the xmlValue and ExprContext functions are the biggest offenders in both number of calls and execution time. After investigating this a bit further, I noticed that the xforms-recalculate event was being called twice--once from XFControl.prototype.valueChanged and again from xforms.closeAction. It seems to me that XFControl.prototype.valueChanged does all the leg work so that xforms.closeAction will recalculate and revalidate the instance. By removing the line: XMLEvents.dispatch(model, "xforms-recalculate"); from XFControl.prototype.valueChanged, I was able to almost halve the time it takes a user to "tab" from one field to the next. Preliminary testing indicates that there are no negative side effects. Is there any reason why this cannot be a permanent (albeit partial) fix for this issue? Regards, Chris From: COUTHURES Alain [mailto:ala...@ag...] Sent: Saturday, January 23, 2010 11:16 AM To: Christopher Dedels Cc: xsl...@li... Subject: Re: [Xsltforms-support] xsltforms Performance Christopher, I have been using xsltforms to create some complicated interfaces. xsltforms performance appears to degrade significantly as the size of the instance data increases. It does not seem to be impacted as significantly by the number of input controls on the page. This means that paging the items in my repeat element has almost no performance impact. Can you send me a link or the XForms document itself with its data ? Profiling tools report at least 13 seconds in IE 8 (2.5 seconds in FF/Chrome) Yes, IE is still very slower... to "tab" from one field to the next, regardless of whether the data in the field was changed. It's a good situation to check with a javascript debugger (focus is lost,...). As you can expect, this is not acceptable for my users. There are different possibilities of optimization in XSLTForms: less generated HTML elements, less Javascript instructions executed,... Because this has not been done yet, I hope that a minimal effort could improve it significantly. What are the scalability limits of xsltforms? This is not yet determined but there are many parameters involved: complexity, instance size, number of bindings, ... Do you have any suggestions on how to improve performance in my xforms document? Use of // in XPath expressions is surely to avoid. -Alain |
From: Dimuthu N. <dim...@ya...> - 2010-02-03 13:10:20
|
Hi Alain, Thank you very much for the information.Would you please explain bit more about the server trick that can be used for file upload. Thank you, Dimuthu. --- On Wed, 3/2/10, COUTHURES Alain <ala...@ag...> wrote: From: COUTHURES Alain <ala...@ag...> Subject: Re: [Xsltforms-support] XForm control support To: "Dimuthu Nawarathna" <dim...@ya...> Cc: xsl...@li... Date: Wednesday, 3 February, 2010, 2:15 AM Hi Dimuthu, 1. Tab control - Is there a way to organize content in such a way that user would see as they are content Tabs? xf:switch and xf:toggle can be use to loook like tabs. 2. Selectable list control - It should be a list where one can select an item. (Like HTML <select> tag) xf:select and xf:select1 are supported 3. xforms:upload - Upload control to browse and add an image data into XML (I saw the test fails for upload control. But is there any workaround? ) xf:upload is not yet supported (a server trick is required to fully implement it in XSLTForms) 4. xforms:group - Can't we use this group element for a list. (But I don't see it render as a list ) xf:group is to change context and treat bubbling events. xf:repeat is there to render a set. 5. Can we integrate XSLTForm with a XML schema to validate XML ? If so. can you please show me an example. XML Schema support in XSLTForms is still incomplete... -Alain Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/ |
From: christophe g. <chr...@e-...> - 2010-02-03 11:24:08
|
Hi all I must be missing something re axes support (I read somewhere that axes support had been integrated - I might be wrong though). The following form casts an xPath expression Error (Unknown operator at ':rep/tt' in 'current()/ancestor::rep/tt). Or is there another way to declare axes? <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?> <?xsltforms-options debug="yes"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" > <head> <title>test axis</title> <xf:model id="my_model"> <xf:instance id="my_instance"> <data xmlns=""> <rep> <tt>tt</tt> <level1> <level2>test1</level2> </level1> <level1> <level2>test2</level2> </level1> </rep> </data> </xf:instance> </xf:model> </head> <body> <p>axis</p> <xf:repeat nodeset="instance('my_instance')/rep/level1"> level2: <xf:output ref="level2"/> test axis: <xf:output ref="current()/ancestor::rep/tt"/> </xf:repeat> </body> </html> Thanks in advance Christophe -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |
From: christophe g. <chr...@e-...> - 2010-02-03 10:15:51
|
Hi all This is clearly not a priority (and it is very likely to be a firebug... bug), but it can get quite annoying while debugging: I cannot have the firebug command line to work on a xlstforms page. No javascript is executed with the command line and at some point (after a few refresh), I get a firebug error message stating: "Firebug cannot find _firebugConsole element true". Has somebody encoutered this and been able to fix it ? Thanks Christophe -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |
From: Christopher D. <cd...@vi...> - 2010-02-02 21:59:45
|
Alain, Here is the test case for the xforms context function. The sample allows a user to edit the title and author of a book. The data is copied to a separate instance for editing and then, if the user decides to save the changes, the original values in the first instance should be replaced with the modified values from the second instance. Let me know if I can help further. Chris <?xml version="1.0" ?> <?xml-stylesheet href="xsltforms.xsl" type="text/xsl"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <head> <xf:model> <!-- DATA FROM EXTERNAL SOURCES --> <xf:instance id="library"> <library> <books> <book> <title>The Astonishing Life of Octavian Nothing, Traitor to the Nation, Volume II: The Kingdom on the Waves</title> <author>M. T. Anderson</author> </book> <book> <title>The Way We Work</title> <author>David Macaulay with Richard Walker, illustrated by David Macaulay</author> </book> <book> <title>Old Bear</title> <author>Kevin Henkes</author> </book> </books> </library> </xf:instance> <xf:instance id="editbook"> <book> <title></title> <author></author> </book> </xf:instance> </xf:model> <title>context() Test</title> <style> td { border: 1px solid #000000; } </style> </head> <body> <xf:group ref="instance('editbook')"> <xf:switch> <xf:case id="noedit" selected="true"/> <xf:case id="edit"> <div style="width: 100%; height: 100%; position: absolute; background-color: #fff;"> <table> <tr> <td> Title </td> <td> <xf:input ref="title"/> </td> </tr> <tr> <td> Author </td> <td> <xf:input ref="author"/> </td> </tr> <tr> <td colspan="2"> <xf:trigger> <xf:label> Cancel </xf:label> <xf:action ev:event="DOMActivate"> <xf:setvalue ref="title" value="''"/> <xf:setvalue ref="author" value="''"/> <xf:toggle case="noedit" /> </xf:action> </xf:trigger> <xf:trigger> <xf:label> Save </xf:label> <xf:action ev:event="DOMActivate"> <xf:setvalue ref="instance('library')/books/book[index('books')]/title" value="context()/title"/> <xf:setvalue ref="instance('library')/books/book[index('books')]/author" value="context()/author"/> <xf:toggle case="noedit" /> </xf:action> </xf:trigger> </td> </tr> </table> </div> </xf:case> </xf:switch> </xf:group> <xf:group ref="instance('library')"> <table> <thead> <tr> <td></td> <td> <b>Title</b> </td> <td> <b>Author</b> </td> </tr> </thead> <tbody> <xf:repeat id="books" nodeset="books/book"> <td> <xf:trigger> <xf:label> Edit </xf:label> <xf:action ev:event="DOMActivate"> <xf:setvalue ref="instance('editbook')/title" value="context()/title"/> <xf:setvalue ref="instance('editbook')/author" value="context()/author"/> <xf:toggle case="edit" /> </xf:action> </xf:trigger> </td> <td> <xf:output ref="title"/> </td> <td> <xf:output ref="author"/> </td> </xf:repeat> </tbody> </table> </xf:group> </body> </html> -----Original Message----- From: COUTHURES Alain [mailto:ala...@ag...] Sent: Tuesday, February 02, 2010 3:21 PM To: Christopher Dedels Cc: xsl...@li... Subject: Re: [Xsltforms-support] xforms context function Christopher, > It appears that the context function does not work correctly. Here is sample code to reproduce the issue: > > <xf:repeat id="books" nodeset="instance('library')/books/book"> > <xf:trigger appearance="minimal"> > <xf:label> > <xf:output ref="title"/> > </xf:label> > <xf:setvalue ref="instance('customer')/book/title" value="context()/title" ev:event="DOMActivate"/> > </xf:trigger> > </xf:repeat> > > It appears that the context function is returning a reference to the instance('customer')/book/title node, not the instance('library')/books[index('books')]/book node as expected. > Can you please provide a full test case ? It would surely accelerate debugging. Thanks! -Alain |
From: Klotz, L. <Lei...@xe...> - 2010-02-02 21:53:23
|
Although not immediately implementable, one proposal the WG is considering is having the dialog use its own instance and "submit" back to another, local model (i.e., <submission resource="#foo">). Some work by Charlie Wiecha and Rafah Hosn at IBM had been done on this in the past, under the name "XAC", with a "Russian Doll" composition of model-to-model communcation. As far as I know, though, no concrete proposal for syntax to do this has yet been proposed on the receiving end of the submission (I.e., what element has id="foo" and what happens.) A proposal for how to move forward on that would be great, and would probably be the same execution overhead as an "undo" instance, yet provide additional abstract power and recursive composition facilities, and enhance modularity. Leigh. -----Original Message----- From: Micah Dubinko [mailto:Mic...@ma...] Sent: Tuesday, February 02, 2010 1:18 PM To: xsl...@li... Subject: [Xsltforms-support] Dialog OK vs. cancel Now that we have dialogs (thanks Alain!) we are looking in to ways to make them work with two possible close cases, OK and Cancel (equivalently, the X button in the upper-right). What do people think of this technique? 1) Create a separate instance called "undo". Upon opening the dialog, copy over the main instance data into "undo". If the user dismisses the dialog with OK, proceed as usual. If the user hits cancel or X, copy the stored instance back over the first one, thus rolling back whatever changes had been made in the dialog. If you have nested dialogs, you'd need to be more careful. Is there a better/more straightforward way to accomplish this? -m ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: COUTHURES A. <ala...@ag...> - 2010-02-02 21:52:02
|
Hey Micah, > Now that we have dialogs (thanks Alain!) we are looking in to ways to make them work with two possible close cases, OK and Cancel (equivalently, the X button in the upper-right). > > What do people think of this technique? > > 1) Create a separate instance called "undo". Upon opening the dialog, copy over the main instance data into "undo". If the user dismisses the dialog with OK, proceed as usual. If the user hits cancel or X, copy the stored instance back over the first one, thus rolling back whatever changes had been made in the dialog. If you have nested dialogs, you'd need to be more careful. > > Is there a better/more straightforward way to accomplish this? > The close attribute described at http://www.w3.org/MarkUp/Forms/wiki/Dialog?highlight=(CategoryXForms12) can be used to know that an internal back up is to be done of instances data. Then I would suggest another action to abort changes and hide the dialog such as xf:abort or xf:rollback Maybe xf:commit could also be defined for a more explicit back up and xf:reset could have an extra attribute to specify state to be restored.... It wouldn't be very difficult to implement this in XSLTForms because for each instance there is already a single srcXML Javascript property. Turning it to an array might be the solution. What do you think? Thanks! -Alain |
From: Micah D. <Mic...@ma...> - 2010-02-02 21:17:56
|
Now that we have dialogs (thanks Alain!) we are looking in to ways to make them work with two possible close cases, OK and Cancel (equivalently, the X button in the upper-right). What do people think of this technique? 1) Create a separate instance called "undo". Upon opening the dialog, copy over the main instance data into "undo". If the user dismisses the dialog with OK, proceed as usual. If the user hits cancel or X, copy the stored instance back over the first one, thus rolling back whatever changes had been made in the dialog. If you have nested dialogs, you'd need to be more careful. Is there a better/more straightforward way to accomplish this? -m |
From: COUTHURES A. <ala...@ag...> - 2010-02-02 20:45:00
|
Hi Dimuthu, > 1. Tab control - Is there a way to organize content in such a way > that user would see as they are content Tabs? > xf:switch and xf:toggle can be use to loook like tabs. > 2. Selectable list control - It should be a list where one can select > an item. (Like HTML <select> tag) > xf:select and xf:select1 are supported > 3. xforms:upload - Upload control to browse and add an image data into > XML (I saw the test fails for upload control. But is there any > workaround? ) > xf:upload is not yet supported (a server trick is required to fully implement it in XSLTForms) > 4. xforms:group - Can't we use this group element for a list. (But I > don't see it render as a list ) > xf:group is to change context and treat bubbling events. xf:repeat is there to render a set. > 5. Can we integrate XSLTForm with a XML schema to validate XML ? If > so. can you please show me an example. > XML Schema support in XSLTForms is still incomplete... -Alain |
From: COUTHURES A. <ala...@ag...> - 2010-02-02 20:32:44
|
Because of this simple workaround, label/@ref support is now at very low priority in my plans... -Alain > label/@ref <mailto:label/@ref> is not implemented presently in XSLTForms. > > I took a look at implementing it, but it's not trivial, because the > xsltforms.xsl doesn't have a match rule for xf:label; instead, it's > scattered about in the various controls and control states. > > Alain would have to respond about his plans, but in the absence of an > implementation, use <xf:label><xf:output ref="..." /></xf:label> instead. > > ------------------------------------------------------------------------ > *From:* christophe geiser [mailto:chr...@e-...] > *Sent:* Monday, February 01, 2010 8:16 AM > *To:* Xsl...@li... > *Subject:* [Xsltforms-support] <xf:trigger><xf:label > ref="myLabelDoesNotSeemToWork"/></xf:trigger> > > Hi all > > I am doing some tests before trying to migrate my XRX app to > XSLTForms, and triggers' label with ref attribute does not seem to > produce the expected result. > > I am missing something there, or is this feature not yet implemented : > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xf="http://www.w3.org/2002/xforms"> > <head> > <title>XSLTForms test various</title> > <xf:model> > <xf:instance xmlns="" id="test"> > <cart> > <items> > <item>windshield wipers</item> > </items> > </cart> > </xf:instance> > </xf:model> > </head> > <body> > <xf:trigger ><xf:label > ref="instance('test')/items/item[1]"></xf:label></xf:trigger> > </body> > </html> > > Cheers > Christophe > -- > Christophe Geiser, social entrepreneur > e-Smile, solutions in monitoring and information management > -- |
From: COUTHURES A. <ala...@ag...> - 2010-02-02 20:20:50
|
Christopher, > It appears that the context function does not work correctly. Here is sample code to reproduce the issue: > > <xf:repeat id="books" nodeset="instance('library')/books/book"> > <xf:trigger appearance="minimal"> > <xf:label> > <xf:output ref="title"/> > </xf:label> > <xf:setvalue ref="instance('customer')/book/title" value="context()/title" ev:event="DOMActivate"/> > </xf:trigger> > </xf:repeat> > > It appears that the context function is returning a reference to the instance('customer')/book/title node, not the instance('library')/books[index('books')]/book node as expected. > Can you please provide a full test case ? It would surely accelerate debugging. Thanks! -Alain |
From: Dimuthu N. <dim...@ya...> - 2010-02-02 19:25:37
|
Hi all, I am bit new to XFrom development and I am assigned with a task to migrate a XForm document which is already processed via a activeX based approach to XSLT forms. I need to know whether the following types of controls are supported in XSLTForms 1. Tab control - Is there a way to organize content in such a way that user would see as they are content Tabs? 2. Selectable list control - It should be a list where one can select an item. (Like HTML <select> tag) 3. xforms:upload - Upload control to browse and add an image data into XML (I saw the test fails for upload control. But is there any workaround? ) 4. xforms:group - Can't we use this group element for a list. (But I don't see it render as a list ) 5. Can we integrate XSLTForm with a XML schema to validate XML ? If so. can you please show me an example. I went through the samples in http://www.agencexml.com/xsltforms.htm but could not find answers to above questions. Please advice. Thank you, Dimuthu. Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/ |
From: christophe g. <chr...@e-...> - 2010-02-02 16:06:54
|
Thanks a lot Leigh The first part of your message sounded a bit like a pretty bad news, but it works quite well with the proposed workaround ; - ) Cheers Christophe On Mon, Feb 1, 2010 at 7:06 PM, Klotz, Leigh <Lei...@xe...> wrote: > label/@ref is not implemented presently in XSLTForms. > > I took a look at implementing it, but it's not trivial, because the > xsltforms.xsl doesn't have a match rule for xf:label; instead, it's > scattered about in the various controls and control states. > > Alain would have to respond about his plans, but in the absence of an > implementation, use <xf:label><xf:output ref="..." /></xf:label> instead. > > ------------------------------ > *From:* christophe geiser [mailto:chr...@e-...] > *Sent:* Monday, February 01, 2010 8:16 AM > *To:* Xsl...@li... > *Subject:* [Xsltforms-support] <xf:trigger><xf:label > ref="myLabelDoesNotSeemToWork"/></xf:trigger> > > Hi all > > I am doing some tests before trying to migrate my XRX app to XSLTForms, and > triggers' label with ref attribute does not seem to produce the expected > result. > > I am missing something there, or is this feature not yet implemented : > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xf="http://www.w3.org/2002/xforms"> > <head> > <title>XSLTForms test various</title> > <xf:model> > <xf:instance xmlns="" id="test"> > <cart> > <items> > <item>windshield wipers</item> > </items> > </cart> > </xf:instance> > </xf:model> > </head> > <body> > <xf:trigger ><xf:label > ref="instance('test')/items/item[1]"></xf:label></xf:trigger> > </body> > </html> > > Cheers > Christophe > -- > Christophe Geiser, social entrepreneur > e-Smile, solutions in monitoring and information management > -- > > -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |
From: Christopher D. <cd...@vi...> - 2010-02-02 13:51:32
|
It appears that the context function does not work correctly. Here is sample code to reproduce the issue: <xf:repeat id="books" nodeset="instance('library')/books/book"> <xf:trigger appearance="minimal"> <xf:label> <xf:output ref="title"/> </xf:label> <xf:setvalue ref="instance('customer')/book/title" value="context()/title" ev:event="DOMActivate"/> </xf:trigger> </xf:repeat> It appears that the context function is returning a reference to the instance('customer')/book/title node, not the instance('library')/books[index('books')]/book node as expected. Have I misunderstood the purpose of this function? http://www.w3.org/TR/xforms11/#fn-context Chris |
From: Klotz, L. <Lei...@xe...> - 2010-02-01 18:06:55
|
label/@ref is not implemented presently in XSLTForms. I took a look at implementing it, but it's not trivial, because the xsltforms.xsl doesn't have a match rule for xf:label; instead, it's scattered about in the various controls and control states. Alain would have to respond about his plans, but in the absence of an implementation, use <xf:label><xf:output ref="..." /></xf:label> instead. ________________________________ From: christophe geiser [mailto:chr...@e-...] Sent: Monday, February 01, 2010 8:16 AM To: Xsl...@li... Subject: [Xsltforms-support] <xf:trigger><xf:label ref="myLabelDoesNotSeemToWork"/></xf:trigger> Hi all I am doing some tests before trying to migrate my XRX app to XSLTForms, and triggers' label with ref attribute does not seem to produce the expected result. I am missing something there, or is this feature not yet implemented : <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>XSLTForms test various</title> <xf:model> <xf:instance xmlns="" id="test"> <cart> <items> <item>windshield wipers</item> </items> </cart> </xf:instance> </xf:model> </head> <body> <xf:trigger ><xf:label ref="instance('test')/items/item[1]"></xf:label></xf:trigger> </body> </html> Cheers Christophe -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |
From: christophe g. <chr...@e-...> - 2010-02-01 16:47:32
|
Hi all I am doing some tests before trying to migrate my XRX app to XSLTForms, and triggers' label with ref attribute does not seem to produce the expected result. I am missing something there, or is this feature not yet implemented : <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>XSLTForms test various</title> <xf:model> <xf:instance xmlns="" id="test"> <cart> <items> <item>windshield wipers</item> </items> </cart> </xf:instance> </xf:model> </head> <body> <xf:trigger ><xf:label ref="instance('test')/items/item[1]"></xf:label></xf:trigger> </body> </html> Cheers Christophe -- Christophe Geiser, social entrepreneur e-Smile, solutions in monitoring and information management -- |