<axsl:stylesheet xmlns:xx="http://xml.sandre.eaufrance.fr/scenario/referentiel/2" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:axsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><axsl:output method="text" omit-xml-declaration="no" standalone="yes" indent="yes"/><axsl:template match="*|@*" mode="schematron-get-full-path"><axsl:apply-templates select="parent::*" mode="schematron-get-full-path"/><axsl:text>/</axsl:text><axsl:if test="count(. | ../@*) = count(../@*)">@</axsl:if><axsl:value-of select="name()"/><axsl:text>[</axsl:text><axsl:value-of select="1+count(preceding-sibling::*[name()=name(current())])"/><axsl:text>]</axsl:text></axsl:template><axsl:template match="/"><axsl:apply-templates select="/" mode="M1"/></axsl:template>
    
    <!--VERIFICATION DES CODES DOUBLONS INTERVENANT-->
    <!--<axsl:template match="/xx:REFERENTIELS/xx:Referentiel/xx:UniteReference[(./xx:StIntervenant='Validé') and (preceding::xx:UniteReference[./xx:StIntervenant='Validé']/xx:CdUniteReference = xx:CdUniteReference)]" priority="3996" mode="M1">--><axsl:key name="UniteReferences" match="xx:UniteReference" use="xx:CdUniteReference"/><axsl:template match="/xx:REFERENTIELS/xx:Referentiel/xx:UniteReference[ not(generate-id() = generate-id(key('UniteReferences', xx:CdUniteReference)[1]))]" priority="3996" mode="M1"><axsl:text>CdUniteReference '</axsl:text><axsl:value-of select="./xx:CdUniteReference/text()"/> (<axsl:value-of select="./xx:StUniteReference/text()"/>)<axsl:text>' est un doublon.
        </axsl:text></axsl:template><axsl:template match="text()" priority="-1" mode="M1"/><axsl:template match="text()" priority="-1"/></axsl:stylesheet>