xxforms:choose - passed unchanged to browser

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

xxforms:choose - passed unchanged to browser

Tanya Gray (Oxford)
Hello,

I have the following code in my xsl file:

  <xxforms:choose>
                    <xxforms:when test="1 != 2" >
                        <tr><td colspan="2">aaa</td></tr>
                    </xxforms:when>
</xxforms:choose>

The code is passed unchanged to the browser. The *xforms* elements in the xsl file are translated to HTML/Javascript etc correctly, and  I understood that *xxforms* elements are translated server-side too.

Is there an explanation for the code being passed to the browser unchanged? Is it a bug, or is there something else I should include in the xsl file? The xxforms namespace is declared in the <html> tag.

Here is the relevant code from page-flow.xml
<page ...>
<action when="/form/action = 'ng'" action="summary/ng.xpl">
                       <result page="detail-generic" transform="oxf:xslt">
                           <form xsl:version="2.0" xmlns="">
                               <document-id><xsl:value-of select="doc('input:action')/document-info/document-id"/></document-id>
                               <document><xsl:copy-of select="doc('input:action')/document-info/document/*"/></document>
                               
                           </form>
                       </result>
                   </action>
</page>


   <!-- GENERIC INPUT FORM -->
    <page id="detail-generic" path-info="/migs/detail-generic" view="detail/detail-view-generic.xsl">
     
        </page>

thank you for any assistance
Tanya

 




 














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

Re: xxforms:choose - passed unchanged to browser

Alessandro  Vernet
Administrator
Hi Tanya,

<xxforms:choose> was an extension of XForms that we introduced in the
past and that we don't support anymore as you can now do the same
thing with standard XForms. Here is how you can do that:

Pick some node in the instance, add an <xforms:bind nodeset="point to
that node" relevant="your XPath expression"> and replace de
<xxforms:choose><xxforms:when> with an <xforms:group ref="point to the
that node">. When the node is non-relevant according to your XPath
expression, the content of the <xforms:group> won't be displayed.

Alex

On 11/3/05, Tanya Gray <[hidden email]> wrote:

> Hello,
>
> I have the following code in my xsl file:
>
>   <xxforms:choose>
>                     <xxforms:when test="1 != 2" >
>                         <tr><td colspan="2">aaa</td></tr>
>                     </xxforms:when>
> </xxforms:choose>
>
> The code is passed unchanged to the browser. The *xforms* elements in the xsl file are translated to HTML/Javascript etc correctly, and  I understood that *xxforms* elements are translated server-side too.
>
> Is there an explanation for the code being passed to the browser unchanged? Is it a bug, or is there something else I should include in the xsl file? The xxforms namespace is declared in the <html> tag.
>
> Here is the relevant code from page-flow.xml
> <page ...>
> <action when="/form/action = 'ng'" action="summary/ng.xpl">
>                        <result page="detail-generic" transform="oxf:xslt">
>                            <form xsl:version="2.0" xmlns="">
>                                <document-id><xsl:value-of select="doc('input:action')/document-info/document-id"/></document-id>
>                                <document><xsl:copy-of select="doc('input:action')/document-info/document/*"/></document>
>
>                            </form>
>                        </result>
>                    </action>
> </page>
>
>
>    <!-- GENERIC INPUT FORM -->
>     <page id="detail-generic" path-info="/migs/detail-generic" view="detail/detail-view-generic.xsl">
>
>         </page>
>
> thank you for any assistance
> Tanya
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet