I've tried to use sort() (as documented at
http://exforms.org/sorting.html, which
is supported, according to http://www.orbeon.com/ops/doc/reference-xforms-2#d210e2650)
I tried both exforms and exf prefixes (just in case
one was hardcoded) - bound to http://www.exforms.org/exf/1-0 in
both cases.
The form:
<xforms:repeat
nodeset="exforms:sort(attributeList/attribute, [hidden email], 'text' ">
didn't do any sorting.
The form:
<xforms:repeat
nodeset="attributeList/attribute">
<exforms:sort select="@name"/> gave the error mentioned in the subject: Invalid
element in XForms document: exforms:sort
The build is the latest nightly,
3.6.0.200805071924.
Is sort() implemented?
Thanks!
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
>
> I've tried to use sort() (as documented at http://exforms.org/sorting.html > , which is supported, according to http://www.orbeon.com/ops/doc/reference-xforms-2#d210e2650) > > I tried both exforms and exf prefixes (just in case one was hardcoded) We don't do that ;-) Or it's really a bug. > - bound to http://www.exforms.org/exf/1-0 in both cases. > > > The form: > <xforms:repeat nodeset="exforms:sort(attributeList/attribute, > '@name', 'text' "> > > didn't do any sorting. > > The form: > > <xforms:repeat nodeset="attributeList/attribute"> > <exforms:sort select="@name"/> > gave the error mentioned in the subject: Invalid element in XForms > document: exforms:sort > > The build is the latest nightly, 3.6.0.200805071924. > > Is sort() implemented? Are you sure you don't have an exforms:sort element in your document? -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
(see reply at the end)
----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Wednesday, May 07, 2008 9:19 PM Subject: [ops-users] Re: "Invalid element in XForms document: exforms:sort" > > >> I've tried to use sort() (as documented at >> http://exforms.org/sorting.html >> , which is supported, according to >> http://www.orbeon.com/ops/doc/reference-xforms-2#d210e2650) >> >> I tried both exforms and exf prefixes (just in case one was hardcoded) > > We don't do that ;-) Or it's really a bug. > >> - bound to http://www.exforms.org/exf/1-0 in both cases. >> >> >> The form: >> <xforms:repeat nodeset="exforms:sort(attributeList/attribute, >> '@name', 'text' "> >> >> didn't do any sorting. >> >> The form: >> >> <xforms:repeat nodeset="attributeList/attribute"> >> <exforms:sort select="@name"/> >> gave the error mentioned in the subject: Invalid element in XForms >> document: exforms:sort >> >> The build is the latest nightly, 3.6.0.200805071924. >> >> Is sort() implemented? > > Yes it is. > > Are you sure you don't have an exforms:sort element in your document? that I do *not* have the exforms:sort element? I presume you meant the opposite. If you were thinking of the namespace declaration, my forms begins with: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:exforms="http://www.exforms.org/exf/1-0" xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml.xsd http://www.w3.org/2002/xforms http://www.w3.org/2002/xforms/xforms.xsd"> so the exforms prefix is declared. The element itself was used in the snippet I posted. Thanks, JL -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
>> Are you sure you don't have an exforms:sort element in your document?
No, I was really asking if you *didn't have* the <exforms:sort>
> > I'm not sure I got the question correctly, you're asking to double > check that I do *not* have the exforms:sort element? I presume you > meant the opposite. > If you were thinking of the namespace declaration, my forms begins > with: > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:exforms="http://www.exforms.org/exf/1-0" > xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml.xsd > http://www.w3.org/2002/xforms http://www.w3.org/2002/xforms/xforms.xsd > "> > > > so the exforms prefix is declared. The element itself was used in > the snippet I posted. element. eXforms specifies the <exforms:sort> element, as well as a function, exforms:sort(). We only support the latter. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Ah, ok. Sorry, I missed that, I tried the function (which didn't work at the
time), went to the exforms:sort spec, tried the element and I didn't notice the latter was not supported. I created a test case for you to show the problem in the function but it works, so I must have done something wrong in the original xform. Thanks for the help, JL ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Wednesday, May 14, 2008 2:39 PM Subject: [ops-users] Re: Re: Re: "Invalid element in XForms document: exforms:sort" >>> Are you sure you don't have an exforms:sort element in your document? >> >> I'm not sure I got the question correctly, you're asking to double >> check that I do *not* have the exforms:sort element? I presume you >> meant the opposite. >> If you were thinking of the namespace declaration, my forms begins >> with: >> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:xforms="http://www.w3.org/2002/xforms" >> xmlns:xsd="http://www.w3.org/2001/XMLSchema" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >> xmlns:ev="http://www.w3.org/2001/xml-events" >> xmlns:exforms="http://www.exforms.org/exf/1-0" >> xsi:schemaLocation="http://www.w3.org/1999/xhtml >> http://www.w3.org/1999/xhtml.xsd >> http://www.w3.org/2002/xforms >> http://www.w3.org/2002/xforms/xforms.xsd >> "> >> >> >> so the exforms prefix is declared. The element itself was used in >> the snippet I posted. > > No, I was really asking if you *didn't have* the <exforms:sort> > element. eXforms specifies the <exforms:sort> element, as well as a > function, exforms:sort(). We only support the latter. > > -Erik > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |