Re: namespace question

I have had this issue forever as well.

IMO this is a missing feature of XForms: the ability to specify which  
namespace prefixes should be removed. XProc [1] has this feature  
already, thanks to the @ignore-inline-prefixes attribute.

XForms should have it too.

In the meanwhile, the only thing you can do is externalize the  
instance into a separate file, and load it with @src.

-Erik

[1] ignore-inline-prefixes

On Jul 11, 2008, at 6:23 AM, Swithun Crowe wrote:

>
> Hello
>
> I have a small puzzling problem. I have an XForms document where the  
> default namespace is declared as so:
>
> <html xmlns="http://www.w3.org/1999/xhtml" ...
>
> (with all the other namespaces there too)
>
> Then, in one of the instances, the default namespace is declared as  
> empty:
>
> <xf:instance id="text_instance">
> <tei:TEI xmlns=""> ...
>
> But then, when this instance is submitted, it shows up as:
>
> <tei:TEI xmlns="http://www.w3.org/1999/xhtml" ...
>
> I would like to get rid of this default namespace declaration. I  
> would rather not have to use a non-default namespace for the XHTML  
> elements. Shouldn't the xmlns="" inside the instance override the  
> xmlns="http..." in the ancestor html element?
>
> Does anyone have any ideas? I'm using Firefox (2.0.0.14/0.8.5). I  
> can ask on the Mozilla XForms list if anyone thinks it is a  
> implementation specific problem.
>
> A copy of the form is here:
> http://swithun.servebeer.com/namespace.xhtml
>
> Thanks.
>
> Swithun.
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/

Received on Friday, 11 July 2008 18:39:03 UTC