the reference to entity "q" must end with the ';' delimiter.

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

the reference to entity "q" must end with the ';' delimiter.

ilango_g
Hi
This is the error I get on an xforms:submission for the code below:

<xforms:submission id="submit" action="http://www.google.com/search?
                                hl=en&q={instance('DataResponse')/fe:q}&amp;btnG=Search" method="get"  
                                        replace="instance" instance="all" separator="&amp;">
                                                <xforms:toggle case="busy" ev:event="xforms-submit" />
                               <xforms:toggle case="submit-error" ev:event="xforms-submit-error" />
                               <xforms:toggle case="done" ev:event="xforms-submit-done" />
                                </xforms:submission>       

and the below is my instance:
<xforms:instance id="DataResponse">
                <fe:mdj>
                                        <fe:ID/>
                                        <fe:q/>
                                </fe:mdj>
         </xforms:instance>

---
If I were to use AVTs what would be the right way to avoid the above error?

Reply | Threaded
Open this post in threaded view
|

Re: the reference to entity "q" must end with the ';' delimiter.

ilango_g
As a reply to my own question earlier, I have solved the problem with the URL. I had simply missed a "amp; " after the & sign.


ilango_g wrote
Hi
This is the error I get on an xforms:submission for the code below:

<xforms:submission id="submit" action="http://www.google.com/search?
                                hl=en&q={instance('DataResponse')/fe:q}&amp;btnG=Search" method="get"  
                                        replace="instance" instance="all" separator="&amp;">
                                                <xforms:toggle case="busy" ev:event="xforms-submit" />
                               <xforms:toggle case="submit-error" ev:event="xforms-submit-error" />
                               <xforms:toggle case="done" ev:event="xforms-submit-done" />
                                </xforms:submission>       

and the below is my instance:
<xforms:instance id="DataResponse">
                <fe:mdj>
                                        <fe:ID/>
                                        <fe:q/>
                                </fe:mdj>
         </xforms:instance>

---
If I were to use AVTs what would be the right way to avoid the above error?