Re: Xform error in xf:trigger orbeon 4 rc1

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

Re: Xform error in xf:trigger orbeon 4 rc1

Erik Bruchez
Administrator
In 4.0, we have standardized on short namespace prefixes:

- xh instead of xhtml
- xf instead of xforms
- xxf instead of xxforms

With this changes it works for me.

-Erik

On Wed, Feb 20, 2013 at 6:27 AM, r.pecori <[hidden email]> wrote:

> Hi
>
> I am trying to set up a trigger for hiding/showing sections according to
> what is said in this page:
> http://wiki.orbeon.com/forms/how-to/fb-fr/form-builder-wizard.
>
> Following the wiki I tried to insert the following code in my form (Edit
> Source in Form Builder) under </fr:body>:
>
> <fr:buttons>
>     <xf:trigger xxforms:modal="true"
>                ref=".[instance('fr-form-instance')/internal/part !=
> 'confirmation']">
>         <xforms:label>
>             <xhtml:img width="16" height="16"
>                        src="/apps/fr/style/images/pixelmixer/right_16.png"
> alt=""/>
>             <xhtml:span>Next</xhtml:span>
>         </xforms:label>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('fr-form-instance')/internal/part"
>                          value="
>                              if (. = 'personal') then
>                                  if
> (instance('fr-form-instance')/personal/need-hotel = 'true')
>                                  then 'hotel' else 'confirmation'
>                              else if (. = 'hotel') then
>                                  'confirmation'
>                              else ''"/>
>     </xf:trigger>
> </fr:buttons>
>
> but I get the following error in the editor: 'Please make sure the content
> is well-formed XML'.
>
> I do not know where is the error: some namespaces missing?
> The ones on top of my form are the following:
>
> xmlns:xh="http://www.w3.org/1999/xhtml"
>          xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>          xmlns:saxon="http://saxon.sf.net/"
>          xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
>          xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
>          xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
>          xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>          xmlns:exf="http://www.exforms.org/exf/1-0"
>          xmlns:oxf="http://www.orbeon.com/oxf/processors"
>          xmlns:sql="http://orbeon.org/oxf/xml/sql"
>          xmlns:ev="http://www.w3.org/2001/xml-events"
>          xmlns:xi="http://www.w3.org/2001/XInclude"
>          xmlns:p="http://www.orbeon.com/oxf/pipeline"
>          xmlns:xs="http://www.w3.org/2001/XMLSchema"
>          xmlns:odt="http://orbeon.org/oxf/xml/datatypes"
>          xmlns:xf="http://www.w3.org/2002/xforms"
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xmlns:xpl="java:org.orbeon.oxf.pipeline.api.FunctionLibrary"
>
> thank you in advance
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Xform-error-in-xf-trigger-orbeon-4-rc1-tp4656272.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
Reply | Threaded
Open this post in threaded view
|

Re: Xform error in xf:trigger orbeon 4 rc1

Erik Bruchez
Administrator
By the way, we already have a new wizard view in 4.0:

http://blog.orbeon.com/2012/12/form-runner-wizard-view.html

It's does no necessarily offer all you would want from a "wizard"
(breadcrumb, not allowing skipping if conditions are not met, etc.),
but it's already useful in many cases.

-Erik

On Thu, Feb 21, 2013 at 4:44 PM, Erik Bruchez <[hidden email]> wrote:

> In 4.0, we have standardized on short namespace prefixes:
>
> - xh instead of xhtml
> - xf instead of xforms
> - xxf instead of xxforms
>
> With this changes it works for me.
>
> -Erik
>
> On Wed, Feb 20, 2013 at 6:27 AM, r.pecori <[hidden email]> wrote:
>> Hi
>>
>> I am trying to set up a trigger for hiding/showing sections according to
>> what is said in this page:
>> http://wiki.orbeon.com/forms/how-to/fb-fr/form-builder-wizard.
>>
>> Following the wiki I tried to insert the following code in my form (Edit
>> Source in Form Builder) under </fr:body>:
>>
>> <fr:buttons>
>>     <xf:trigger xxforms:modal="true"
>>                ref=".[instance('fr-form-instance')/internal/part !=
>> 'confirmation']">
>>         <xforms:label>
>>             <xhtml:img width="16" height="16"
>>                        src="/apps/fr/style/images/pixelmixer/right_16.png"
>> alt=""/>
>>             <xhtml:span>Next</xhtml:span>
>>         </xforms:label>
>>         <xforms:setvalue ev:event="DOMActivate"
>> ref="instance('fr-form-instance')/internal/part"
>>                          value="
>>                              if (. = 'personal') then
>>                                  if
>> (instance('fr-form-instance')/personal/need-hotel = 'true')
>>                                  then 'hotel' else 'confirmation'
>>                              else if (. = 'hotel') then
>>                                  'confirmation'
>>                              else ''"/>
>>     </xf:trigger>
>> </fr:buttons>
>>
>> but I get the following error in the editor: 'Please make sure the content
>> is well-formed XML'.
>>
>> I do not know where is the error: some namespaces missing?
>> The ones on top of my form are the following:
>>
>> xmlns:xh="http://www.w3.org/1999/xhtml"
>>          xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>>          xmlns:saxon="http://saxon.sf.net/"
>>          xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
>>          xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
>>          xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
>>          xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>>          xmlns:exf="http://www.exforms.org/exf/1-0"
>>          xmlns:oxf="http://www.orbeon.com/oxf/processors"
>>          xmlns:sql="http://orbeon.org/oxf/xml/sql"
>>          xmlns:ev="http://www.w3.org/2001/xml-events"
>>          xmlns:xi="http://www.w3.org/2001/XInclude"
>>          xmlns:p="http://www.orbeon.com/oxf/pipeline"
>>          xmlns:xs="http://www.w3.org/2001/XMLSchema"
>>          xmlns:odt="http://orbeon.org/oxf/xml/datatypes"
>>          xmlns:xf="http://www.w3.org/2002/xforms"
>>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>          xmlns:xpl="java:org.orbeon.oxf.pipeline.api.FunctionLibrary"
>>
>> thank you in advance
>>
>>
>>
>> --
>> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Xform-error-in-xf-trigger-orbeon-4-rc1-tp4656272.html
>> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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