xsltforms-support Mailing List for XSLTForms (Page 8)
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: Josselin M. <mor...@gm...> - 2021-02-03 12:04:04
|
Hi Alessandro, I don’t know if you saw the Alain’s answer, but as he said, the use of submission/@ref will help you to reach your goal. It will allow you to determine which instance should be saved by each submission. By default, when @ref isn’t specified, it is the first one. <xf:submission id="save-disciplina" ref="instance('list-disciplina')" method="post" action="query_save_disciplina.xq?id_dip={$id_dip}" replace="instance" instance="list-disciplina"> <xf:action ev:event="xforms-submit-done"> <xf:message level="modal">Dati correttamente aggiornati!</xf:message> </xf:action> <xf:action ev:event="xforms-submit-error"> <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> </xf:action> </xf:submission> <xf:submission id="save-curriculum" ref="instance('list-curriculum')" method="post" action="query_save_curriculum.xq?id_dip={$id_dip}" replace="instance" instance="list-curriculum"> <xf:action ev:event="xforms-submit-done"> <xf:message level="modal">Dati correttamente aggiornati!</xf:message> </xf:action> <xf:action ev:event="xforms-submit-error"> <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> </xf:action> </xf:submission> Best, Josselin > Le 29 janv. 2021 à 15:37, Alessandro via Xsltforms-support <xsl...@li...> a écrit : > > Hi all! > My attempt is that of managing two instances (which are targeting two different nodes of the same xml file) by means of two repeats contained within the same form. Inserting and deleting rows works well with respect to both the repeats, but it seems possible to finally save to the xml file only the instance that appears at the first place within the model. Why is it so? What am I missing here? > > Regards > Alex > > The following is my form: > > xquery version "3.0"; > > import module namespace my_funcs="http://www.my_funcs.net <http://www.my_funcs.net/>" at "modules/my_app_functions_2.xql"; > > declare variable $app_collection := 'resources/data'; > > declare variable $id_dip := request:get-parameter("id_dip", ""); > > let $disciplina := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/dipendente[@id=$id_dip]/disciplina > > let $curriculum := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/dipendente[@id=$id_dip]/curriculum > > let $new_value := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/options/new_item > > let $file := concat($app_collection, '/', $my_funcs:my_employees_archive) > > let $login := xmldb:login($app_collection, 'admin', 'password') > > let $form := > <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml>" xmlns:xf="http://www.w3.org/2002/xforms <http://www.w3.org/2002/xforms>" xmlns:ev="http://www.w3.org/2001/xml-events <http://www.w3.org/2001/xml-events>" xmlns:xs="http://www.w3.org/2001/XMLSchema <http://www.w3.org/2001/XMLSchema>" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance>"> > <head> > <link rel="stylesheet" type="text/css" href="resources/css/schede_dipendenti_2.css" /> > <script src="resources/data/my_javascripts.js"/> > > <xf:model> > > <xf:instance id="list-curriculum"> > <data xmlns="">{$curriculum}</data> > </xf:instance> > > <xf:instance id="list-disciplina"> > <data xmlns="">{$disciplina}</data> > </xf:instance> > > <xf:submission id="save-disciplina" method="post" action="query_save_disciplina.xq?id_dip={$id_dip}" replace="instance" instance="list-disciplina"> > <xf:action ev:event="xforms-submit-done"> > <xf:message level="modal">Dati correttamente aggiornati!</xf:message> > </xf:action> > <xf:action ev:event="xforms-submit-error"> > <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> > </xf:action> > </xf:submission> > > <xf:submission id="save-curriculum" method="post" action="query_save_curriculum.xq?id_dip={$id_dip}" replace="instance" instance="list-curriculum"> > <xf:action ev:event="xforms-submit-done"> > <xf:message level="modal">Dati correttamente aggiornati!</xf:message> > </xf:action> > <xf:action ev:event="xforms-submit-error"> > <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> > </xf:action> > </xf:submission> > > </xf:model> > </head> > <body> > <center> > > <br/> > > <xf:group ref="instance('list-curriculum')/curriculum"> > <fieldset id="fieldset-list"> > <legend>Dati curriculari</legend> > <div class="header-disciplina"> > <table border="0"> > <tr> > <td> > <div class="leftColumn">Data 1</div> > </td> > <td style="width: 70px;"/> > <td> > <div class="leftColumn">Data 2</div> > </td> > <td style="width: 70px;"/> > <td> > <div class="leftColumn">Descrizione</div> > </td> > <td style="width: 70px;"/> > <td> > <div class="rightColumn">Note</div> > </td> > </tr> > </table> > </div> > > <xf:repeat id="list-cur" nodeset="riga"> > <table border="0" id="riga" class="list-table"> > > <tr> > <td> > <xf:input ref="data1/text()" class="short-input" /> > </td> > <td> > <xf:input ref="data2/text()" class="short-input" /> > </td> > <td> > <xf:input ref="descrizione/text()" class="long-input" /> > </td> > <td> > <xf:input ref="note/text()" class="long-input" /> > </td> > </tr> > > </table> > </xf:repeat> > </fieldset> > > <br/> > > <br/> > > <table border="0"> > <tr> > <td style="width: 15px;"/> > <td> > <xf:trigger> > <xf:label><div class="my_special_button">Elimina riga selezionata dalla lista delle categorie</div></xf:label> > <xf:action ev:event="DOMActivate"> > <xf:delete nodeset="riga" at="index('list-cur')" /> > </xf:action> > </xf:trigger> > </td> > <td style="width: 15px;"/> > <td> > <xf:trigger> > <xf:label><div class="my_special_button">Inserisci nuova categoria dopo riga selezionata</div></xf:label> > <xf:action ev:event="DOMActivate"> > <xf:insert nodeset="riga" at="index('list-cur')" position="after" /> > <xf:setvalue ref="riga[index('list-cur')]/data1/text()" value="'{$new_value}'"/> > <xf:setvalue ref="riga[index('list-cur')]/data2/text()" value="'{$new_value}'"/> > <xf:setvalue ref="riga[index('list-cur')]/descrizione/text()" value="'{$new_value}'"/> > <xf:setvalue ref="riga[index('list-cur')]/note/text()" value="'{$new_value}'"/> > </xf:action> > </xf:trigger> > </td> > </tr> > </table> > > <br/> > > <table border="0"> > <tr> > <td style="height: 40px;"/> > <td> > <xf:submit submission="save-curriculum"> > <xf:label><div class="my_special_button" style="width: 210px;">Salva modifiche ai dati disciplinari</div></xf:label> > </xf:submit> > </td> > </tr> > </table> > </xf:group> > > <xf:group ref="instance('list-disciplina')/disciplina"> > <fieldset id="fieldset-list"> > <legend>Dati disciplinari</legend> > <div class="header-disciplina"> > <table border="0"> > <tr> > <td> > <div class="leftColumn">Data</div> > </td> > <td style="width: 70px;"/> > <td> > <div class="rightColumn">Descrizione</div> > </td> > </tr> > </table> > </div> > > <xf:repeat id="list" nodeset="riga"> > <table border="0" id="riga" class="list-table"> > > <tr> > <td> > <xf:input ref="data/text()" class="short-input" /> > </td> > <td> > <xf:input ref="note/text()" class="iper-long-input" /> > </td> > </tr> > > </table> > </xf:repeat> > </fieldset> > > <br/> > > <br/> > > <table border="0"> > <tr> > <td style="width: 15px;"/> > <td> <!-- style="padding-top: 15pt;" --> > <xf:trigger> > <xf:label><div class="my_special_button">Elimina riga selezionata dalla lista delle categorie</div></xf:label> > <xf:action ev:event="DOMActivate"> > <xf:delete nodeset="riga" at="index('list')" /> > </xf:action> > </xf:trigger> > </td> > <td style="width: 15px;"/> > <td> > <xf:trigger> > <xf:label><div class="my_special_button">Inserisci nuova categoria dopo riga selezionata</div></xf:label> > <xf:action ev:event="DOMActivate"> > <xf:insert nodeset="riga" at="index('list')" position="after" /> > <xf:setvalue ref="riga[index('list')]/data/text()" value="'{$new_value}'"/> > <xf:setvalue ref="riga[index('list')]/note/text()" value="'{$new_value}'"/> > <!--<xf:setvalue ref="SelectedRow" value="index('list')" />--> > </xf:action> > </xf:trigger> > </td> > </tr> > </table> > > <br/> > > <table border="0"> > <tr> > <td style="height: 40px;"/> > <td> > <xf:submit submission="save-disciplina"> > <xf:label><div class="my_special_button" style="width: 210px;">Salva modifiche ai dati disciplinari</div></xf:label> > </xf:submit> > </td> > </tr> > <tr> > <td style="width: 40px;"/> > <td > > <xf:trigger> > <xf:label class="my_button"><div class="flipped">➜</div>Torna<div class="flipped">➜</div>indietro</xf:label> > <xf:action ev:event="DOMActivate"> > <xf:load resource="javascript:GoBack()" /> > </xf:action> > </xf:trigger> > </td> > </tr> > </table> > </xf:group> > > </center> > <br/> > <br/> > </body> > </html> > let $xslt-pi := processing-instruction xml-stylesheet {'type="text/xsl" href="../xsltforms/xsltforms.xsl"'} > return ($xslt-pi,$form) > > -- > Sent with Tutanota, the secure & ad-free mailbox: > https://tutanota.com > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Alain C. <ala...@ag...> - 2021-01-30 14:31:01
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div class="default-style"> Hi Josselin, </div> <div class="default-style"> <br> </div> <div class="default-style"> Because of a transition for XPath 3.1 support already added in XSLTForms 1.5, an empty itemset in your test form is causing this error. </div> <div class="default-style"> <br> </div> <div class="default-style"> This has been fixed in the latest commit. </div> <div class="default-style"> <br> </div> <div> Please give a try at <a href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> <br> <div class="default-style"> <br> </div> <div> Thank you for your feedback! </div> <br> <div> --Alain </div> </div> <blockquote type="cite"> <div> Le 20/01/2021 11:52, Josselin Morvan <mor...@gm...> a écrit : </div> <div> <br> </div> <div> <br> </div> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" dir="auto"> <div class=""> Hi Alain (it’s me again…;) </div> <div class=""> <br class=""> </div> <div class=""> I am confronted with a new error: Error dispatching event 'xforms-refresh' which may be linked to my previous email. </div> <div class=""> <br class=""> </div> <div class=""> I made a sample to explain my issue. In this form, we can create a list of subscribers. Each subscriber is either taken from a list of people, or created directly if the subscriber is not in the list. In this case, we can fill in his name and informations about his age. </div> <div class=""> <br class=""> </div> <div class=""> This is where I have a problem. If it appears that the person I started to add was already in the list, and I decided to change my mind and choose the person from the list, then, if everything is filled in (especially the age field, made with xf:itemset), I get the error message mentioned above. </div> <div class=""> <br class=""> </div> <div class=""> If I don't use xf:itemset or xf:repeat, I don't get this error. Maybe I'm doing something wrong ? but I didn't get this message with xsltforms 1.3? </div> <div class=""> <br class=""> </div> <div class=""> I attach a simplified example, or you can find it on GitHub Gist: <a class="" href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-refresherror-xml">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-refresherror-xml</a>. </div> <div class=""> <br class=""> </div> <div class=""> Thank you very much for your help, </div> <div class=""> Sincerely, </div> <div class=""> Josselin. </div> <div class=""> <br class=""> </div> <div class=""> NB : with this same form, I have the same error, if I already choose a person from the list and decided to add a new person. </div> <div class=""> Josselin. </div> <div class=""> <br> </div> <div> <br> </div> </div> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" dir="auto"> <div> <br class=""> <blockquote type="cite"> <div class=""> Le 18 janv. 2021 à 22:31, Josselin Morvan <<a class="" href="mailto:mor...@gm...">mor...@gm...</a>> a écrit : </div> </blockquote> <blockquote type="cite"> <div class=""> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" dir="auto"> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" dir="auto"> Hi Alain, <div class=""> <br class=""> </div> <div class=""> Thank you very much for fixing this issue. </div> <div class=""> <br class=""> </div> <div class=""> I’m now experimenting another one with the binding rules and the use of xf:repeat. It seems that the xf:bind/@relevant are ignored for fields inside a xf:repeat, as they are still available. </div> <div class=""> <br class=""> </div> <div class=""> I have also the same kind of problem with fields pointing to a non-existent element. Here only the label is displayed, but I think it shouldn't. </div> <div class=""> <br class=""> </div> <div class=""> Finally, I found that @value="" didn't work anymore with xf:setvalue to set an empty value, we need to use @value="''" (with single quotes inside double quotes). But for this last one, it may be normal ? </div> <div class=""> <br class=""> </div> <div class=""> Here is a sample : </div> <div class=""> <a class="" href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-binding-issue-with-repeat">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-binding-issue-with-repeat</a> </div> <div class=""> <br class=""> </div> <div class=""> Thank you for your help, best, </div> <div class=""> Josselin </div> <div class=""> <br class=""> </div> <div class=""> <br class=""> </div> <div class=""> <br class=""> </div> <div class=""> <br class=""> </div> <div class=""> <div class=""> <br class=""> <blockquote type="cite"> <div class=""> Le 9 janv. 2021 à 20:01, Alain Couthures <<a class="" href="mailto:ala...@ag...">ala...@ag...</a>> a écrit : </div> <div class=""> <div class=""> <div class=""> Hi Josselin, </div> <div class=""> <br class=""> </div> <div class=""> This issue is now fixed in the new committed build (1.5.1). There were also CSS missing rules in the previous one... </div> <div class=""> <br class=""> </div> <div class=""> Please give a try at <a class="" href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> </div> <div class=""> <br class=""> </div> <div class=""> Thank you for your feedback! </div> <div class=""> <br class=""> </div> <div class=""> --Alain </div> <blockquote type="cite"> <div class=""> Le 05/01/2021 11:58, Josselin Morvan <<a class="" href="mailto:mor...@gm...">mor...@gm...</a>> a écrit : </div> <div class=""> <br class=""> </div> <div class=""> <br class=""> </div>Hi Alain, <div class=""> <br class=""> </div> <div class=""> First, I wish you a Happy New Year 2021 ! </div> <div class=""> <br class=""> </div> <div class=""> I realized I didn’t explain my issues with xf:copy in my previous mail : </div> <div class=""> When I set @appearance=‘full’ on a xf:select, it needs two clicks to select or deselect an item, and we can’t select multiple items. As you can see with the screen capture attached, there is also a problem with the label displayed. </div> <div class=""> With xf:select1, when you select one item from the list, all the items are checked, and I'm experimenting the same problem with the label. </div> <div class=""> <br class=""> </div> <div class=""> <div class=""> My issue with xf:date content and the calendar display was from my side, my apologize. </div> <div class=""> <br class=""> </div> <div class=""> The sample form is still accessible on my GitHub Gist : <a href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65" class="">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65</a> </div> <div class=""> <br class=""> </div> <div class=""> Thank you very much for your help. </div> <div class=""> Best, </div> <div class=""> Josselin. </div> <div class=""> <br class=""> </div> <div class=""> <span class="" id="cid:4CF30C92-5038-480B-B7B0-2E43FD93394C@home"><xf-copy.jpeg></span> <br class=""> <blockquote type="cite"> <div class=""> Le 17 déc. 2020 à 12:53, Josselin Morvan <<a href="mailto:mor...@gm..." class="">mor...@gm...</a>> a écrit : </div> <div class=""> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""> Hi Alain, <div class=""> <br class=""> </div> <div class=""> Thank you for the xsltforms 1.5 release !! </div> <div class=""> <br class=""> </div> <div class=""> I tried this release with a previous form, everything seems to work except I’m experimenting some issues with the xf:copy element when xf:select (or xf:select1) is set with @appearance=‘full’. It works fine with @appearance=‘minimal/compact’. </div> <div class=""> I also have an issue with the calendar display with xf:date content. </div> <div class=""> Please, find small sample attached (or on Github Gist : <a href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65" class="">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65</a>) </div> <div class=""> <br class=""> </div> <div class=""> Thank you very much for your job !! </div> <div class=""> Best, </div> <div class=""> Josselin. </div> <div class=""> <br class=""> </div> </div><span class="" id="cid:F89BB05D-21B8-4DFF-9657-02946F87D538@home"><issue.xml></span> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""> <div class=""> <br class=""> <div class=""> <br class=""> <blockquote type="cite"> <div class=""> Le 4 déc. 2020 à 17:31, Alain Couthures <<a href="mailto:ala...@ag..." class="">ala...@ag...</a>> a écrit : </div> <div class=""> <div class=""> <div class="default-style"> Hello, </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> XSLTForms 1.5 can now be downloaded at <a href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip" class="">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> The corresponding CSS stylesheet has been aligned to the one in the XForms Tutorial written by Steven Pemberton for Declarative Amsterdam: <a href="https://declarative.amsterdam/show?page=da-tutorial-xforms" class="">https://declarative.amsterdam/show?page=da-tutorial-xforms</a> </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> Thank you for your feedback! </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> --Alain </div> </div>_______________________________________________ <br class="">Xsltforms-support mailing list <br class=""><a href="mailto:Xsl...@li..." class="">Xsl...@li...</a> <br class=""><a href="https://lists.sourceforge.net/lists/listinfo/xsltforms-support" class="">https://lists.sourceforge.net/lists/listinfo/xsltforms-support</a> <br class=""> </div> </blockquote> </div> <br class=""> </div> </div> </div> </blockquote> </div> <br class=""> </div> </blockquote> </div> </div> </blockquote> </div> <br class=""> </div> </div> </div> </div> </div> </blockquote> </div> <br class=""> </div> </blockquote> </body> </html> |
From: Alain C. <ala...@ag...> - 2021-01-30 14:27:06
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Hi Josselin, </div> <div class="default-style"> <br> </div> <div class="default-style"> The new XSLTForms 1.5 version is now relying only on its CSS stylesheet to display/hide controls. </div> <div class="default-style"> <br> </div> <div class="default-style"> The latest commit includes a CSS fix for controls within a repeat. </div> <div class="default-style"> <br> </div> <div class="default-style"> Please give a try at <a href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> <br> <div class="default-style"> <br> </div> <div> Thank you for your feedback! </div> <br> <div> --Alain </div> </div> <blockquote type="cite"> <div> Le 18/01/2021 22:31, Josselin Morvan <mor...@gm...> a écrit : </div> <div> <br> </div> <div> <br> </div> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" dir="auto"> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" dir="auto"> Hi Alain, <div class=""> <br class=""> </div> <div class=""> Thank you very much for fixing this issue. </div> <div class=""> <br class=""> </div> <div class=""> I’m now experimenting another one with the binding rules and the use of xf:repeat. It seems that the xf:bind/@relevant are ignored for fields inside a xf:repeat, as they are still available. </div> <div class=""> <br class=""> </div> <div class=""> I have also the same kind of problem with fields pointing to a non-existent element. Here only the label is displayed, but I think it shouldn't. </div> <div class=""> <br class=""> </div> <div class=""> Finally, I found that @value="" didn't work anymore with xf:setvalue to set an empty value, we need to use @value="''" (with single quotes inside double quotes). But for this last one, it may be normal ? </div> <div class=""> <br class=""> </div> <div class=""> Here is a sample : </div> <div class=""> <a class="" href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-binding-issue-with-repeat">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-binding-issue-with-repeat</a> </div> <div class=""> <br class=""> </div> <div class=""> Thank you for your help, best, </div> <div class=""> Josselin </div> <div class=""> <br class=""> </div> <div class=""> <br class=""> </div> <div class=""> <br class=""> </div> <div class=""> <br class=""> </div> <div class=""> <div> <br class=""> <blockquote type="cite"> <div class=""> Le 9 janv. 2021 à 20:01, Alain Couthures <<a class="" href="mailto:ala...@ag...">ala...@ag...</a>> a écrit : </div> <div class=""> <div class=""> <div class=""> Hi Josselin, </div> <div class=""> <br class=""> </div> <div class=""> This issue is now fixed in the new committed build (1.5.1). There were also CSS missing rules in the previous one... </div> <div class=""> <br class=""> </div> <div class=""> Please give a try at <a class="" href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> </div> <div class=""> <br class=""> </div> <div class=""> Thank you for your feedback! </div> <div class=""> <br class=""> </div> <div class=""> --Alain </div> <blockquote type="cite"> <div class=""> Le 05/01/2021 11:58, Josselin Morvan <<a class="" href="mailto:mor...@gm...">mor...@gm...</a>> a écrit : </div> <div class=""> <br class=""> </div> <div class=""> <br class=""> </div>Hi Alain, <div class=""> <br class=""> </div> <div class=""> First, I wish you a Happy New Year 2021 ! </div> <div class=""> <br class=""> </div> <div class=""> I realized I didn’t explain my issues with xf:copy in my previous mail : </div> <div class=""> When I set @appearance=‘full’ on a xf:select, it needs two clicks to select or deselect an item, and we can’t select multiple items. As you can see with the screen capture attached, there is also a problem with the label displayed. </div> <div class=""> With xf:select1, when you select one item from the list, all the items are checked, and I'm experimenting the same problem with the label. </div> <div class=""> <br class=""> </div> <div class=""> <div class=""> My issue with xf:date content and the calendar display was from my side, my apologize. </div> <div class=""> <br class=""> </div> <div class=""> The sample form is still accessible on my GitHub Gist : <a href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65" class="">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65</a> </div> <div class=""> <br class=""> </div> <div class=""> Thank you very much for your help. </div> <div class=""> Best, </div> <div class=""> Josselin. </div> <div class=""> <br class=""> </div> <div class=""> <span id="cid:4CF30C92-5038-480B-B7B0-2E43FD93394C@home"><xf-copy.jpeg></span> <br class=""> <blockquote type="cite"> <div class=""> Le 17 déc. 2020 à 12:53, Josselin Morvan <<a href="mailto:mor...@gm..." class="">mor...@gm...</a>> a écrit : </div> <div class=""> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""> Hi Alain, <div class=""> <br class=""> </div> <div class=""> Thank you for the xsltforms 1.5 release !! </div> <div class=""> <br class=""> </div> <div class=""> I tried this release with a previous form, everything seems to work except I’m experimenting some issues with the xf:copy element when xf:select (or xf:select1) is set with @appearance=‘full’. It works fine with @appearance=‘minimal/compact’. </div> <div class=""> I also have an issue with the calendar display with xf:date content. </div> <div class=""> Please, find small sample attached (or on Github Gist : <a href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65" class="">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65</a>) </div> <div class=""> <br class=""> </div> <div class=""> Thank you very much for your job !! </div> <div class=""> Best, </div> <div class=""> Josselin. </div> <div class=""> <br class=""> </div> </div><span class="" id="cid:F89BB05D-21B8-4DFF-9657-02946F87D538@home"><issue.xml></span> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""> <div class=""> <br class=""> <div class=""> <br class=""> <blockquote type="cite"> <div class=""> Le 4 déc. 2020 à 17:31, Alain Couthures <<a href="mailto:ala...@ag..." class="">ala...@ag...</a>> a écrit : </div> <div class=""> <div class=""> <div class="default-style"> Hello, </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> XSLTForms 1.5 can now be downloaded at <a href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip" class="">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> The corresponding CSS stylesheet has been aligned to the one in the XForms Tutorial written by Steven Pemberton for Declarative Amsterdam: <a href="https://declarative.amsterdam/show?page=da-tutorial-xforms" class="">https://declarative.amsterdam/show?page=da-tutorial-xforms</a> </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> Thank you for your feedback! </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> --Alain </div> </div>_______________________________________________ <br class="">Xsltforms-support mailing list <br class=""><a href="mailto:Xsl...@li..." class="">Xsl...@li...</a> <br class=""><a href="https://lists.sourceforge.net/lists/listinfo/xsltforms-support" class="">https://lists.sourceforge.net/lists/listinfo/xsltforms-support</a> <br class=""> </div> </blockquote> </div> <br class=""> </div> </div> </div> </blockquote> </div> <br class=""> </div> </blockquote> </div> </div> </blockquote> </div> <br class=""> </div> </div> </div> </blockquote> </body> </html> |
From: Alain C. <ala...@ag...> - 2021-01-30 09:53:42
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Hi Alex, </div> <div class="default-style"> <br> </div> <div class="default-style"> To select which instance you want to submit, you have to use submission/@ref. Both submission/@replace and submission/@instance are only used for the response of the submission. </div> <div class="default-style"> <br> </div> <div class="default-style"> By default, the first instance is the one to be serialized and submitted: that is was you get in your attempt. </div> <div class="default-style"> <br> </div> <div class="default-style"> Thank you for your feedback! </div> <div class="default-style"> <br> </div> <div class="default-style"> --Alain </div> <blockquote type="cite"> <div> Le 29/01/2021 15:41, Alessandro via Xsltforms-support <xsl...@li...> a écrit : </div> <div> <br> </div> <div> <br> </div> <div> Hi all! <br> </div> <div> My attempt is that of managing two instances (which are targeting two different nodes of the same xml file) by means of two repeats contained within the same form. Inserting and deleting rows works well with respect to both the repeats, but it seems possible to finally save to the xml file only the instance that appears at the first place within the model. Why is it so? What am I missing here? <br> </div> <div> <br> </div> <div> Regards <br> </div> <div> Alex <br> </div> <div> <br> </div> <div> The following is my form: <br> </div> <div> <br> </div> <div> xquery version "3.0"; <br> </div> <div> <br> </div> <div> import module namespace my_funcs="<a href="http://www.my_funcs.net">http://www.my_funcs.net</a>" at "modules/my_app_functions_2.xql"; <br> </div> <div> <br> </div> <div> declare variable $app_collection := 'resources/data'; <br> </div> <div> <br> </div> <div> declare variable $id_dip := request:get-parameter("id_dip", ""); <br> </div> <div> <br> </div> <div> let $disciplina := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/dipendente[@id=$id_dip]/disciplina <br> </div> <div> <br> </div> <div> let $curriculum := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/dipendente[@id=$id_dip]/curriculum <br> </div> <div> <br> </div> <div> let $new_value := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/options/new_item <br> </div> <div> <br> </div> <div> let $file := concat($app_collection, '/', $my_funcs:my_employees_archive) <br> </div> <div> <br> </div> <div> let $login := xmldb:login($app_collection, 'admin', 'password') <br> </div> <div> <br> </div> <div> let $form := <br> </div> <div> <html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" xmlns:xf="<a href="http://www.w3.org/2002/xforms">http://www.w3.org/2002/xforms</a>" xmlns:ev="<a href="http://www.w3.org/2001/xml-events">http://www.w3.org/2001/xml-events</a>" xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"> <br> </div> <div> <head> <br> </div> <div> <link rel="stylesheet" type="text/css" href="resources/css/schede_dipendenti_2.css" /> <br> </div> <div> <script src="resources/data/my_javascripts.js"/> <br> </div> <div> <br> </div> <div> <xf:model> <br> </div> <div> <br> </div> <div> <xf:instance id="list-curriculum"> <br> </div> <div> <data xmlns="">{$curriculum}</data> <br> </div> <div> </xf:instance> <br> </div> <div> <br> </div> <div> <xf:instance id="list-disciplina"> <br> </div> <div> <data xmlns="">{$disciplina}</data> <br> </div> <div> </xf:instance> <br> </div> <div> <br> </div> <div> <xf:submission id="save-disciplina" method="post" action="query_save_disciplina.xq?id_dip={$id_dip}" replace="instance" instance="list-disciplina"> <br> </div> <div> <xf:action ev:event="xforms-submit-done"> <br> </div> <div> <xf:message level="modal">Dati correttamente aggiornati!</xf:message> <br> </div> <div> </xf:action> <br> </div> <div> <xf:action ev:event="xforms-submit-error"> <br> </div> <div> <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> <br> </div> <div> </xf:action> <br> </div> <div> </xf:submission> <br> </div> <div> <br> </div> <div> <xf:submission id="save-curriculum" method="post" action="query_save_curriculum.xq?id_dip={$id_dip}" replace="instance" instance="list-curriculum"> <br> </div> <div> <xf:action ev:event="xforms-submit-done"> <br> </div> <div> <xf:message level="modal">Dati correttamente aggiornati!</xf:message> <br> </div> <div> </xf:action> <br> </div> <div> <xf:action ev:event="xforms-submit-error"> <br> </div> <div> <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> <br> </div> <div> </xf:action> <br> </div> <div> </xf:submission> <br> </div> <div> <br> </div> <div> </xf:model> <br> </div> <div> </head> <br> </div> <div> <body> <br> </div> <div> <center> <br> </div> <div> <br> </div> <div> <br/> <br> </div> <div> <br> </div> <div> <xf:group ref="instance('list-curriculum')/curriculum"> <br> </div> <div> <fieldset id="fieldset-list"> <br> </div> <div> <legend>Dati curriculari</legend> <br> </div> <div> <div class="header-disciplina"> <br> </div> <div> <table border="0"> <br> </div> <div> <tr> <br> </div> <div> <td> <br> </div> <div> <div class="leftColumn">Data 1</div> <br> </div> <div> </td> <br> </div> <div> <td style="width: 70px;"/> <br> </div> <div> <td> <br> </div> <div> <div class="leftColumn">Data 2</div> <br> </div> <div> </td> <br> </div> <div> <td style="width: 70px;"/> <br> </div> <div> <td> <br> </div> <div> <div class="leftColumn">Descrizione</div> <br> </div> <div> </td> <br> </div> <div> <td style="width: 70px;"/> <br> </div> <div> <td> <br> </div> <div> <div class="rightColumn">Note</div> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> </table> <br> </div> <div> </div> <br> </div> <div> <br> </div> <div> <xf:repeat id="list-cur" nodeset="riga"> <br> </div> <div> <table border="0" id="riga" class="list-table"> <br> </div> <div> <br> </div> <div> <tr> <br> </div> <div> <td> <br> </div> <div> <xf:input ref="data1/text()" class="short-input" /> <br> </div> <div> </td> <br> </div> <div> <td> <br> </div> <div> <xf:input ref="data2/text()" class="short-input" /> <br> </div> <div> </td> <br> </div> <div> <td> <br> </div> <div> <xf:input ref="descrizione/text()" class="long-input" /> <br> </div> <div> </td> <br> </div> <div> <td> <br> </div> <div> <xf:input ref="note/text()" class="long-input" /> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> <br> </div> <div> </table> <br> </div> <div> </xf:repeat> <br> </div> <div> </fieldset> <br> </div> <div> <br> </div> <div> <br/> <br> </div> <div> <br> </div> <div> <br/> <br> </div> <div> <br> </div> <div> <table border="0"> <br> </div> <div> <tr> <br> </div> <div> <td style="width: 15px;"/> <br> </div> <div> <td> <br> </div> <div> <xf:trigger> <br> </div> <div> <xf:label><div class="my_special_button">Elimina riga selezionata dalla lista delle categorie</div></xf:label> <br> </div> <div> <xf:action ev:event="DOMActivate"> <br> </div> <div> <xf:delete nodeset="riga" at="index('list-cur')" /> <br> </div> <div> </xf:action> <br> </div> <div> </xf:trigger> <br> </div> <div> </td> <br> </div> <div> <td style="width: 15px;"/> <br> </div> <div> <td> <br> </div> <div> <xf:trigger> <br> </div> <div> <xf:label><div class="my_special_button">Inserisci nuova categoria dopo riga selezionata</div></xf:label> <br> </div> <div> <xf:action ev:event="DOMActivate"> <br> </div> <div> <xf:insert nodeset="riga" at="index('list-cur')" position="after" /> <br> </div> <div> <xf:setvalue ref="riga[index('list-cur')]/data1/text()" value="'{$new_value}'"/> <br> </div> <div> <xf:setvalue ref="riga[index('list-cur')]/data2/text()" value="'{$new_value}'"/> <br> </div> <div> <xf:setvalue ref="riga[index('list-cur')]/descrizione/text()" value="'{$new_value}'"/> <br> </div> <div> <xf:setvalue ref="riga[index('list-cur')]/note/text()" value="'{$new_value}'"/> <br> </div> <div> </xf:action> <br> </div> <div> </xf:trigger> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> </table> <br> </div> <div> <br> </div> <div> <br/> <br> </div> <div> <br> </div> <div> <table border="0"> <br> </div> <div> <tr> <br> </div> <div> <td style="height: 40px;"/> <br> </div> <div> <td> <br> </div> <div> <xf:submit submission="save-curriculum"> <br> </div> <div> <xf:label><div class="my_special_button" style="width: 210px;">Salva modifiche ai dati disciplinari</div></xf:label> <br> </div> <div> </xf:submit> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> </table> <br> </div> <div> </xf:group> <br> </div> <div> <br> </div> <div> <xf:group ref="instance('list-disciplina')/disciplina"> <br> </div> <div> <fieldset id="fieldset-list"> <br> </div> <div> <legend>Dati disciplinari</legend> <br> </div> <div> <div class="header-disciplina"> <br> </div> <div> <table border="0"> <br> </div> <div> <tr> <br> </div> <div> <td> <br> </div> <div> <div class="leftColumn">Data</div> <br> </div> <div> </td> <br> </div> <div> <td style="width: 70px;"/> <br> </div> <div> <td> <br> </div> <div> <div class="rightColumn">Descrizione</div> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> </table> <br> </div> <div> </div> <br> </div> <div> <br> </div> <div> <xf:repeat id="list" nodeset="riga"> <br> </div> <div> <table border="0" id="riga" class="list-table"> <br> </div> <div> <br> </div> <div> <tr> <br> </div> <div> <td> <br> </div> <div> <xf:input ref="data/text()" class="short-input" /> <br> </div> <div> </td> <br> </div> <div> <td> <br> </div> <div> <xf:input ref="note/text()" class="iper-long-input" /> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> <br> </div> <div> </table> <br> </div> <div> </xf:repeat> <br> </div> <div> </fieldset> <br> </div> <div> <br> </div> <div> <br/> <br> </div> <div> <br> </div> <div> <br/> <br> </div> <div> <br> </div> <div> <table border="0"> <br> </div> <div> <tr> <br> </div> <div> <td style="width: 15px;"/> <br> </div> <div> <td> <!-- style="padding-top: 15pt;" --> <br> </div> <div> <xf:trigger> <br> </div> <div> <xf:label><div class="my_special_button">Elimina riga selezionata dalla lista delle categorie</div></xf:label> <br> </div> <div> <xf:action ev:event="DOMActivate"> <br> </div> <div> <xf:delete nodeset="riga" at="index('list')" /> <br> </div> <div> </xf:action> <br> </div> <div> </xf:trigger> <br> </div> <div> </td> <br> </div> <div> <td style="width: 15px;"/> <br> </div> <div> <td> <br> </div> <div> <xf:trigger> <br> </div> <div> <xf:label><div class="my_special_button">Inserisci nuova categoria dopo riga selezionata</div></xf:label> <br> </div> <div> <xf:action ev:event="DOMActivate"> <br> </div> <div> <xf:insert nodeset="riga" at="index('list')" position="after" /> <br> </div> <div> <xf:setvalue ref="riga[index('list')]/data/text()" value="'{$new_value}'"/> <br> </div> <div> <xf:setvalue ref="riga[index('list')]/note/text()" value="'{$new_value}'"/> <br> </div> <div> <!--<xf:setvalue ref="SelectedRow" value="index('list')" />--> <br> </div> <div> </xf:action> <br> </div> <div> </xf:trigger> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> </table> <br> </div> <div> <br> </div> <div> <br/> <br> </div> <div> <br> </div> <div> <table border="0"> <br> </div> <div> <tr> <br> </div> <div> <td style="height: 40px;"/> <br> </div> <div> <td> <br> </div> <div> <xf:submit submission="save-disciplina"> <br> </div> <div> <xf:label><div class="my_special_button" style="width: 210px;">Salva modifiche ai dati disciplinari</div></xf:label> <br> </div> <div> </xf:submit> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> <tr> <br> </div> <div> <td style="width: 40px;"/> <br> </div> <div> <td > <br> </div> <div> <xf:trigger> <br> </div> <div> <xf:label class="my_button"><div class="flipped">&#10140;</div>Torna<div class="flipped">&#10140;</div>indietro</xf:label> <br> </div> <div> <xf:action ev:event="DOMActivate"> <br> </div> <div> <xf:load resource="javascript:GoBack()" /> <br> </div> <div> </xf:action> <br> </div> <div> </xf:trigger> <br> </div> <div> </td> <br> </div> <div> </tr> <br> </div> <div> </table> <br> </div> <div> </xf:group> <br> </div> <div> <br> </div> <div> </center> <br> </div> <div> <br/> <br> </div> <div> <br/> <br> </div> <div> </body> <br> </div> <div> </html> <br> </div> <div> let $xslt-pi := processing-instruction xml-stylesheet {'type="text/xsl" href="../xsltforms/xsltforms.xsl"'} <br> </div> <div> return ($xslt-pi,$form) <br> </div> <div> <br> </div> <div> -- <br> </div> <div> Sent with Tutanota, the secure & ad-free mailbox: <br> </div> <div> https://tutanota.com <br> </div>_______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support </blockquote> </body> </html> |
From: Alessandro <ca...@tu...> - 2021-01-29 14:41:56
|
Hi all! My attempt is that of managing two instances (which are targeting two different nodes of the same xml file) by means of two repeats contained within the same form. Inserting and deleting rows works well with respect to both the repeats, but it seems possible to finally save to the xml file only the instance that appears at the first place within the model. Why is it so? What am I missing here? Regards Alex The following is my form: xquery version "3.0"; import module namespace my_funcs="http://www.my_funcs.net" at "modules/my_app_functions_2.xql"; declare variable $app_collection := 'resources/data'; declare variable $id_dip := request:get-parameter("id_dip", ""); let $disciplina := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/dipendente[@id=$id_dip]/disciplina let $curriculum := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/dipendente[@id=$id_dip]/curriculum let $new_value := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/options/new_item let $file := concat($app_collection, '/', $my_funcs:my_employees_archive) let $login := xmldb:login($app_collection, 'admin', 'password') let $form := <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:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <head> <link rel="stylesheet" type="text/css" href="resources/css/schede_dipendenti_2.css" /> <script src="resources/data/my_javascripts.js"/> <xf:model> <xf:instance id="list-curriculum"> <data xmlns="">{$curriculum}</data> </xf:instance> <xf:instance id="list-disciplina"> <data xmlns="">{$disciplina}</data> </xf:instance> <xf:submission id="save-disciplina" method="post" action="query_save_disciplina.xq?id_dip={$id_dip}" replace="instance" instance="list-disciplina"> <xf:action ev:event="xforms-submit-done"> <xf:message level="modal">Dati correttamente aggiornati!</xf:message> </xf:action> <xf:action ev:event="xforms-submit-error"> <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> </xf:action> </xf:submission> <xf:submission id="save-curriculum" method="post" action="query_save_curriculum.xq?id_dip={$id_dip}" replace="instance" instance="list-curriculum"> <xf:action ev:event="xforms-submit-done"> <xf:message level="modal">Dati correttamente aggiornati!</xf:message> </xf:action> <xf:action ev:event="xforms-submit-error"> <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> </xf:action> </xf:submission> </xf:model> </head> <body> <center> <br/> <xf:group ref="instance('list-curriculum')/curriculum"> <fieldset id="fieldset-list"> <legend>Dati curriculari</legend> <div class="header-disciplina"> <table border="0"> <tr> <td> <div class="leftColumn">Data 1</div> </td> <td style="width: 70px;"/> <td> <div class="leftColumn">Data 2</div> </td> <td style="width: 70px;"/> <td> <div class="leftColumn">Descrizione</div> </td> <td style="width: 70px;"/> <td> <div class="rightColumn">Note</div> </td> </tr> </table> </div> <xf:repeat id="list-cur" nodeset="riga"> <table border="0" id="riga" class="list-table"> <tr> <td> <xf:input ref="data1/text()" class="short-input" /> </td> <td> <xf:input ref="data2/text()" class="short-input" /> </td> <td> <xf:input ref="descrizione/text()" class="long-input" /> </td> <td> <xf:input ref="note/text()" class="long-input" /> </td> </tr> </table> </xf:repeat> </fieldset> <br/> <br/> <table border="0"> <tr> <td style="width: 15px;"/> <td> <xf:trigger> <xf:label><div class="my_special_button">Elimina riga selezionata dalla lista delle categorie</div></xf:label> <xf:action ev:event="DOMActivate"> <xf:delete nodeset="riga" at="index('list-cur')" /> </xf:action> </xf:trigger> </td> <td style="width: 15px;"/> <td> <xf:trigger> <xf:label><div class="my_special_button">Inserisci nuova categoria dopo riga selezionata</div></xf:label> <xf:action ev:event="DOMActivate"> <xf:insert nodeset="riga" at="index('list-cur')" position="after" /> <xf:setvalue ref="riga[index('list-cur')]/data1/text()" value="'{$new_value}'"/> <xf:setvalue ref="riga[index('list-cur')]/data2/text()" value="'{$new_value}'"/> <xf:setvalue ref="riga[index('list-cur')]/descrizione/text()" value="'{$new_value}'"/> <xf:setvalue ref="riga[index('list-cur')]/note/text()" value="'{$new_value}'"/> </xf:action> </xf:trigger> </td> </tr> </table> <br/> <table border="0"> <tr> <td style="height: 40px;"/> <td> <xf:submit submission="save-curriculum"> <xf:label><div class="my_special_button" style="width: 210px;">Salva modifiche ai dati disciplinari</div></xf:label> </xf:submit> </td> </tr> </table> </xf:group> <xf:group ref="instance('list-disciplina')/disciplina"> <fieldset id="fieldset-list"> <legend>Dati disciplinari</legend> <div class="header-disciplina"> <table border="0"> <tr> <td> <div class="leftColumn">Data</div> </td> <td style="width: 70px;"/> <td> <div class="rightColumn">Descrizione</div> </td> </tr> </table> </div> <xf:repeat id="list" nodeset="riga"> <table border="0" id="riga" class="list-table"> <tr> <td> <xf:input ref="data/text()" class="short-input" /> </td> <td> <xf:input ref="note/text()" class="iper-long-input" /> </td> </tr> </table> </xf:repeat> </fieldset> <br/> <br/> <table border="0"> <tr> <td style="width: 15px;"/> <td> <!-- style="padding-top: 15pt;" --> <xf:trigger> <xf:label><div class="my_special_button">Elimina riga selezionata dalla lista delle categorie</div></xf:label> <xf:action ev:event="DOMActivate"> <xf:delete nodeset="riga" at="index('list')" /> </xf:action> </xf:trigger> </td> <td style="width: 15px;"/> <td> <xf:trigger> <xf:label><div class="my_special_button">Inserisci nuova categoria dopo riga selezionata</div></xf:label> <xf:action ev:event="DOMActivate"> <xf:insert nodeset="riga" at="index('list')" position="after" /> <xf:setvalue ref="riga[index('list')]/data/text()" value="'{$new_value}'"/> <xf:setvalue ref="riga[index('list')]/note/text()" value="'{$new_value}'"/> <!--<xf:setvalue ref="SelectedRow" value="index('list')" />--> </xf:action> </xf:trigger> </td> </tr> </table> <br/> <table border="0"> <tr> <td style="height: 40px;"/> <td> <xf:submit submission="save-disciplina"> <xf:label><div class="my_special_button" style="width: 210px;">Salva modifiche ai dati disciplinari</div></xf:label> </xf:submit> </td> </tr> <tr> <td style="width: 40px;"/> <td > <xf:trigger> <xf:label class="my_button"><div class="flipped">➜</div>Torna<div class="flipped">➜</div>indietro</xf:label> <xf:action ev:event="DOMActivate"> <xf:load resource="javascript:GoBack()" /> </xf:action> </xf:trigger> </td> </tr> </table> </xf:group> </center> <br/> <br/> </body> </html> let $xslt-pi := processing-instruction xml-stylesheet {'type="text/xsl" href="../xsltforms/xsltforms.xsl"'} return ($xslt-pi,$form) -- Sent with Tutanota, the secure & ad-free mailbox: https://tutanota.com |
From: Alessandro <dev...@tu...> - 2021-01-29 14:38:22
|
Hi all! My attempt is that of managing two instances (which are targeting two different nodes of the same xml file) by means of two repeats contained within the same form. Inserting and deleting rows works well with respect to both the repeats, but it seems possible to finally save to the xml file only the instance that appears at the first place within the model. Why is it so? What am I missing here? Regards Alex The following is my form: xquery version "3.0"; import module namespace my_funcs="http://www.my_funcs.net" at "modules/my_app_functions_2.xql"; declare variable $app_collection := 'resources/data'; declare variable $id_dip := request:get-parameter("id_dip", ""); let $disciplina := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/dipendente[@id=$id_dip]/disciplina let $curriculum := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/dipendente[@id=$id_dip]/curriculum let $new_value := doc(concat($app_collection, '/', $my_funcs:my_employees_archive))/dipendenti/options/new_item let $file := concat($app_collection, '/', $my_funcs:my_employees_archive) let $login := xmldb:login($app_collection, 'admin', 'password') let $form := <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:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <head> <link rel="stylesheet" type="text/css" href="resources/css/schede_dipendenti_2.css" /> <script src="resources/data/my_javascripts.js"/> <xf:model> <xf:instance id="list-curriculum"> <data xmlns="">{$curriculum}</data> </xf:instance> <xf:instance id="list-disciplina"> <data xmlns="">{$disciplina}</data> </xf:instance> <xf:submission id="save-disciplina" method="post" action="query_save_disciplina.xq?id_dip={$id_dip}" replace="instance" instance="list-disciplina"> <xf:action ev:event="xforms-submit-done"> <xf:message level="modal">Dati correttamente aggiornati!</xf:message> </xf:action> <xf:action ev:event="xforms-submit-error"> <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> </xf:action> </xf:submission> <xf:submission id="save-curriculum" method="post" action="query_save_curriculum.xq?id_dip={$id_dip}" replace="instance" instance="list-curriculum"> <xf:action ev:event="xforms-submit-done"> <xf:message level="modal">Dati correttamente aggiornati!</xf:message> </xf:action> <xf:action ev:event="xforms-submit-error"> <xf:message level="modal">Si è verificato un errore in fase di salvataggio!</xf:message> </xf:action> </xf:submission> </xf:model> </head> <body> <center> <br/> <xf:group ref="instance('list-curriculum')/curriculum"> <fieldset id="fieldset-list"> <legend>Dati curriculari</legend> <div class="header-disciplina"> <table border="0"> <tr> <td> <div class="leftColumn">Data 1</div> </td> <td style="width: 70px;"/> <td> <div class="leftColumn">Data 2</div> </td> <td style="width: 70px;"/> <td> <div class="leftColumn">Descrizione</div> </td> <td style="width: 70px;"/> <td> <div class="rightColumn">Note</div> </td> </tr> </table> </div> <xf:repeat id="list-cur" nodeset="riga"> <table border="0" id="riga" class="list-table"> <tr> <td> <xf:input ref="data1/text()" class="short-input" /> </td> <td> <xf:input ref="data2/text()" class="short-input" /> </td> <td> <xf:input ref="descrizione/text()" class="long-input" /> </td> <td> <xf:input ref="note/text()" class="long-input" /> </td> </tr> </table> </xf:repeat> </fieldset> <br/> <br/> <table border="0"> <tr> <td style="width: 15px;"/> <td> <xf:trigger> <xf:label><div class="my_special_button">Elimina riga selezionata dalla lista delle categorie</div></xf:label> <xf:action ev:event="DOMActivate"> <xf:delete nodeset="riga" at="index('list-cur')" /> </xf:action> </xf:trigger> </td> <td style="width: 15px;"/> <td> <xf:trigger> <xf:label><div class="my_special_button">Inserisci nuova categoria dopo riga selezionata</div></xf:label> <xf:action ev:event="DOMActivate"> <xf:insert nodeset="riga" at="index('list-cur')" position="after" /> <xf:setvalue ref="riga[index('list-cur')]/data1/text()" value="'{$new_value}'"/> <xf:setvalue ref="riga[index('list-cur')]/data2/text()" value="'{$new_value}'"/> <xf:setvalue ref="riga[index('list-cur')]/descrizione/text()" value="'{$new_value}'"/> <xf:setvalue ref="riga[index('list-cur')]/note/text()" value="'{$new_value}'"/> </xf:action> </xf:trigger> </td> </tr> </table> <br/> <table border="0"> <tr> <td style="height: 40px;"/> <td> <xf:submit submission="save-curriculum"> <xf:label><div class="my_special_button" style="width: 210px;">Salva modifiche ai dati disciplinari</div></xf:label> </xf:submit> </td> </tr> </table> </xf:group> <xf:group ref="instance('list-disciplina')/disciplina"> <fieldset id="fieldset-list"> <legend>Dati disciplinari</legend> <div class="header-disciplina"> <table border="0"> <tr> <td> <div class="leftColumn">Data</div> </td> <td style="width: 70px;"/> <td> <div class="rightColumn">Descrizione</div> </td> </tr> </table> </div> <xf:repeat id="list" nodeset="riga"> <table border="0" id="riga" class="list-table"> <tr> <td> <xf:input ref="data/text()" class="short-input" /> </td> <td> <xf:input ref="note/text()" class="iper-long-input" /> </td> </tr> </table> </xf:repeat> </fieldset> <br/> <br/> <table border="0"> <tr> <td style="width: 15px;"/> <td> <!-- style="padding-top: 15pt;" --> <xf:trigger> <xf:label><div class="my_special_button">Elimina riga selezionata dalla lista delle categorie</div></xf:label> <xf:action ev:event="DOMActivate"> <xf:delete nodeset="riga" at="index('list')" /> </xf:action> </xf:trigger> </td> <td style="width: 15px;"/> <td> <xf:trigger> <xf:label><div class="my_special_button">Inserisci nuova categoria dopo riga selezionata</div></xf:label> <xf:action ev:event="DOMActivate"> <xf:insert nodeset="riga" at="index('list')" position="after" /> <xf:setvalue ref="riga[index('list')]/data/text()" value="'{$new_value}'"/> <xf:setvalue ref="riga[index('list')]/note/text()" value="'{$new_value}'"/> <!--<xf:setvalue ref="SelectedRow" value="index('list')" />--> </xf:action> </xf:trigger> </td> </tr> </table> <br/> <table border="0"> <tr> <td style="height: 40px;"/> <td> <xf:submit submission="save-disciplina"> <xf:label><div class="my_special_button" style="width: 210px;">Salva modifiche ai dati disciplinari</div></xf:label> </xf:submit> </td> </tr> <tr> <td style="width: 40px;"/> <td > <xf:trigger> <xf:label class="my_button"><div class="flipped">➜</div>Torna<div class="flipped">➜</div>indietro</xf:label> <xf:action ev:event="DOMActivate"> <xf:load resource="javascript:GoBack()" /> </xf:action> </xf:trigger> </td> </tr> </table> </xf:group> </center> <br/> <br/> </body> </html> let $xslt-pi := processing-instruction xml-stylesheet {'type="text/xsl" href="../xsltforms/xsltforms.xsl"'} return ($xslt-pi,$form) -- Sent with Tutanota, the secure & ad-free mailbox: https://tutanota.com |
From: Josselin M. <mor...@gm...> - 2021-01-20 10:52:58
|
Hi Alain (it’s me again…;) I am confronted with a new error: Error dispatching event 'xforms-refresh' which may be linked to my previous email. I made a sample to explain my issue. In this form, we can create a list of subscribers. Each subscriber is either taken from a list of people, or created directly if the subscriber is not in the list. In this case, we can fill in his name and informations about his age. This is where I have a problem. If it appears that the person I started to add was already in the list, and I decided to change my mind and choose the person from the list, then, if everything is filled in (especially the age field, made with xf:itemset), I get the error message mentioned above. If I don't use xf:itemset or xf:repeat, I don't get this error. Maybe I'm doing something wrong ? but I didn't get this message with xsltforms 1.3? I attach a simplified example, or you can find it on GitHub Gist: https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-refresherror-xml <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-refresherror-xml>. Thank you very much for your help, Sincerely, Josselin. NB : with this same form, I have the same error, if I already choose a person from the list and decided to add a new person. Josselin. > Le 18 janv. 2021 à 22:31, Josselin Morvan <mor...@gm...> a écrit : > > Hi Alain, > > Thank you very much for fixing this issue. > > I’m now experimenting another one with the binding rules and the use of xf:repeat. It seems that the xf:bind/@relevant are ignored for fields inside a xf:repeat, as they are still available. > > I have also the same kind of problem with fields pointing to a non-existent element. Here only the label is displayed, but I think it shouldn't. > > Finally, I found that @value="" didn't work anymore with xf:setvalue to set an empty value, we need to use @value="''" (with single quotes inside double quotes). But for this last one, it may be normal ? > > Here is a sample : > https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-binding-issue-with-repeat <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-binding-issue-with-repeat> > > Thank you for your help, best, > Josselin > > > > > >> Le 9 janv. 2021 à 20:01, Alain Couthures <ala...@ag... <mailto:ala...@ag...>> a écrit : >> >> Hi Josselin, >> >> This issue is now fixed in the new committed build (1.5.1). There were also CSS missing rules in the previous one... >> >> Please give a try at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip <https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip> >> >> Thank you for your feedback! >> >> --Alain >>> Le 05/01/2021 11:58, Josselin Morvan <mor...@gm... <mailto:mor...@gm...>> a écrit : >>> >>> >>> Hi Alain, >>> >>> First, I wish you a Happy New Year 2021 ! >>> >>> I realized I didn’t explain my issues with xf:copy in my previous mail : >>> When I set @appearance=‘full’ on a xf:select, it needs two clicks to select or deselect an item, and we can’t select multiple items. As you can see with the screen capture attached, there is also a problem with the label displayed. >>> With xf:select1, when you select one item from the list, all the items are checked, and I'm experimenting the same problem with the label. >>> >>> My issue with xf:date content and the calendar display was from my side, my apologize. >>> >>> The sample form is still accessible on my GitHub Gist : https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65 <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65> >>> >>> Thank you very much for your help. >>> Best, >>> Josselin. >>> >>> <xf-copy.jpeg> >>>> Le 17 déc. 2020 à 12:53, Josselin Morvan <mor...@gm... <mailto:mor...@gm...>> a écrit : >>>> Hi Alain, >>>> >>>> Thank you for the xsltforms 1.5 release !! >>>> >>>> I tried this release with a previous form, everything seems to work except I’m experimenting some issues with the xf:copy element when xf:select (or xf:select1) is set with @appearance=‘full’. It works fine with @appearance=‘minimal/compact’. >>>> I also have an issue with the calendar display with xf:date content. >>>> Please, find small sample attached (or on Github Gist : https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65 <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65>) >>>> >>>> Thank you very much for your job !! >>>> Best, >>>> Josselin. >>>> >>>> <issue.xml> >>>> >>>> >>>>> Le 4 déc. 2020 à 17:31, Alain Couthures <ala...@ag... <mailto:ala...@ag...>> a écrit : >>>>> Hello, >>>>> >>>>> XSLTForms 1.5 can now be downloaded at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip <https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip> >>>>> >>>>> The corresponding CSS stylesheet has been aligned to the one in the XForms Tutorial written by Steven Pemberton for Declarative Amsterdam: https://declarative.amsterdam/show?page=da-tutorial-xforms <https://declarative.amsterdam/show?page=da-tutorial-xforms> >>>>> >>>>> Thank you for your feedback! >>>>> >>>>> --Alain >>>>> _______________________________________________ >>>>> Xsltforms-support mailing list >>>>> Xsl...@li... <mailto:Xsl...@li...> >>>>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support <https://lists.sourceforge.net/lists/listinfo/xsltforms-support> >>>> >>> > |
From: Josselin M. <mor...@gm...> - 2021-01-18 21:31:23
|
Hi Alain, Thank you very much for fixing this issue. I’m now experimenting another one with the binding rules and the use of xf:repeat. It seems that the xf:bind/@relevant are ignored for fields inside a xf:repeat, as they are still available. I have also the same kind of problem with fields pointing to a non-existent element. Here only the label is displayed, but I think it shouldn't. Finally, I found that @value="" didn't work anymore with xf:setvalue to set an empty value, we need to use @value="''" (with single quotes inside double quotes). But for this last one, it may be normal ? Here is a sample : https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-binding-issue-with-repeat <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65#file-binding-issue-with-repeat> Thank you for your help, best, Josselin > Le 9 janv. 2021 à 20:01, Alain Couthures <ala...@ag...> a écrit : > > Hi Josselin, > > This issue is now fixed in the new committed build (1.5.1). There were also CSS missing rules in the previous one... > > Please give a try at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip <https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip> > > Thank you for your feedback! > > --Alain >> Le 05/01/2021 11:58, Josselin Morvan <mor...@gm...> a écrit : >> >> >> Hi Alain, >> >> First, I wish you a Happy New Year 2021 ! >> >> I realized I didn’t explain my issues with xf:copy in my previous mail : >> When I set @appearance=‘full’ on a xf:select, it needs two clicks to select or deselect an item, and we can’t select multiple items. As you can see with the screen capture attached, there is also a problem with the label displayed. >> With xf:select1, when you select one item from the list, all the items are checked, and I'm experimenting the same problem with the label. >> >> My issue with xf:date content and the calendar display was from my side, my apologize. >> >> The sample form is still accessible on my GitHub Gist : https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65 <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65> >> >> Thank you very much for your help. >> Best, >> Josselin. >> >> <xf-copy.jpeg> >>> Le 17 déc. 2020 à 12:53, Josselin Morvan <mor...@gm... <mailto:mor...@gm...>> a écrit : >>> Hi Alain, >>> >>> Thank you for the xsltforms 1.5 release !! >>> >>> I tried this release with a previous form, everything seems to work except I’m experimenting some issues with the xf:copy element when xf:select (or xf:select1) is set with @appearance=‘full’. It works fine with @appearance=‘minimal/compact’. >>> I also have an issue with the calendar display with xf:date content. >>> Please, find small sample attached (or on Github Gist : https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65 <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65>) >>> >>> Thank you very much for your job !! >>> Best, >>> Josselin. >>> >>> <issue.xml> >>> >>> >>>> Le 4 déc. 2020 à 17:31, Alain Couthures <ala...@ag... <mailto:ala...@ag...>> a écrit : >>>> Hello, >>>> >>>> XSLTForms 1.5 can now be downloaded at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip <https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip> >>>> >>>> The corresponding CSS stylesheet has been aligned to the one in the XForms Tutorial written by Steven Pemberton for Declarative Amsterdam: https://declarative.amsterdam/show?page=da-tutorial-xforms <https://declarative.amsterdam/show?page=da-tutorial-xforms> >>>> >>>> Thank you for your feedback! >>>> >>>> --Alain >>>> _______________________________________________ >>>> Xsltforms-support mailing list >>>> Xsl...@li... <mailto:Xsl...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support <https://lists.sourceforge.net/lists/listinfo/xsltforms-support> >>> >> |
From: Alain C. <ala...@ag...> - 2021-01-09 19:14:40
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Hi Josselin, </div> <div> <br> </div> <div> This issue is now fixed in the new committed build (1.5.1). There were also CSS missing rules in the previous one... </div> <div> <br> </div> <div> Please give a try at <a href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> </div> <div> <br> </div> <div> Thank you for your feedback! </div> <div> <br> </div> <div> --Alain </div> <blockquote type="cite"> <div> Le 05/01/2021 11:58, Josselin Morvan <mor...@gm...> a écrit : </div> <div> <br> </div> <div> <br> </div>Hi Alain, <div class=""> <br class=""> </div> <div class=""> First, I wish you a Happy New Year 2021 ! </div> <div class=""> <br class=""> </div> <div class=""> I realized I didn’t explain my issues with xf:copy in my previous mail : </div> <div class=""> When I set @appearance=‘full’ on a xf:select, it needs two clicks to select or deselect an item, and we can’t select multiple items. As you can see with the screen capture attached, there is also a problem with the label displayed. </div> <div class=""> With xf:select1, when you select one item from the list, all the items are checked, and I'm experimenting the same problem with the label. </div> <div class=""> <br class=""> </div> <div class=""> <div> My issue with xf:date content and the calendar display was from my side, my apologize. </div> <div> <br class=""> </div> <div> The sample form is still accessible on my GitHub Gist : <a class="" href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65</a> </div> <div> <br class=""> </div> <div> Thank you very much for your help. </div> <div> Best, </div> <div> Josselin. </div> <div> <br class=""> </div> <div> <img class="" src="cid:4CF30C92-5038-480B-B7B0-2E43FD93394C@home" id="9F7EA8CA-C5F2-4D70-B1AB-DB71BBF9E903"> <br class=""> <blockquote type="cite"> <div class=""> Le 17 déc. 2020 à 12:53, Josselin Morvan <<a class="" href="mailto:mor...@gm...">mor...@gm...</a>> a écrit : </div> <div class=""> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"> Hi Alain, <div class=""> <br class=""> </div> <div class=""> Thank you for the xsltforms 1.5 release !! </div> <div class=""> <br class=""> </div> <div class=""> I tried this release with a previous form, everything seems to work except I’m experimenting some issues with the xf:copy element when xf:select (or xf:select1) is set with @appearance=‘full’. It works fine with @appearance=‘minimal/compact’. </div> <div class=""> I also have an issue with the calendar display with xf:date content. </div> <div class=""> Please, find small sample attached (or on Github Gist : <a class="" href="https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65">https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65</a>) </div> <div class=""> <br class=""> </div> <div class=""> Thank you very much for your job !! </div> <div class=""> Best, </div> <div class=""> Josselin. </div> <div class=""> <br> </div> </div><span id="cid:F89BB05D-21B8-4DFF-9657-02946F87D538@home"><issue.xml></span> <div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"> <div class=""> <br class=""> <div class=""> <br class=""> <blockquote type="cite"> <div class=""> Le 4 déc. 2020 à 17:31, Alain Couthures <<a class="" href="mailto:ala...@ag...">ala...@ag...</a>> a écrit : </div> <div class=""> <div class=""> <div class="default-style"> Hello, </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> XSLTForms 1.5 can now be downloaded at <a class="" href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> The corresponding CSS stylesheet has been aligned to the one in the XForms Tutorial written by Steven Pemberton for Declarative Amsterdam: <a class="" href="https://declarative.amsterdam/show?page=da-tutorial-xforms">https://declarative.amsterdam/show?page=da-tutorial-xforms</a> </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> Thank you for your feedback! </div> <div class="default-style"> <br class=""> </div> <div class="default-style"> --Alain </div> </div>_______________________________________________ <br class="">Xsltforms-support mailing list <br class=""><a class="" href="mailto:Xsl...@li...">Xsl...@li...</a> <br class=""><a class="" href="https://lists.sourceforge.net/lists/listinfo/xsltforms-support">https://lists.sourceforge.net/lists/listinfo/xsltforms-support</a> <br class=""> </div> </blockquote> </div> <br class=""> </div> </div> </div> </blockquote> </div> <br class=""> </div> </blockquote> </body> </html> |
From: Josselin M. <mor...@gm...> - 2021-01-05 10:58:50
|
Hi Alain, First, I wish you a Happy New Year 2021 ! I realized I didn’t explain my issues with xf:copy in my previous mail : When I set @appearance=‘full’ on a xf:select, it needs two clicks to select or deselect an item, and we can’t select multiple items. As you can see with the screen capture attached, there is also a problem with the label displayed. With xf:select1, when you select one item from the list, all the items are checked, and I'm experimenting the same problem with the label. My issue with xf:date content and the calendar display was from my side, my apologize. The sample form is still accessible on my GitHub Gist : https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65 <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65> Thank you very much for your help. Best, Josselin. > Le 17 déc. 2020 à 12:53, Josselin Morvan <mor...@gm...> a écrit : > > Hi Alain, > > Thank you for the xsltforms 1.5 release !! > > I tried this release with a previous form, everything seems to work except I’m experimenting some issues with the xf:copy element when xf:select (or xf:select1) is set with @appearance=‘full’. It works fine with @appearance=‘minimal/compact’. > I also have an issue with the calendar display with xf:date content. > Please, find small sample attached (or on Github Gist : https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65 <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65>) > > Thank you very much for your job !! > Best, > Josselin. > <issue.xml> > > >> Le 4 déc. 2020 à 17:31, Alain Couthures <ala...@ag... <mailto:ala...@ag...>> a écrit : >> >> Hello, >> >> XSLTForms 1.5 can now be downloaded at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip <https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip> >> >> The corresponding CSS stylesheet has been aligned to the one in the XForms Tutorial written by Steven Pemberton for Declarative Amsterdam: https://declarative.amsterdam/show?page=da-tutorial-xforms <https://declarative.amsterdam/show?page=da-tutorial-xforms> >> >> Thank you for your feedback! >> >> --Alain >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... <mailto:Xsl...@li...> >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Josselin M. <mor...@gm...> - 2020-12-17 11:54:14
|
Hi Alain, Thank you for the xsltforms 1.5 release !! I tried this release with a previous form, everything seems to work except I’m experimenting some issues with the xf:copy element when xf:select (or xf:select1) is set with @appearance=‘full’. It works fine with @appearance=‘minimal/compact’. I also have an issue with the calendar display with xf:date content. Please, find small sample attached (or on Github Gist : https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65 <https://gist.github.com/sardinecan/21a1781c66e8d68a116a8b54e44b3a65>) Thank you very much for your job !! Best, Josselin. > Le 4 déc. 2020 à 17:31, Alain Couthures <ala...@ag...> a écrit : > > Hello, > > XSLTForms 1.5 can now be downloaded at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip <https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip> > > The corresponding CSS stylesheet has been aligned to the one in the XForms Tutorial written by Steven Pemberton for Declarative Amsterdam: https://declarative.amsterdam/show?page=da-tutorial-xforms <https://declarative.amsterdam/show?page=da-tutorial-xforms> > > Thank you for your feedback! > > --Alain > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Alain C. <ala...@ag...> - 2020-12-06 08:07:34
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Within XSLTForms 1.5, xsltforms.js is just interacting with HTML elements and attributes, not anymore with CSS classes. </div> <div> <br> </div> <div> So, xsltforms.css is just provided as a possible set of CSS rules for rendering. Yet, xsltforms.css is now in charge of essential behavior such as hiding irrelevant XForms controls and so on... That is why attribute selectors are now present in xsltforms.css. </div> <div> <br> </div> <div> You can edit xsltforms.css at your convenience and change anything without risking to break a form. </div> <div> <br> </div> <div> Thank you for your feedback! </div> <div> <br> </div> <div> --Alain </div> <blockquote type="cite"> <div> Le 05/12/2020 18:52, Habs <<a href="mailto:ge...@us...">ge...@us...</a>> a écrit : </div> <div> <br> </div> <div> <br> </div> <div> Brief followup Alain, please, </div> <div> <br> </div> <div> I located this in the xsltforms.css code file: </div> <div> <br> </div> <div> xforms-repeat[xf-bound]:not([xf-notrelevant]) > xforms-repeat-item { </div> <div> display: table-row; </div> <div> } </div> <div> xforms-repeat-item > * { </div> <div> display: inline-table !important; </div> <div> } </div> <div> <br> </div> <div> <br> </div> <div> This is a change to previous versions ? </div> <div> <br> </div> <div> If a change is made so that 'table-row' and 'inline-table' are set to </div> <div> 'block', then the layout behaviour of the form layouts I use is preserved </div> <div> without any local styling. </div> <div> <br> </div> <div> What are the consequences of setting this to 'block' as a default in </div> <div> xsltforms ? </div> <div> <br> </div> <div> Regards </div> <div> Habs </div> <div> <br> </div> <div> ---------- Forwarded message ---------- </div> <div> Date: Sat, 5 Dec 2020 11:30:25 +0000 (GMT) </div> <div> From: Habs <<a href="mailto:ge...@us...">ge...@us...</a>> </div> <div> To: Alain Couthures <<a href="mailto:ala...@ag...">ala...@ag...</a>> </div> <div> Cc: XSLTForms support <<a href="mailto:xsl...@li...">xsl...@li...</a>> </div> <div> Subject: xsltforms 1.5 xforms-repeat xforms-repeat-item </div> <div> <br> </div> <div> Hello Alain </div> <div> <br> </div> <div> Thank you for the release link for xsltforms1.5.zip </div> <div> <br> </div> <div> Interestingly, I am having to go through my [css] stylesheets and change a few </div> <div> minor things to get form style to be similar to previous versions. </div> <div> <br> </div> <div> This has not been a problem to do, apart from xforms-repeat and </div> <div> xforms-repeat-item, of which I have not had to have a style for in previous </div> <div> versions. </div> <div> <br> </div> <div> Using an inspector, I have noticed that xforms-repeat-items are picking up a </div> <div> style of, display: table-row </div> <div> <br> </div> <div> It does not seem that it is possible to override it in a stylesheet to, for </div> <div> example, display: block </div> <div> <br> </div> <div> It is possible to temporarily override it in using inspector tools, to display: </div> <div> block and indeed this does demonstrate correct behaviour for my form styling. </div> <div> <br> </div> <div> Question: Is it intended that xforms-repeat-item are fixed-styled as display: </div> <div> table-row please, or should it be possible to change it in a style sheet ? </div> <div> <br> </div> <div> I hope this makes sense, if not let me know what I can help with to make the </div> <div> problem more clear. </div> <div> <br> </div> <div> Regards </div> <div> Habs </div> <div> <br> </div> <div> <br> </div> <div> --- Sent using Alpine/Pine, probably the best MUA --- </div> </blockquote> </body> </html> |
From: Habs <ge...@us...> - 2020-12-05 18:23:08
|
Brief followup Alain, please, I located this in the xsltforms.css code file: xforms-repeat[xf-bound]:not([xf-notrelevant]) > xforms-repeat-item { display: table-row; } xforms-repeat-item > * { display: inline-table !important; } This is a change to previous versions ? If a change is made so that 'table-row' and 'inline-table' are set to 'block', then the layout behaviour of the form layouts I use is preserved without any local styling. What are the consequences of setting this to 'block' as a default in xsltforms ? Regards Habs ---------- Forwarded message ---------- Date: Sat, 5 Dec 2020 11:30:25 +0000 (GMT) From: Habs <ge...@us...> To: Alain Couthures <ala...@ag...> Cc: XSLTForms support <xsl...@li...> Subject: xsltforms 1.5 xforms-repeat xforms-repeat-item Hello Alain Thank you for the release link for xsltforms1.5.zip Interestingly, I am having to go through my [css] stylesheets and change a few minor things to get form style to be similar to previous versions. This has not been a problem to do, apart from xforms-repeat and xforms-repeat-item, of which I have not had to have a style for in previous versions. Using an inspector, I have noticed that xforms-repeat-items are picking up a style of, display: table-row It does not seem that it is possible to override it in a stylesheet to, for example, display: block It is possible to temporarily override it in using inspector tools, to display: block and indeed this does demonstrate correct behaviour for my form styling. Question: Is it intended that xforms-repeat-item are fixed-styled as display: table-row please, or should it be possible to change it in a style sheet ? I hope this makes sense, if not let me know what I can help with to make the problem more clear. Regards Habs --- Sent using Alpine/Pine, probably the best MUA --- |
From: Habs <ge...@us...> - 2020-12-05 11:57:03
|
Hello Alain Thank you for the release link for xsltforms1.5.zip Interestingly, I am having to go through my [css] stylesheets and change a few minor things to get form style to be similar to previous versions. This has not been a problem to do, apart from xforms-repeat and xforms-repeat-item, of which I have not had to have a style for in previous versions. Using an inspector, I have noticed that xforms-repeat-items are picking up a style of, display: table-row It does not seem that it is possible to override it in a stylesheet to, for example, display: block It is possible to temporarily override it in using inspector tools, to display: block and indeed this does demonstrate correct behaviour for my form styling. Question: Is it intended that xforms-repeat-item are fixed-styled as display: table-row please, or should it be possible to change it in a style sheet ? I hope this makes sense, if not let me know what I can help with to make the problem more clear. Regards Habs --- Sent using Alpine/Pine, probably the best MUA --- |
From: Alain C. <ala...@ag...> - 2020-12-04 16:49:07
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div class="default-style"> Hello, </div> <div class="default-style"> <br> </div> <div class="default-style"> Please contact me if Internet Explorer support in XSLTForms is still important for you. </div> <div class="default-style"> <br> </div> <div class="default-style"> Next releases should benefit from recent HTML5 and Javascript features, don't you think? </div> <div class="default-style"> <br> </div> <div class="default-style"> Thank you for your feedback! </div> <div class="default-style"> <br> </div> <div class="default-style"> --Alain </div> </body> </html> |
From: Alain C. <ala...@ag...> - 2020-12-04 16:44:32
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div class="default-style"> Hello, </div> <div class="default-style"> <br> </div> <div class="default-style"> XSLTForms 1.5 can now be downloaded at <a href="https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip">https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip</a> </div> <div class="default-style"> <br> </div> <div class="default-style"> The corresponding CSS stylesheet has been aligned to the one in the XForms Tutorial written by Steven Pemberton for Declarative Amsterdam: <a href="https://declarative.amsterdam/show?page=da-tutorial-xforms">https://declarative.amsterdam/show?page=da-tutorial-xforms</a> </div> <div class="default-style"> <br> </div> <div class="default-style"> Thank you for your feedback! </div> <div class="default-style"> <br> </div> <div class="default-style"> --Alain </div> </body> </html> |
From: Ryan R. <rya...@li...> - 2020-06-16 18:50:20
|
Thank you! That resolved my issue. Where can I find any additional notes on the changes in the 1.5beta, or are most of these already in prior releases? Have you added JSON support by any chance? Thanks Ryan ________________________________ From: Alain Couthures <ala...@ag...> Sent: Tuesday, June 16, 2020 10:07 AM To: Ryan Riley <rya...@li...>; xsl...@li... <xsl...@li...> Subject: Re: [Xsltforms-support] External sources in 1.5beta Both @nodeset and @ref are converted into @xf-ref because @nodeset is deprecated in XForms 2.0. <xforms-label ... /> is to be replaced by <xforms-label ... ></xforms-label> Le 16 juin 2020 à 15:28, Ryan Riley <rya...@li...> a écrit : That makes sense. Thank you for your quick reply! I made a bit more progress, then ran into an error trying to use dynamic labels within a select. Uncaught TypeError: Cannot read property 'xpath_evaluate' of null at XsltForms_binding.bind_evaluate (xsltforms.js:5576) at XsltForms_itemset.XsltForms_element.evaluateBinding (xsltforms.js:12334) at XsltForms_itemset.build_ (xsltforms.js:13714) at XsltForms_itemset.XsltForms_element.build (xsltforms.js:12316) at Object.build (xsltforms.js:2616) at Object.build (xsltforms.js:2647) at Object.build (xsltforms.js:2647) at Object.build (xsltforms.js:2647) at Object.refresh (xsltforms.js:2570) at init (xsltforms.js:2491) I realize my xpath may be wrong, but that doesn't seem to be what the error indicates. I will try to dig in further after several meetings I have today. I've included my sources below. <! DOCTYPE html > < html lang =" en " > < head > < meta charset =" utf-8 " > < meta http-equiv =" X-UA-Compatible " content =" IE=edge " > < title > Test </ title > < link type =" text/css " href =" vendor/xsltforms/xsltforms.css " rel =" stylesheet " > < script type =" text/javascript " src =" vendor/xsltforms/xsltforms.js " ></ script > </ head > < body > < xforms-model > < xforms-instance id =" data " xf-resource =" data.xml " ></ xforms-instance > < xforms-instance id =" available-files " xf-resource =" available-files.xml " ></ xforms-instance > </ xforms-model > < xforms-select xf-ref =" selectedFile " xf-selection =" closed " xf-appearance =" full " > < xforms-label > File: </ xforms-label > < xforms-itemset xf-nodset =" instance('available-files')/file " > < xforms-label xf-ref =" @label " /> < xforms-value xf-ref =" @path " /> </ xforms-itemset > </ xforms-select > < br > < xforms-output xf-value =" concat('You selected ', selectedFile, '.') " > < xforms-label > Output: </ xforms-label > </ xforms-output > </ body > </ html > data.xml <? xml version = " 1.0 " encoding = " UTF-8 " ?> < data xmlns = "" > < selectedFile type = " xs:string " /> </ data > available-files.xml <? xml version = " 1.0 " encoding = " UTF-8 " ?> < files xmlns = "" > < file label = " favicon.ico " path = " /favicon.ico " /> < file label = " manifest " path = " /site.manifest " /> </ files > Cheers, Ryan ________________________________ From: Alain Couthures <ala...@ag...> Sent: Tuesday, June 16, 2020 8:08 AM To: Ryan Riley <rya...@li...>; xsl...@li... <xsl...@li...> Subject: Re: [Xsltforms-support] External sources in 1.5beta Because HTML5 attributes such as @selected are typed, XSLTForms 1.5beta has to avoid potential conflicts: except @id, @style and @class, every attribute for an XForms element is renamed with the "xf-" prefix for HTML5. HTML5 also considers that custom elements cannot be written with the auto-close notation. So, you should try again this: <xforms-instance xf-src="..."></xforms-instance> Thank you for your feedback! --Alain Le 16 juin 2020 à 14:45, Ryan Riley <rya...@li...> a écrit : I was delighted to find XSLTForms. I noticed you just published the 1.5beta that supports HTML5 documents and have been trying to use it for a recent project. I was trying to determine whether I could load external XML files using <xforms-instance src="" /> in an HTML5 document, but I receive an error with this approach: [cid:a02a5b6f-708b-47e9-bfc3-4d94046406a1] Is this expected? If so, how might I go about replacing the XML document within the <script type="application/xml"></script>, as in the sample hello.htm? Thank you, Ryan Riley rya...@li... _______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Alain C. <ala...@ag...> - 2020-06-16 15:12:35
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Both @nodeset and @ref are converted into @xf-ref because @nodeset is deprecated in XForms 2.0. </div> <div> <br> </div> <div> <xforms-label ... /> is to be replaced by <xforms-label ... ></xforms-label> </div> <blockquote type="cite"> Le 16 juin 2020 à 15:28, Ryan Riley <rya...@li...> a écrit : <br> <br> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> That makes sense. Thank you for your quick reply! I made a bit more progress, then ran into an error trying to use dynamic labels within a select. </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> Uncaught TypeError: Cannot read property 'xpath_evaluate' of null <br> <div> at XsltForms_binding.bind_evaluate (xsltforms.js:5576) <br> </div> <div> at XsltForms_itemset.XsltForms_element.evaluateBinding (xsltforms.js:12334) <br> </div> <div> at XsltForms_itemset.build_ (xsltforms.js:13714) <br> </div> <div> at XsltForms_itemset.XsltForms_element.build (xsltforms.js:12316) <br> </div> <div> at Object.build (xsltforms.js:2616) <br> </div> <div> at Object.build (xsltforms.js:2647) <br> </div> <div> at Object.build (xsltforms.js:2647) <br> </div> <div> at Object.build (xsltforms.js:2647) <br> </div> <div> at Object.refresh (xsltforms.js:2570) <br> </div> at init (xsltforms.js:2491) <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> I realize my xpath may be wrong, but that doesn't seem to be what the error indicates. I will try to dig in further after several meetings I have today. I've included my sources below. </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <div style="color: #333333; background-color: #f5f5f5; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px;"> <div> <span style="color: #91b3e0;"><!</span> <span style="color: #4b69c6;">DOCTYPE</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">html</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">html</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">lang</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">en</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">head</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">meta</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">charset</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">utf-8</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">meta</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">http-equiv</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">X-UA-Compatible</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">content</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">IE=edge</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">title</span> <span style="color: #91b3e0;">></span> Test <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">title</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">link</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">type</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">text/css</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">href</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">vendor/xsltforms/xsltforms.css</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">rel</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">stylesheet</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #777777;"> </span> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">script</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">type</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">text/javascript</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">src</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">vendor/xsltforms/xsltforms.js</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></</span> <span style="color: #4b69c6;">script</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">head</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">body</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-model</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-instance</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">id</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">data</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-resource</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">data.xml</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></</span> <span style="color: #4b69c6;">xforms-instance</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-instance</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">id</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">available-files</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-resource</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">available-files.xml</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></</span> <span style="color: #4b69c6;">xforms-instance</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">xforms-model</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-select</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-ref</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">selectedFile</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-selection</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">closed</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-appearance</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">full</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-label</span> <span style="color: #91b3e0;">></span> File: <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">xforms-label</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-itemset</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-nodset</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">instance('available-files')/file</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-label</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-ref</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">@label</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> /></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-value</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-ref</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">@path</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> /></span> </div> <div> <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">xforms-itemset</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">xforms-select</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">br</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-output</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xf-value</span> <span style="color: #777777;">="</span> <span style="color: #448c27;">concat('You selected ', selectedFile, '.')</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"><</span> <span style="color: #4b69c6;">xforms-label</span> <span style="color: #91b3e0;">></span> Output: <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">xforms-label</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">xforms-output</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">body</span> <span style="color: #91b3e0;">></span> </div> <div> <span style="color: #91b3e0;"></</span> <span style="color: #4b69c6;">html</span> <span style="color: #91b3e0;">></span> </div> </div> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> data.xml </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <div style="color: #333333; background-color: #f5f5f5; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px;"> <div> <span style="color: #777777;"><?</span> <span style="color: #4b69c6;">xml</span> <span style="color: #8190a0; font-style: italic;"> version</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">1.0</span> <span style="color: #777777;">"</span> <span style="color: #8190a0; font-style: italic;"> encoding</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">UTF-8</span> <span style="color: #777777;">"</span> <span style="color: #777777;">?></span> </div> <div> <span style="color: #777777;"><</span> <span style="color: #4b69c6;">data</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xmlns</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">""</span> <span style="color: #777777;">></span> </div> <div> <span style="color: #777777;"><</span> <span style="color: #4b69c6;">selectedFile</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">type</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">xs:string</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #777777;">/></span> </div> <div> <span style="color: #777777;"></</span> <span style="color: #4b69c6;">data</span> <span style="color: #777777;">></span> </div> </div> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> available-files.xml </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <div style="color: #333333; background-color: #f5f5f5; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px;"> <div> <span style="color: #777777;"><?</span> <span style="color: #4b69c6;">xml</span> <span style="color: #8190a0; font-style: italic;"> version</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">1.0</span> <span style="color: #777777;">"</span> <span style="color: #8190a0; font-style: italic;"> encoding</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">UTF-8</span> <span style="color: #777777;">"</span> <span style="color: #777777;">?></span> </div> <div> <span style="color: #777777;"><</span> <span style="color: #4b69c6;">files</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">xmlns</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">""</span> <span style="color: #777777;">></span> </div> <div> <span style="color: #777777;"><</span> <span style="color: #4b69c6;">file</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">label</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">favicon.ico</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">path</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">/favicon.ico</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #777777;">/></span> </div> <div> <span style="color: #777777;"><</span> <span style="color: #4b69c6;">file</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">label</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">manifest</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #8190a0; font-style: italic;">path</span> <span style="color: #91b3e0;">=</span> <span style="color: #777777;">"</span> <span style="color: #448c27;">/site.manifest</span> <span style="color: #777777;">"</span> <span style="color: #91b3e0;"> </span> <span style="color: #777777;">/></span> </div> <div> <span style="color: #777777;"></</span> <span style="color: #4b69c6;">files</span> <span style="color: #777777;">></span> </div> </div> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> Cheers, </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> Ryan </div> <br> <hr style="display: inline-block; width: 98%;"> <div dir="ltr" id="ox-1c9e7825b1-divRplyFwdMsg"> <span style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;"><strong>From:</strong> Alain Couthures <ala...@ag...><br><strong>Sent:</strong> Tuesday, June 16, 2020 8:08 AM<br><strong>To:</strong> Ryan Riley <rya...@li...>; xsl...@li... <xsl...@li...><br><strong>Subject:</strong> Re: [Xsltforms-support] External sources in 1.5beta</span> <div> <br> </div> </div> <div> <div> Because HTML5 attributes such as @selected are typed, XSLTForms 1.5beta has to avoid potential conflicts: except @id, @style and @class, every attribute for an XForms element is renamed with the "xf-" prefix for HTML5. </div> <div> <br> </div> <div> HTML5 also considers that custom elements cannot be written with the auto-close notation. </div> <div> <br> </div> <div> So, you should try again this: <xforms-instance xf-src="..."></xforms-instance> </div> <div> <br> </div> <div> Thank you for your feedback! </div> <div> <br> </div> <div> --Alain </div> <blockquote type="cite"> Le 16 juin 2020 à 14:45, Ryan Riley <rya...@li...> a écrit : <br> <br> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> I was delighted to find XSLTForms. I noticed you just published the 1.5beta that supports HTML5 documents and have been trying to use it for a recent project. </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> I was trying to determine whether I could load external XML files using <xforms-instance src="" /> in an HTML5 document, but I receive an error with this approach: </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> <img src="cid:a02a5b6f-708b-47e9-bfc3-4d94046406a1" style="max-width: 100%;" id="ox-1c9e7825b1-x_a02a5b6f-708b-47e9-bfc3-4d94046406a1"> <br> </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> Is this expected? If so, how might I go about replacing the XML document within the <script type="application/xml"></script>, as in the sample hello.htm? </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> Thank you, </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> Ryan Riley </div> <div style="font-family: Calibri,Helvetica,sans-serif; font-size: 12pt; color: #000000;"> rya...@li... </div>_______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support </blockquote> <div class="ox-1c9e7825b1-x_default-style"> <br> </div> </div> </blockquote> <div class="default-style"> <br> </div> </body> </html> |
From: Ryan R. <rya...@li...> - 2020-06-16 13:28:38
|
That makes sense. Thank you for your quick reply! I made a bit more progress, then ran into an error trying to use dynamic labels within a select. Uncaught TypeError: Cannot read property 'xpath_evaluate' of null at XsltForms_binding.bind_evaluate (xsltforms.js:5576) at XsltForms_itemset.XsltForms_element.evaluateBinding (xsltforms.js:12334) at XsltForms_itemset.build_ (xsltforms.js:13714) at XsltForms_itemset.XsltForms_element.build (xsltforms.js:12316) at Object.build (xsltforms.js:2616) at Object.build (xsltforms.js:2647) at Object.build (xsltforms.js:2647) at Object.build (xsltforms.js:2647) at Object.refresh (xsltforms.js:2570) at init (xsltforms.js:2491) I realize my xpath may be wrong, but that doesn't seem to be what the error indicates. I will try to dig in further after several meetings I have today. I've included my sources below. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Test</title> <link type="text/css" href="vendor/xsltforms/xsltforms.css" rel="stylesheet"> <script type="text/javascript" src="vendor/xsltforms/xsltforms.js"></script> </head> <body> <xforms-model> <xforms-instance id="data" xf-resource="data.xml"></xforms-instance> <xforms-instance id="available-files" xf-resource="available-files.xml"></xforms-instance> </xforms-model> <xforms-select xf-ref="selectedFile" xf-selection="closed" xf-appearance="full"> <xforms-label>File:</xforms-label> <xforms-itemset xf-nodset="instance('available-files')/file"> <xforms-label xf-ref="@label" /> <xforms-value xf-ref="@path" /> </xforms-itemset> </xforms-select> <br> <xforms-output xf-value="concat('You selected ', selectedFile, '.')"> <xforms-label>Output: </xforms-label> </xforms-output> </body> </html> data.xml <?xml version="1.0" encoding="UTF-8"?> <data xmlns=""> <selectedFile type="xs:string" /> </data> available-files.xml <?xml version="1.0" encoding="UTF-8"?> <files xmlns=""> <file label="favicon.ico" path="/favicon.ico" /> <file label="manifest" path="/site.manifest" /> </files> Cheers, Ryan ________________________________ From: Alain Couthures <ala...@ag...> Sent: Tuesday, June 16, 2020 8:08 AM To: Ryan Riley <rya...@li...>; xsl...@li... <xsl...@li...> Subject: Re: [Xsltforms-support] External sources in 1.5beta Because HTML5 attributes such as @selected are typed, XSLTForms 1.5beta has to avoid potential conflicts: except @id, @style and @class, every attribute for an XForms element is renamed with the "xf-" prefix for HTML5. HTML5 also considers that custom elements cannot be written with the auto-close notation. So, you should try again this: <xforms-instance xf-src="..."></xforms-instance> Thank you for your feedback! --Alain Le 16 juin 2020 à 14:45, Ryan Riley <rya...@li...> a écrit : I was delighted to find XSLTForms. I noticed you just published the 1.5beta that supports HTML5 documents and have been trying to use it for a recent project. I was trying to determine whether I could load external XML files using <xforms-instance src="" /> in an HTML5 document, but I receive an error with this approach: [cid:a02a5b6f-708b-47e9-bfc3-4d94046406a1] Is this expected? If so, how might I go about replacing the XML document within the <script type="application/xml"></script>, as in the sample hello.htm? Thank you, Ryan Riley rya...@li... _______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Alain C. <ala...@ag...> - 2020-06-16 13:08:14
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Because HTML5 attributes such as @selected are typed, XSLTForms 1.5beta has to avoid potential conflicts: except @id, @style and @class, every attribute for an XForms element is renamed with the "xf-" prefix for HTML5. </div> <div> <br> </div> <div> HTML5 also considers that custom elements cannot be written with the auto-close notation. </div> <div> <br> </div> <div> So, you should try again this: <xforms-instance xf-src="..."></xforms-instance> </div> <div> <br> </div> <div> Thank you for your feedback! </div> <div> <br> </div> <div> --Alain </div> <blockquote type="cite"> Le 16 juin 2020 à 14:45, Ryan Riley <rya...@li...> a écrit : <br> <br> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> I was delighted to find XSLTForms. I noticed you just published the 1.5beta that supports HTML5 documents and have been trying to use it for a recent project. </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> I was trying to determine whether I could load external XML files using <xforms-instance src="" /> in an HTML5 document, but I receive an error with this approach: </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <img id="a02a5b6f-708b-47e9-bfc3-4d94046406a1" src="cid:a02a5b6f-708b-47e9-bfc3-4d94046406a1" style="max-width: 100%;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> Is this expected? If so, how might I go about replacing the XML document within the <script type="application/xml"></script>, as in the sample hello.htm? </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> <br> </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> Thank you, </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> Ryan Riley </div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: #000000;"> rya...@li... </div>_______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support </blockquote> <div class="default-style"> <br> </div> </body> </html> |
From: Ryan R. <rya...@li...> - 2020-06-16 12:59:54
|
I was delighted to find XSLTForms. I noticed you just published the 1.5beta that supports HTML5 documents and have been trying to use it for a recent project. I was trying to determine whether I could load external XML files using <xforms-instance src="" /> in an HTML5 document, but I receive an error with this approach: [cid:a02a5b6f-708b-47e9-bfc3-4d94046406a1] Is this expected? If so, how might I go about replacing the XML document within the <script type="application/xml"></script>, as in the sample hello.htm? Thank you, Ryan Riley rya...@li... |
From: Alain C. <ala...@ag...> - 2020-05-26 16:08:32
|
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Hello Alex, </div> <div> <br> </div> <div> Thank you for reporting this issue which is now fixed in 1.5beta. </div> <div> <br> </div> <div> XSLTForms releases come with multiple config files and asking for a missing one was causing the form to abort. </div> <div> <br> </div> <div> There has been an Italian translation for a long time (it should have been there on your server) and I just compared it with the new one you sent: they are quite similar except for "Chuidere" vs. "Chuidi" and "... Caricamento ..." vs. "Caricamento in corso". Which ones are the better ones? </div> <div> <br> </div> <div> Kind regards, </div> <div> <br> </div> <div> Alain </div> <blockquote type="cite"> Le 14 mai 2020 à 08:59, Alessandro <ca...@tu...> a écrit : <br> <br> <div> O.K., I have solved the issue: it was a question of lack of the Italian config xsl file (within the xsltforms directory), as I'm Italian. However, I never use purposefully default Italian settings and normally I do not have such problems... <br> </div> <div> <br> </div> <div> Alain, though corresponding to a very minimal improvement, I have attached the Italian translation of the config xsl file <br> </div> <div> <br> </div> <div> Best regards <br> </div> <div> Alex <br> </div> <div> <br> </div> <div> -- <br> </div> <div> Inviato in modo sicuro con Tutanota. Ottieni la tua mailbox crittografata e senza pubblicità: <br> </div> <div> https://tutanota.com <br> </div> <div> <br> </div> <div> <br> </div> <div> 13 mag 2020, 19:37 da xsl...@li...: <br> </div> <blockquote> <div> Thanks Habs, I have downloaded again version 1.3 and now at least version 1.3 works (mine probably was messed-up). <br> </div> <div> But I'd like also to understand why 15beta doesn't (I have existdb 5.2 installed)... <br> </div> <div> Cheers <br> </div> <div> Alex <br> </div> <div> <br> </div> <div> -- <br> </div> <div> Inviato in modo sicuro con Tutanota. Ottieni la tua mailbox crittografata e senza pubblicità: <br> </div> <div> https://tutanota.com <br> </div> <div> <br> </div> <div> <br> </div> <div> 13 mag 2020, 16:16 da ge...@us...: <br> </div> <blockquote> <div> On Wed, 13 May 2020, Alessandro via Xsltforms-support wrote: <br> </div> <blockquote> <div> Dear all, <br> </div> <div> after reinstalling eXist-db I have lost the xsltforms release I was using and the last beta release does not seem to be working anymore. All I get is a <br> </div> <div> permanent "...Loading..." square message... The following is the XForm I'd like to style (already recently reviewed by Tim Thompson): <br> </div> </blockquote> <div> <br> </div> <div> <br> </div> <div> Hi there, <br> </div> <div> <br> </div> <div> What version were you using ? <br> </div> <div> <br> </div> <div> v1.3 can still be had here (unless its pulling the newest beta...you would need to check just in case): <br> </div> <div> <br> </div> <div> http://sourceforge.net/project/platformdownload.php?group_id=242651 <br> </div> <div> <br> </div> <div> <br> </div> <div> (it is the link of here: http://www.agencexml.com/xsltforms.htm) <br> </div> <div> <br> </div> <div> If you already tried this, sorry for the noise. <br> </div> <div> <br> </div> <div> Regards <br> </div> <div> Habs <br> </div> <div> --- Sent using Alpine/Pine, probably the best MUA --- <br> </div> </blockquote> <div> <br> </div> </blockquote> <div> <br> </div> </blockquote> <div class="default-style"> <br> </div> </body> </html> |
From: Alessandro <ca...@tu...> - 2020-05-21 09:19:11
|
Hi everybody! In the context of an XForm rendered through XSLTForms within existdb, I'd like to apply a plugin through which textareas are transformed into markdown editors (in this case I use "tailwriter" plugin). Thus I need to apply a CSS style file and a couple of JS file scripts to the following chunk of code (being finally able, of course, to save the textarea contents to an xml file stored in existdb): <body> <h1>Nota Bene</h1> <table border="0"> <tr > <td> <xf:textarea style="font-size: 16px;" mediatype="text/html" ref="/archivi/archivio[@id='{$arch_id}']/cartella[@id='{$fold_id}']/tabella[@id='{$tab_id}']/tr[@r_id='{$row_id}']/nota/nota_text" incremental="true"> </xf:textarea> </td> </tr> </table> <br/> <table border="0"> <tr> <td> <xf:submit submission="save"> <xf:label>Salva modifiche</xf:label> </xf:submit> </td> </tr> </table> </body> These are the files (plus a setting script) that need to be used: <link type="text/css" rel="stylesheet" href="resources/tailwriter/tail.writer-white.min.css"/> <script type="text/javascript" src="resources/tailwriter/tail.writer-all.js"/> <script type="text/javascript" src="resources/tailwriter/marked.min.js"/> <script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(){ tail.writer("textarea", {height: [200, 500],indentTab: false,indentSize: 4,locale: "it", markup: "markdown", readonly: false,resize: true, statusbar: true,toolbar: "minimal",toolbarMultiLine: true, toolbarScrollable: true,tooltip: "top",width: "70%" }); }); </script> By simply inserting the above code into the "page.html" template of my existdb app, the hoped application of CSS and JS does not take place (it would have been too easy ;-)). So, how to obtain that result? Is that possible at all? I post my request to both exist and xsltforms help mailing lists, because I don't know on which side the issue might be appropriately dealt with... Many thanks Alex -- Inviato in modo sicuro con Tutanota. Ottieni la tua mailbox crittografata e senza pubblicità: https://tutanota.com |
From: Alessandro <ca...@tu...> - 2020-05-14 09:02:27
|
Dear all,my present problem consists in an annoying message issued by javascript when saving changes from an XForm (within which xsltforms is used) to an xml file: "JavaScript from 'localhost' Unsupported mediatype 'text/html' for instance #my-category-list" No matter whatever flavour of "declare option exist:serialize" I'm trying to set at the beginning of my Xquery, the message persists... This is the code fragment relative to the incriminated instance: <xf:instance id="my-category-list"> <data xmlns="">{$categories}</data> </xf:instance> where the variable $categories points to the following database xml file fragment in order to extract a list of categories: <legenda> <categoria id="231/01">D.Lgs 231/01</categoria> <categoria id="81/08">D.Lgs 81/08</categoria> <categoria id="privacy">Privacy</categoria> <categoria id="macchinari">Macchinari</categoria> <categoria id="imp.elettr.">Impianti elettrici</categoria> <categoria id="trasformatori">Trasformatori</categoria> <categoria id="antincendio">Antincendio</categoria> <categoria id="riscaldam.">Riscaldamento</categoria> </legenda> Should I perhaps specify a particular mimetype inside the xml relevant nodes (<categoria/>)? Best regards Alex -- Inviato in modo sicuro con Tutanota. Ottieni la tua mailbox crittografata e senza pubblicità: https://tutanota.com |
From: Alessandro <ca...@tu...> - 2020-05-14 06:59:16
|
O.K., I have solved the issue: it was a question of lack of the Italian config xsl file (within the xsltforms directory), as I'm Italian. However, I never use purposefully default Italian settings and normally I do not have such problems... Alain, though corresponding to a very minimal improvement, I have attached the Italian translation of the config xsl file Best regards Alex -- Inviato in modo sicuro con Tutanota. Ottieni la tua mailbox crittografata e senza pubblicità: https://tutanota.com 13 mag 2020, 19:37 da xsl...@li...: > Thanks Habs, I have downloaded again version 1.3 and now at least version 1.3 works (mine probably was messed-up). > But I'd like also to understand why 15beta doesn't (I have existdb 5.2 installed)... > Cheers > Alex > > -- > Inviato in modo sicuro con Tutanota. Ottieni la tua mailbox crittografata e senza pubblicità: > https://tutanota.com > > > 13 mag 2020, 16:16 da ge...@us...: > >> On Wed, 13 May 2020, Alessandro via Xsltforms-support wrote: >> >>> Dear all, >>> after reinstalling eXist-db I have lost the xsltforms release I was using and the last beta release does not seem to be working anymore. All I get is a >>> permanent "...Loading..." square message... The following is the XForm I'd like to style (already recently reviewed by Tim Thompson): >>> >> >> >> Hi there, >> >> What version were you using ? >> >> v1.3 can still be had here (unless its pulling the newest beta...you would need to check just in case): >> >> http://sourceforge.net/project/platformdownload.php?group_id=242651 >> >> >> (it is the link of here: http://www.agencexml.com/xsltforms.htm) >> >> If you already tried this, sorry for the noise. >> >> Regards >> Habs >> --- Sent using Alpine/Pine, probably the best MUA --- >> > > |