I downloaded the latest nightly build this morning in order to test out the new fr:autocomplete fix, but unfortunately my form was broken. After some testing, I think I tracked down the specific case.
If XML is xincluded within widget:tab, the form errors: "Cannot output a namespace node for the default namespace when the element is in no namespace" xinclude works as long as it is not a descendant of widget:tab Attached is a zip file with a testapp folder to drop into the orbeon apps directory. Testapp has a page-flow, the form xhtml file and two xincluded XML chunks. Ethan -- 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 widget-tab-xinclude.zip (4K) Download Attachment |
Administrator
|
Hi Ethan,
Saxon complains because in note.xml, you declared xmlns="http://www.w3.org/1999/xhtml", and note.xml includes p.xml which doesn't have a default namespace. So it would have to undo the default namespace declaration in note.xml to say that now the default namespace is "no namespace" (empty). You could do this with xmlns="", but this doesn't exist in XML 1.0. Long story short, you can fix this by either: 1) Adding xmlns="http://www.w3.org/1999/xhtml" in p.xml, as it most likely was just missing there. 2) My preference: *never* declare a default namespace; *always* use a prefix for elements/attributes that are in a namespace. Alex On Mon, Apr 26, 2010 at 7:56 AM, Ethan Gruber <[hidden email]> wrote: > I downloaded the latest nightly build this morning in order to test out the > new fr:autocomplete fix, but unfortunately my form was broken. After some > testing, I think I tracked down the specific case. > > If XML is xincluded within widget:tab, the form errors: "Cannot output a > namespace node for the default namespace when the element is in no > namespace" > > xinclude works as long as it is not a descendant of widget:tab > > Attached is a zip file with a testapp folder to drop into the orbeon apps > directory. Testapp has a page-flow, the form xhtml file and two xincluded > XML chunks. > > Ethan > > > -- > 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, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks, got it.
Ethan On Wed, Apr 28, 2010 at 1:17 PM, Alessandro Vernet <[hidden email]> wrote: Hi Ethan, -- 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 |