want xforms:insert w/ origin to create a simple node w/o namespace attributes

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

want xforms:insert w/ origin to create a simple node w/o namespace attributes

raul.aguilar
how is it possible to insert a node without namespace attributes? for example when this line executes:

<xforms:insert nodeset="dataTable" at="last()" position="after" origin="instance('entity-dataTable')"/>

the instance:

<xforms:instance id="entity-dataTable">
  <dataTable xmlns="">
    <alternateIdentifier/>
    <entityName/>
    <entityDescription/>
    ...
  </dataTable>
</xforms:instance>

becomes inserted into node <someParentNode> as:

<someParentNode>
  <dataTable
    xmlns:xhtml="http://www.w3.org/1999/xhtml" 
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" 
    xmlns:xforms="http://www.w3.org/2002/xforms" 
    xmlns:ev="http://www.w3.org/2001/xml-events" 
    xmlns:xi="http://www.w3.org/2001/XInclude" 
    xmlns:exforms="http://www.exforms.org/exf/1-0" 
    xmlns:f="http://orbeon.org/oxf/xml/formatting">
   
    <alternateIdentifier/>
    <entityName/>
    <entityDescription/>
      ...
  </dataTable>
</someParentNode>

whereas what i want is a clean insert as in:

<someParentNode>
  <dataTable>
    <alternateIdentifier/>
    <entityName/>
    <entityDescription/>
      ...
  </dataTable>
</someParentNode>

i've scoured our OPS forum postings for a similar problem to no avail.

Raul


Reply | Threaded
Open this post in threaded view
|

Re: want xforms:insert w/ origin to create a simple node w/o namespace attributes

Erik Bruchez
Administrator
Raul,

The <dataTable> element inherits all the namespaces in scope when the
instance is created. If you want to avoid this, try putting the
entity-dataTable in a separate file and load it with something like:

<xforms:instance id="entity-dataTable"
   src="entity-dataTable-instance.xml"/>

-Erik

raul.aguilar wrote:

> how is it possible to insert a node without namespace attributes? for example
> when this line executes:
>
> <xforms:insert nodeset="dataTable" at="last()" position="after"
> origin="instance('entity-dataTable')"/>
>
> the instance:
>
> <xforms:instance id="entity-dataTable">
>   <dataTable xmlns="">
>     <alternateIdentifier/>
>     <entityName/>
>     <entityDescription/>
>     ...
>   </dataTable>
> </xforms:instance>
>
> becomes inserted into node <someParentNode> as:
>
> <someParentNode>
>   <dataTable
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema"
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>     xmlns:xi="http://www.w3.org/2001/XInclude"
>     xmlns:exforms="http://www.exforms.org/exf/1-0"
>     xmlns:f="http://orbeon.org/oxf/xml/formatting">
>    
>     <alternateIdentifier/>
>     <entityName/>
>     <entityDescription/>
>       ...
>   </dataTable>
> </someParentNode>
>
> whereas what i want is a clean insert as in:
>
> <someParentNode>
>   <dataTable>
>     <alternateIdentifier/>
>     <entityName/>
>     <entityDescription/>
>       ...
>   </dataTable>
> </someParentNode>
>
> i've scoured our OPS forum postings for a similar problem to no avail.
>
> Raul
>
>
>
>

--
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
Reply | Threaded
Open this post in threaded view
|

Re: want xforms:insert w/ origin to create a simple node w/o namespace attributes

raul.aguilar
sweet! worked like a champ. thanks. -Raul


Erik Bruchez wrote
Raul,

The <dataTable> element inherits all the namespaces in scope when the
instance is created. If you want to avoid this, try putting the
entity-dataTable in a separate file and load it with something like:

<xforms:instance id="entity-dataTable"
   src="entity-dataTable-instance.xml"/>

-Erik

raul.aguilar wrote:
> how is it possible to insert a node without namespace attributes? for example
> when this line executes:
>
> <xforms:insert nodeset="dataTable" at="last()" position="after"
> origin="instance('entity-dataTable')"/>
>
> the instance:
>
> <xforms:instance id="entity-dataTable">
>   <dataTable xmlns="">
>     <alternateIdentifier/>
>     <entityName/>
>     <entityDescription/>
>     ...
>   </dataTable>
> </xforms:instance>
>
> becomes inserted into node <someParentNode> as:
>
> <someParentNode>
>   <dataTable
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema"
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>     xmlns:xi="http://www.w3.org/2001/XInclude"
>     xmlns:exforms="http://www.exforms.org/exf/1-0"
>     xmlns:f="http://orbeon.org/oxf/xml/formatting">
>    
>     <alternateIdentifier/>
>     <entityName/>
>     <entityDescription/>
>       ...
>   </dataTable>
> </someParentNode>
>
> whereas what i want is a clean insert as in:
>
> <someParentNode>
>   <dataTable>
>     <alternateIdentifier/>
>     <entityName/>
>     <entityDescription/>
>       ...
>   </dataTable>
> </someParentNode>
>
> i've scoured our OPS forum postings for a similar problem to no avail.
>
> Raul
>
>
>
>


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



--
You receive this message as a subscriber of the ops-users@objectweb.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws