Page Flow Result issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Page Flow Result issue

stacyladnier
With the following pageflow, how can I get the value of username in the result of the id="source" page to be matcher-group 1 value instead of 'orbeon'?

<page id="source" path-info="/user/([^/]+)\/blog/add" matcher="oxf:perl5-matcher" default-submission="parameters.xml">
    <setvalue ref="/parameters/dbpath" matcher-group="1"/>
    <action>
        <result page="destination" transform="oxf:xslt">
            <form xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
                <username>orbeon</username>
            </form>
        </result>
    </action>
</page>
<page id="destination" path-info="/user/([^/]+)\/blog" matcher="oxf:perl5-matcher" view="blogs/${1}/blog.xhtml">
    <setvalue ref="/form/username" matcher-group="1"/>
</page>