<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	exclude-result-prefixes="xsl xhtml xalan"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xhtml="http://www.w3.org/1999/xhtml"
	xmlns:xalan="http://xml.apache.org/xalan">

	<xsl:output method="xml" indent="yes"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
		doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
		media-type="text/html" encoding="UTF-8"
		omit-xml-declaration="yes" xml:lang="fr" xml:space="preserve" />

	<!-- FICHIERS INCLUDE UTILISEES   -->
	<xsl:template name="user-habilitation">
	<!-- Template avec xPath (ancien mode) -->
		<!-- Presentation generale Rubrique Habilitation -->
		<h2><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libHabilitation'"/></xsl:call-template></h2>
		<!-- Presentation sous rubrique Habilitation/habiliId numero d'habilitation -->
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libNumHabilitation'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationHabiliID"/></p>
		<!-- Presentation sous rubrique Habilitation/legalRef numero d'habilitation -->
		<xsl:call-template name="tHabilitationLegalRef"/>
		<!-- Presentation sous rubrique Habilitation/habiliObject mention -->
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libMention'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationHabiliObject"/></p>
		<!-- Presentation sous rubrique Habilitation type de diplome -->
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libTypeDiplome'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationDiplomaType"/></p>
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libOrganisation'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationOrganization"/></p>
		<!-- Presentation sous rubrique Habilitation/champ -->
		<h3><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libChampHabilitation'"/></xsl:call-template></h3>
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libMention'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationFieldFieldNameFree"/></p>
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libFinaliteMention'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationFieldFieldPurpose"/></p>
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libDomainePrincipal'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationFieldFieldPrimaryDomainName"/></p>
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libDomaineSecondaire'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationFieldFieldOtherDomainName"/></p>
		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libDateRenouvellement'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationFieldFieldFieldTimingInfoRenewalDateDate"/></p>

		<p><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libSpecialite'"/></xsl:call-template>
		<xsl:call-template name="tHabilitationFieldSpeciality"/></p>
		
		<!-- Presentation du cas particulier sous rubrique habilitation/licence PRO -->
		<xsl:if test="key('objet',$idP)/habilitation/licProNatName">
			<xsl:apply-templates select="key('objet',$idP)/habilitation/licProNatName"/>
		</xsl:if>
		<!-- Presentation sous rubrique habilitation/contexteEtEnjeux -->
		<xsl:apply-templates select="key('objet',$idP)/habilitation/contexteEtEnjeux"/>
		<!-- Presentation sous rubrique habilitation/habiliRequest -->
		<xsl:apply-templates select="key('objet',$idP)/habilitation/habiliRequest"/>
		<!-- Presentation sous rubrique habilitation/cohabilitation -->
		<h3><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libCohabilitation'"/></xsl:call-template></h3>
		<xsl:apply-templates select="key('objet',$idP)/habilitation/cohabilitation"/>
		<!-- Presentation sous rubrique habilitation/programme de reference -->
		<xsl:if test="count(key('objet',$idP)/habilitation/habiliObject/refProgram/@ref) &gt;0">
			<h3><xsl:call-template name="tCommunGestionLibelle"><xsl:with-param name="pIdent" select="'libRefProgramHabilitation'"/></xsl:call-template></h3>
			<ul>
				<xsl:apply-templates select="key('objet',$idP)/habilitation/habiliObject/refProgram"/>
			</ul>
		</xsl:if>
		<!-- Presentation sous rubrique habilitation/partenariat -->
		<xsl:apply-templates select="key('objet',$idP)/habilitation/partnership"/>
		<!-- Presentation sous rubrique habilitation/equivalence -->
		<xsl:apply-templates select="key('objet',$idP)/habilitation/equivalence"/>
		<!-- Presentation sous rubrique habilitation/i13nProg -->
		<xsl:apply-templates select="key('objet',$idP)/habilitation/i13nProg"/>
		<!-- Presentation sous rubrique habilitation/relatedPrograms -->
		<xsl:apply-templates select="key('objet',$idP)/habilitation/relatedPrograms"/>	
	</xsl:template>
</xsl:stylesheet>