Hi Damon,

This appears to be fixed in our current codebase. This is the test I ran:

controller.xml:

<page path-info="/examples/nsform" xforms="oxf:/test/nsform.xml"
  model="oxf:/test/nsmodel.xpl"/>

nsform.xml:

<xforms:model xmlns:xforms="http://www.w3.org/2002/xforms";>
  <xforms:instance>
    <form>
       <sql:query xmlns:sql="http://orbeon.org/oxf/xml/sql";>
            select * from something
       </sql:query>
    </form>
  </xforms:instance>
  <xforms:submission method="GET"/>
</xforms:model>

nsmodel.xpl:

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";>

<p:param name="instance" type="input" debug="instance"/>

    <p:processor uri="oxf/processor/xml-serializer">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
            <config/>
        </p:input>
    </p:processor>
</p:config>

I am getting the following result in the browser:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<form>
  <sql:query xmlns:sql="http://orbeon.org/oxf/xml/sql";>
    select * from something
  </sql:query>
</form>

-Erik

Damon Rand wrote:

Hi guys,
   I can't remember whether I reported this one already but I am losing namespaces 
between the xforms and the model. ie.

<xforms:model xmlns:xforms="http://www.w3.org/2002/xforms";>
  <xforms:instance>
    <form>
       <sql:query xmlns:sql="http://orbeon.org/oxf/xml/sql";>
            select * from something
       </sql:query>
    </form>
  </xforms:instance>
  <xforms:submission method="GET"/>
</xforms:model>

.. becomes this when it reaches the model.

<form>
   select * from something
</form>

Damon.

_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to