exclude-result-prefixes #all in a submission (or includenamespaceprefixes none)

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

exclude-result-prefixes #all in a submission (or includenamespaceprefixes none)

Andrew Bailey
In a submission I need to omit the xml declaration and the namespaces,
as the server side software has a broken xml parser (that I cant fix).

I tried xxf:exclude-result-prefixes="#all"

however it doesnt work, the namespaces still get submitted
next I tried using a space separated list, as you would for xslt, but
the namespaces still get submitted

I also tried  includenamespaceprefixes="" (does this attribute exist in orbeon?)

Can anyone please explain how to avoid sending the namespaces to the server.

I am using
Orbeon Forms dev-3.7.1.200905272119

The submission that I am using

<xf:submission id="put"
 ref="instance('passwordInstance')/request/subject"
 resource="{xxf:bind('base')}/subjects/{xxf:bind('uniqueidParam')}/password/change"
omit-xml-declaration="true"
xxf:exclude-result-prefixes="f ev xxi xi foaf xlink xs rdf widget xf xxf"
 includenamespaceprefixes=""
 method="put" replace="none" instance="passwordInstance" f:url-norewrite="true"
>

What gets sent to the server is the following

<subject xmlns:f="http://orbeon.org/oxf/xml/formatting"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
...

Thanks in advance,

Andy Bailey

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

Re: exclude-result-prefixes #all in a submission (or includenamespaceprefixes none)

Andrew Bailey
Ok I figured it out.

You need to put the exclude result prefixes on the instance, I had
assumed that it was on the submission.

<xf:instance id="passwordInstance" xmlns="" xxf:exclude-result-prefixes="#all">

It is a bit weird that the omit xml declaration is on the submission
and the namespace exclude on the instance.

Andy Bailey

http://www.hazlorealidad.com

On Mon, Sep 28, 2009 at 3:07 PM, Andrew Bailey <[hidden email]> wrote:

> In a submission I need to omit the xml declaration and the namespaces,
> as the server side software has a broken xml parser (that I cant fix).
>
> I tried xxf:exclude-result-prefixes="#all"
>
> however it doesnt work, the namespaces still get submitted
> next I tried using a space separated list, as you would for xslt, but
> the namespaces still get submitted
>
> I also tried  includenamespaceprefixes="" (does this attribute exist in orbeon?)
>
> Can anyone please explain how to avoid sending the namespaces to the server.
>
> I am using
> Orbeon Forms dev-3.7.1.200905272119
>
> The submission that I am using
>
> <xf:submission id="put"
>  ref="instance('passwordInstance')/request/subject"
>  resource="{xxf:bind('base')}/subjects/{xxf:bind('uniqueidParam')}/password/change"
> omit-xml-declaration="true"
> xxf:exclude-result-prefixes="f ev xxi xi foaf xlink xs rdf widget xf xxf"
>  includenamespaceprefixes=""
>  method="put" replace="none" instance="passwordInstance" f:url-norewrite="true"
>>
>
> What gets sent to the server is the following
>
> <subject xmlns:f="http://orbeon.org/oxf/xml/formatting"
> xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
> xmlns:xi="http://www.w3.org/2001/XInclude"
> xmlns:ev="http://www.w3.org/2001/xml-events"
> xmlns:xf="http://www.w3.org/2002/xforms"
> xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
> ...
>
> Thanks in advance,
>
> Andy Bailey
>
> http://www.hazlorealidad.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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: exclude-result-prefixes #all in a submission (or includenamespaceprefixes none)

Erik Bruchez-3
Andy,

This attribute, I think, only affects inline instances, not instances
loaded by @src or by submissions.

-Erik

On Mon, Sep 28, 2009 at 8:15 PM, Andrew Bailey <[hidden email]> wrote:

> Ok I figured it out.
>
> You need to put the exclude result prefixes on the instance, I had
> assumed that it was on the submission.
>
> <xf:instance id="passwordInstance" xmlns="" xxf:exclude-result-prefixes="#all">
>
> It is a bit weird that the omit xml declaration is on the submission
> and the namespace exclude on the instance.
>
> Andy Bailey
>
> http://www.hazlorealidad.com
>
> On Mon, Sep 28, 2009 at 3:07 PM, Andrew Bailey <[hidden email]> wrote:
>> In a submission I need to omit the xml declaration and the namespaces,
>> as the server side software has a broken xml parser (that I cant fix).
>>
>> I tried xxf:exclude-result-prefixes="#all"
>>
>> however it doesnt work, the namespaces still get submitted
>> next I tried using a space separated list, as you would for xslt, but
>> the namespaces still get submitted
>>
>> I also tried  includenamespaceprefixes="" (does this attribute exist in orbeon?)
>>
>> Can anyone please explain how to avoid sending the namespaces to the server.
>>
>> I am using
>> Orbeon Forms dev-3.7.1.200905272119
>>
>> The submission that I am using
>>
>> <xf:submission id="put"
>>  ref="instance('passwordInstance')/request/subject"
>>  resource="{xxf:bind('base')}/subjects/{xxf:bind('uniqueidParam')}/password/change"
>> omit-xml-declaration="true"
>> xxf:exclude-result-prefixes="f ev xxi xi foaf xlink xs rdf widget xf xxf"
>>  includenamespaceprefixes=""
>>  method="put" replace="none" instance="passwordInstance" f:url-norewrite="true"
>>>
>>
>> What gets sent to the server is the following
>>
>> <subject xmlns:f="http://orbeon.org/oxf/xml/formatting"
>> xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>> xmlns:xi="http://www.w3.org/2001/XInclude"
>> xmlns:ev="http://www.w3.org/2001/xml-events"
>> xmlns:xf="http://www.w3.org/2002/xforms"
>> xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
>> ...
>>
>> Thanks in advance,
>>
>> Andy Bailey
>>
>> http://www.hazlorealidad.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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


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