<xsl:stylesheet xmlns:mat="http://owl.sandre.eaufrance.fr/mat/2#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:fct_assain="http://xml.sandre.eaufrance.fr/scenario/fct_assain/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pmo="http://owl.sandre.eaufrance.fr/pmo/1.2#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:odp="http://owl.sandre.eaufrance.fr/odp/1.1#" version="1.0"><xsl:output method="xml" omit-xml-declaration="no" indent="yes"/><xsl:template match="/"><xsl:text disable-output-escaping="yes">
		
		

			<!--Déclaration de DTD-->
 &lt;!DOCTYPE rdf:RDF [
 &lt;!ENTITY owl "http://www.w3.org/2002/07/owl#" &gt;
      &lt;!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" &gt;
     &lt;!ENTITY xml "http://www.w3.org/XML/1998/namespace" &gt;
     &lt;!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" &gt;
     &lt;!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" &gt;
    &lt;!ENTITY fct_assain "http://owl.sandre.eaufrance.fr/scenario/fct_assain/3#" &gt;
    &lt;!ENTITY mat "http://owl.sandre.eaufrance.fr/mat/2#" &gt;
    &lt;!ENTITY odp "http://owl.sandre.eaufrance.fr/odp/1.1#" &gt;
        &lt;!ENTITY pmo "http://owl.sandre.eaufrance.fr/pmo/1.2#" &gt;
  ]&gt;




