Re: [Xsltforms-support] Moving elements in a repeat
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2023-01-14 09:43:13
|
<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div> Hi Winona, </div> <div class="default-style"> </div> <div class="default-style"> XPath axes usage is a possibility for such a complex test case. </div> <div class="default-style"> </div> <div class="default-style"> First, the self:: axis can be used to reduce the size of XPath expressions testing lists of node names. </div> <div class="default-style"> </div> <div class="default-style"> XForms, as XSLT, is always providing a context node for XPath evaluation. Using the parent:: axis is interesting for smaller and more general expressions. </div> <div class="default-style"> </div> <div class="default-style"> In this test case, the preceding-sibling:: and following-sibling:: axes will allow to calculate the position of an item within its own editing group so it can be moved up or down. </div> <div class="default-style"> </div> <div class="default-style"> It is also interesting to be able to disable out-of-bounds moves for the first and the last items (XForms 2.0 does not yet specify that @readonly can also be added to an input control...). </div> <div class="default-style"> </div> <div class="default-style"> Please find the proposed fixed form attached. </div> <div class="default-style"> </div> <div class="default-style"> Using variables would also simplify again the form but they will be more widely supported in XSLTForms in the next release. Which one are you using now? </div> <div class="default-style"> </div> <div class="default-style"> Thank you for your feedback! </div> <div class="default-style"> </div> <div class="default-style"> --Alain </div> <blockquote type="cite"> <div> Le 10/01/2023 15:29 CET, Winona Salesky <wsa...@gm...> a écrit : </div> <div> </div> <div> </div> <div dir="ltr"> Hi All, <div> I have a form that dynamically groups elements into different repeat groups (client wants to group the elements in this way for UI purposes). The two groups of elements are all children of the same parent element, which can also repeat. I want to be able to move elements up and down within the repeat groups, this works for the first repeat group, but not for second group. </div> <div> </div> <div> This form is part of a larger more complex form, I have tried to simplify it is much as possible. </div> <div> If anyone has any ideas how this might work, or if it is even possible that would be so helpful, I have run out of ideas. </div> <div> </div> <div> Thanks so much! </div> <div> -Winona </div> </div> _______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support </blockquote> </body> </html> |