W3C home > Mailing lists > Public > public-forms@w3.org > July 2008

Re: namespace question

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Fri, 11 Jul 2008 11:38:18 -0700
Cc: "public-forms (new)" <public-forms@w3.org>
Message-Id: <68BEE44C-4A28-4907-B161-E83E27CE309D@orbeon.com>
To: www-forms@w3.org

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.


[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 ( 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
Received on Friday, 11 July 2008 18:39:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:57 UTC