<?xml version="1.0"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx">
    <sdx:page langSession="lang" langParam="lang">
        <sdx:logout/>
        <sdx:userIsAdminOrSu>
            <bar>
                <button id="welcome" href="index.xsp" self="true"/>
                <button id="logout" href="index.xsp">
                    <parameter name="logout" value="true"/>
                </button>
            </bar>
            <sdx:fallback>
                <bar>
                    <button id="welcome" href="index.xsp" self="true"/>
                </bar>
            </sdx:fallback>
        </sdx:userIsAdminOrSu>
        <applications>
            <xsp:logic>
				String id;
				if(sdx_frame.getApplicationIds()!=null){
					for (java.util.Enumeration e=sdx_frame.getApplicationIds(); e.hasMoreElements();)
					{
						id=(String)e.nextElement();
						<application>
							<xsp:attribute name="id"><xsp:expr>id</xsp:expr></xsp:attribute>
							<xsp:attribute name="name"><xsp:expr>id</xsp:expr></xsp:attribute>
							<xsp:attribute name="path"><xsp:expr>sdx_frame.getApplicationById(id).getPath()</xsp:expr></xsp:attribute>
						</application>
						<!-- TODO : application.toSax() -->
					}
				}
            </xsp:logic>
        </applications>
    </sdx:page>
</xsp:page>
