Namespace handling in xf:bind element

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

Namespace handling in xf:bind element

akmishra


I was trying to store  XML with proper namespace in database.
So I am binding element with section control as given below.
When I run the the form it shows nothing.

Does binding support namespace prefix or there is something that need to
see.
Please suggest.


 <xf:model id="fr-form-model" xxf:expose-xpath-types="true"
xxf:analysis.calculate="true">
            <xf:instance id="fr-form-instance"
xxf:exclude-result-prefixes="#all" xxf:index="id">
                <item xmlns:a="http://www.namespace.com">
                  <a:name></a:name>
               </item>
           <xf:bind id="a:name-bind" ref="a:name">
                   
              </xf:bind>

<xh:body>
        <fr:view>
            <fr:body xmlns:p="http://www.orbeon.com/oxf/pipeline"
xmlns:xbl="http://www.w3.org/ns/xbl"
                     xmlns:oxf="http://www.orbeon.com/oxf/processors">
                <fr:section id="a:name-bind-section" bind="a:name-bind">
              </fr:section>
            </fr:body>
        </fr:view>
    </xh:body>
</xh:html>
</xf:model>

Thanks

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Namespace handling in xf:bind element

Alessandro  Vernet
Administrator
Hi AK,

We're calling what you're trying to do a "custom XML data model". You can
find more about it in the RFE linked below, but at this point we have no
plan of supporting this, and instead would recommend you embrace the format
produced out-of-the-box by Form Builder, and then transform this format into
whatever you need, say using XSLT, in a service you provide that Orbeon
Forms can call when users submit data. Would something like this work for
you?

https://github.com/orbeon/orbeon-forms/issues/1233

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Namespace handling in xf:bind element

Alessandro  Vernet
Administrator
AK, just wondering: is using XSLT as suggested in my previous message
something that could work for you?

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Namespace handling in xf:bind element

akmishra
Hi Alex,

Sorry for rate reply.
I am able to manage it by defining the name space prefix in <xh:html> tag.
Now it is working.
But still not sure about how to run XSLT in background.
Could you please guide which settings or configurations required.



--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Namespace handling in xf:bind element

Alessandro  Vernet
Administrator
Hi AK,

I was referring to using `send()` in the process you have when users click on your "Save" or "Submit", and have this send the XML produced by Orbeon Forms to a service you implement that uses XSLT to transform the data the way you want. You can implement that service the way you want to run XSLT: it can be using JSP, PHP, .NET, or whatever technology your feel most comfortable with.

-Alex

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet