how to use transform="oxf:xslt" in page-flow

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

how to use transform="oxf:xslt" in page-flow

julien-29
Hello,
 
In my page-flow I want to use the transform="oxf:xslt" to transfer instance on my second page.
I define my page-flow like this :

<?xml version="1.0" encoding="iso-8859-1"?>
<config xmlns="
http://www.orbeon.com/oxf/controller"
        xmlns:xu="
http://www.xmldb.org/xupdate"
        xmlns:oxf="
http://www.orbeon.com/oxf/processors"
        xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
   
    <page id="tryptique_page1" path-info="/tryptique-asso/"  default-submission="tryptique/xforms-model.xml" view="tryptique/view_page1.xsl">
       
        <action when="/form/action = 'EtapeSuivante'" >
            <result page="tryptique_page2" transform="oxf:xslt">
    
                    <form xsl:version="2.0" >
                         <xsl:copy-of select="doc('input:instance')/form/*"/>
                    </form>
                      
             </result>
          </action>
    </page>
    <page id="tryptique_page2" path-info="/tryptique-asso/page2" view="tryptique/view_page2.xsl"/>
    <epilogue url="oxf:/config/epilogue.xpl"/>
</config>
 
But when I submit my first page , it happens nothing, ie my page is submitted, the url becomes  : http://localhost:8090/guichetUniqueSubvention/xforms-server-submit
but no page is displayed, there isn't the error page of orbeon, Internet explorer display (in french):
 
"Impossible d'afficher la page...."
 
the same message if you try to access to internet but you don't have a connection...
 
I am required to change my page flow like that :
 
<action when="/form/action = 'EtapeSuivante'" > 
   <result page="tryptique_page2" transform="oxf:xslt">
        <xsl:stylesheet version="2.0">
             <xsl:template match="node()">
                  <xsl:copy>
                   <xsl:apply-templates/>
                 </xsl:copy>
             </xsl:template>
         </xsl:stylesheet>
    </result>
 </action>
 
It runs, but all the attributes of my node are delete.
Could you help me ?
 


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



--
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: how to use transform="oxf:xslt" in page-flow

Alessandro Vernet
Administrator
Julien,

On 10/30/07, Bittard, Julien <[hidden email]> wrote:

> But when I submit my first page , it happens nothing, ie my page is
> submitted, the url becomes  :
> http://localhost:8090/guichetUniqueSubvention/xforms-server-submit
> but no page is displayed, there isn't the error page of orbeon, Internet
> explorer display (in french):
>
> "Impossible d'afficher la page...."
>
> the same message if you try to access to internet but you don't have a
> connection...
This may happen if you are going from one page to the next with a
"redirect" instead of a "forward". The "redirect" will pass the
instance on the URL. This can lead to very long URLs, which are not
supported well by IE.

For more on redirect vs. forward, see:
http://www.orbeon.com/ops/doc/reference-page-flow#internal-xml-submissions

You can try to switch to a forward by changing your properties.xml,
more locally in the page-flow.xml, or even more locally on the
<result> element.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.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: how to use transform=

julien-29
Yes it is the problem.
I change the propertie to "forward" and now it's ok.
thank you for your response.


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