<!--
    Copyright (C) 2004 Orbeon, Inc.
  
    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.
  
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.
  
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<example-descriptor>
    <title>ATM Page Flow</title>
    <xi:include href="example-descriptor-files.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
    <description xmlns:f="http://orbeon.org/oxf/xml/formatting">
        <div xmlns="http://www.w3.org/1999/xhtml">
            <p>
                This example shows how to declare the site navigation logic in the Page Flow
                Controller configuration. This way the site navigation logic is kept separate from the
                pages themselves, thus achieving a better separation of concerns.
            </p>
            <p>
                This example emulates a very simple ATM machine. The diagram on the right exposes the
                logic of the ATM. Each page in this application is extremely simple and the interesting
                part lies in the navigation logic between pages.
            </p>
            <p>
                See the <a href="/goto-source/atm/page-flow.xml" f:url-type="resource">Page
                Flow Controller configuration</a> for this example.
            </p>
            <table border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="text-align: center">
                        <img src="/examples/atm/site-navigation.png" style="padding: 0.5em 1em" width="366" height="439"/>
                    </td>
                </tr>
                <tr>
                    <td style="font-style: italic; text-align: center">
                        Navigation logic in the ATM application
                    </td>
                </tr>
            </table>
        </div>
    </description>
</example-descriptor>