</xsl:text>
		<!--BALISE RACINE--><rdf:RDF>    

			<!--<xsl:call-template name="grammaire"/>--><xsl:call-template name="Scenario"/><xsl:call-template name="OuvrageDepollution"/><xsl:call-template name="PointMesure"/><xsl:call-template name="Prelevement"/><xsl:call-template name="Analyse"/></rdf:RDF></xsl:template><xsl:variable name="odp">http://owl.sandre.eaufrance.fr/odp/1.1#</xsl:variable><xsl:variable name="pmo">http://owl.sandre.eaufrance.fr/pmo/1.2#</xsl:variable><xsl:variable name="mat">http://owl.sandre.eaufrance.fr/mat/2#</xsl:variable><xsl:template name="Scenario">
		<!--INSTANCES DES UNITES DE MESURE --><xsl:for-each select="fct_assain:FctAssain/fct_assain:Scenario"><rdf:Description><xsl:attribute name="rdf:about"><xsl:value-of select="concat($mat,./fct_assain:Emetteur/fct_assain:CdIntervenant,'/',./fct_assain:DateCreationFichier)"/></xsl:attribute><rdf:type><xsl:attribute name="rdf:resource"><xsl:value-of select="concat($mat,'Message')"/></xsl:attribute></rdf:type><mat:APourEmetteur><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/int/',./fct_assain:Emetteur/fct_assain:CdIntervenant)"/></xsl:attribute></mat:APourEmetteur><xsl:if test="./fct_assain:Destinataire"><mat:APourDestinataire><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/int/',./fct_assain:Destinataire/fct_assain:CdIntervenant)"/></xsl:attribute></mat:APourDestinataire></xsl:if><xsl:for-each select="//fct_assain:FctAssain/fct_assain:OuvrageDepollution"><mat:APourOuvrageDepollution><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/odp/',./fct_assain:CdOuvrageDepollution)"/></xsl:attribute></mat:APourOuvrageDepollution></xsl:for-each><mat:APourScenario rdf:resource="http://id.eaufrance.fr/scn/fct_assain/3"/></rdf:Description></xsl:for-each></xsl:template><xsl:template name="OuvrageDepollution"><xsl:for-each select="//fct_assain:FctAssain/fct_assain:OuvrageDepollution"><rdf:Description><xsl:attribute name="rdf:about"><xsl:value-of select="concat('http://id.eaufrance.fr/odp/',./fct_assain:CdOuvrageDepollution)"/></xsl:attribute><rdf:type><xsl:attribute name="rdf:resource"><xsl:value-of select="concat($odp,'OuvrageDepollution')"/></xsl:attribute></rdf:type><odp:CdOuvrageDepollution><xsl:value-of select="./fct_assain:CdOuvrageDepollution"/></odp:CdOuvrageDepollution><xsl:for-each select="./fct_assain:PointMesure"><odp:APourPointMesure><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/pdm/',../fct_assain:CdOuvrageDepollution,'/',./fct_assain:NumeroPointMesure)"/></xsl:attribute></odp:APourPointMesure></xsl:for-each></rdf:Description></xsl:for-each></xsl:template><xsl:template name="PointMesure"><xsl:for-each select="//fct_assain:FctAssain/fct_assain:OuvrageDepollution/fct_assain:PointMesure"><rdf:Description><xsl:attribute name="rdf:about"><xsl:value-of select="concat('http://id.eaufrance.fr/pdm/',ancestor::fct_assain:OuvrageDepollution/fct_assain:CdOuvrageDepollution,'/',./fct_assain:NumeroPointMesure)"/></xsl:attribute><rdf:type><xsl:attribute name="rdf:resource"><xsl:value-of select="concat($pmo,'PointMesure')"/></xsl:attribute></rdf:type><xsl:for-each select="./fct_assain:Prlvt"><pmo:APourPrelevement><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/prl/',ancestor::fct_assain:OuvrageDepollution/fct_assain:CdOuvrageDepollution,'/',../fct_assain:NumeroPointMesure,'/',./fct_assain:DatePrlvt)"/></xsl:attribute></pmo:APourPrelevement></xsl:for-each><pmo:NumeroPointMesure><xsl:value-of select="./fct_assain:NumeroPointMesure"/></pmo:NumeroPointMesure><pmo:LbPointMesure><xsl:value-of select="./fct_assain:LbPointMesure"/></pmo:LbPointMesure><pmo:LocGlobalePointMesure><xsl:value-of select="./fct_assain:LocGlobalePointMesure"/></pmo:LocGlobalePointMesure></rdf:Description></xsl:for-each></xsl:template><xsl:template name="Prelevement"><xsl:for-each select="//fct_assain:FctAssain/fct_assain:OuvrageDepollution/fct_assain:PointMesure/fct_assain:Prlvt"><rdf:Description><xsl:attribute name="rdf:about"><xsl:value-of select="concat('http://id.eaufrance.fr/prl/',ancestor::fct_assain:OuvrageDepollution/fct_assain:CdOuvrageDepollution,'/',../fct_assain:NumeroPointMesure,'/',./fct_assain:DatePrlvt)"/></xsl:attribute><rdf:type><xsl:attribute name="rdf:resource"><xsl:value-of select="concat($pmo,'Prlvt')"/></xsl:attribute></rdf:type><xsl:for-each select="./fct_assain:Analyse"><pmo:APourAnalyse><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/ana/',ancestor::fct_assain:OuvrageDepollution/fct_assain:CdOuvrageDepollution,'/',ancestor::fct_assain:PointMesure/fct_assain:NumeroPointMesure,'/',ancestor::fct_assain:Prlvt/fct_assain:DatePrlvt,'/',./fct_assain:Parametre/fct_assain:CdParametre,'/',./fct_assain:InSituAnalyse,'/',./fct_assain:FinaliteAnalyse)"/></xsl:attribute></pmo:APourAnalyse></xsl:for-each><pmo:DatePrlvt><xsl:value-of select="./fct_assain:DatePrlvt"/></pmo:DatePrlvt><pmo:APourSupport><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/sup/',./fct_assain:Support/fct_assain:CdSupport)"/></xsl:attribute></pmo:APourSupport></rdf:Description></xsl:for-each></xsl:template><xsl:template name="Analyse"><xsl:for-each select="//fct_assain:FctAssain/fct_assain:OuvrageDepollution/fct_assain:PointMesure/fct_assain:Prlvt/fct_assain:Analyse"><rdf:Description><xsl:attribute name="rdf:about"><xsl:value-of select="concat('http://id.eaufrance.fr/ana/',ancestor::fct_assain:OuvrageDepollution/fct_assain:CdOuvrageDepollution,'/',ancestor::fct_assain:PointMesure/fct_assain:NumeroPointMesure,'/',ancestor::fct_assain:Prlvt/fct_assain:DatePrlvt,'/',./fct_assain:Parametre/fct_assain:CdParametre,'/',./fct_assain:InSituAnalyse,'/',./fct_assain:FinaliteAnalyse)"/></xsl:attribute><rdf:type><xsl:attribute name="rdf:resource"><xsl:value-of select="concat($pmo,'Analyse')"/></xsl:attribute></rdf:type><pmo:APourParametre><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/par/',./fct_assain:Parametre/fct_assain:CdParametre)"/></xsl:attribute></pmo:APourParametre><pmo:APourUniteMesure><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/udm/',./fct_assain:UniteMesure/fct_assain:CdUniteMesure)"/></xsl:attribute></pmo:APourUniteMesure><pmo:APourFractionAnalysee><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('http://id.eaufrance.fr/fan/',./fct_assain:FractionAnalysee/fct_assain:CdFractionAnalysee)"/></xsl:attribute></pmo:APourFractionAnalysee><pmo:DateAnalyse><xsl:value-of select="./fct_assain:DateAnalyse"/></pmo:DateAnalyse><pmo:RsAnalyse><xsl:value-of select="./fct_assain:RsAnalyse"/></pmo:RsAnalyse><pmo:CdRemAnalyse><xsl:value-of select="./fct_assain:CdRemAnalyse"/></pmo:CdRemAnalyse><pmo:InSituAnalyse><xsl:value-of select="./fct_assain:InSituAnalyse"/></pmo:InSituAnalyse><pmo:StatutRsAnalyse><xsl:value-of select="./fct_assain:StatutRsAnalyse"/></pmo:StatutRsAnalyse><pmo:QualRsAnalyse><xsl:value-of select="./fct_assain:QualRsAnalyse"/></pmo:QualRsAnalyse></rdf:Description></xsl:for-each></xsl:template></xsl:stylesheet>