xquery illegal character in xforms submission

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

xquery illegal character in xforms submission

brian_steuhl-2

I am using REST submission to eXist and in the xquery within the action
attribute of the xforms:submission I have
http://localhost:8600/exist/rest/db/?_query=for $x in
distinct-values(doc('mcc.xml')/Import/Row/Section) return
<Section>{$x}</Section>".  

Orbeon complains and returns error: The value of attribute "action" associated
with an element type "xforms:submission" must not contain the '<' character.

How do I pass an xquery in REST with <> characters.  If I use $lt; and $gt;
then eXist complains.  Thanks.


--
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: xquery illegal character in xforms submission

Alessandro Vernet
Administrator
Brian,

On Mar 26, 2008, at 10:05 AM, [hidden email] wrote:

>
> I am using REST submission to eXist and in the xquery within the  
> action
> attribute of the xforms:submission I have
> http://localhost:8600/exist/rest/db/?_query=for $x in
> distinct-values(doc('mcc.xml')/Import/Row/Section) return
> <Section>{$x}</Section>".
>
> Orbeon complains and returns error: The value of attribute "action"  
> associated
> with an element type "xforms:submission" must not contain the '<'  
> character.
>
> How do I pass an xquery in REST with <> characters.  If I use $lt;  
> and $gt;
> then eXist complains.  Thanks.

Instead of <Section>{$x}</Section> write element name {{ $x }}.

The double curly braces are there for escaping, otherwise they will be  
seen as an AVT in XForms, and the XForms engine will look for a  
variable $x.

Alex

--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.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: xquery illegal character in xforms submission

brian_steuhl-2

Thanks.  Worked perfectly.  I also added passing a variable from instance from
another select1 control and I am getting the expected result.  My only follwo
up is that in the sandbox, I am not getting all the values in the DropDown
(select1).  I will post a new question so if other users have similiar question
they can find it in a new subject heading.  Thanks again for your assistance.
This little solution is really big for our porject.


--
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