XForms Instance with Namespace ...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

XForms Instance with Namespace ...

Dirk Schalle
Could somebody please explain in plain English, why I have to use
xmlns="" in an model's instance, or more precisely, why can't I do
something like the following:

<xforms:model>
    <xforms:instance xmlns:exam="http://example.com/namespace">
       <exam:root>
          <exam:sometext>
       </exam:root>
    </xforms>
</xforms:model>
...
<xforms:input name="sometext" ref="exam:sometext"/>

Thank you very much,

    Dirk



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms Instance with Namespace ...

Erik Bruchez
Administrator
Dirk,

> Could somebody please explain in plain English, why I have to use
> xmlns="" in an model's instance, or more precisely, why can't I do
> something like the following:
>
> <xforms:model>
>    <xforms:instance xmlns:exam="http://example.com/namespace">
>       <exam:root>
>          <exam:sometext>
>       </exam:root>
>    </xforms>
> </xforms:model>
> ...
> <xforms:input name="sometext" ref="exam:sometext"/>
>
> Thank you very much,
You don't *have* to use xmlns="" in all cases.

Use xmlns="" only if:

o you already define a different default namespace on an ancestor node
   of xforms:instance

o AND if you want your instance data to be in no namespace

-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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws