All, I am using Orbeon as a separate war. What’s the
best way to strip out blank elements before POSTing to eXist? I also need
to put the blank elements back after I GET from eXist for editing purposes. Thanks Mike -- 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
|
Mike,
Stripping is easy with relevance. You could write something like this to remove all elements which have no child elements and contain an empty string: <xforms:bind nodeset="//*[not(*) and . = '']" relevant="false()"/> Now adding back elements is harder. First, what would the algorithm be? You would need some information to figure out what elements to add where. Once you know that, you can figure out the technical solution. -Erik On Dec 20, 2007, at 12:38 PM, Park, Michael wrote: > All, > > I am using Orbeon as a separate war. What’s the best way to strip > out blank elements before POSTing to eXist? I also need to put the > blank elements back after I GET from eXist for editing purposes. > > > Thanks > Mike > > -- > 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 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 |
Erik,
Maybe I'm rusty from the holidays, but how do I apply this binding to the trigger only? Otherwise, this immediately strips everything. Thanks again, Mike -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Thursday, December 20, 2007 7:12 PM To: [hidden email] Subject: [Released] Re: [ops-users] apply XSL before POST to eXist Mike, Stripping is easy with relevance. You could write something like this to remove all elements which have no child elements and contain an empty string: <xforms:bind nodeset="//*[not(*) and . = '']" relevant="false()"/> Now adding back elements is harder. First, what would the algorithm be? You would need some information to figure out what elements to add where. Once you know that, you can figure out the technical solution. -Erik On Dec 20, 2007, at 12:38 PM, Park, Michael wrote: > All, > > I am using Orbeon as a separate war. What's the best way to strip > out blank elements before POSTing to eXist? I also need to put the > blank elements back after I GET from eXist for editing purposes. > > > Thanks > Mike > > -- > 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 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 |
Free forum by Nabble | Edit this page |