Bonjour,

J'ai réalisé en XSLT dont voici l'entete :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
<xsl:stylesheet 
	version="1.0" 
	xmlns="http://www.hprim.org/hprimXML"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.hprim.org/hprimXML D:\PCIA\SchemaHprimXml\msgEvenementsPatients100.xsd"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:z="#RowsetSchema"
 
>
<xsl:output method="text"  version="1.0" encoding="utf-8"  standalone="yes" indent="yes"  />
Ce template fonctionne avec les XML qui ont cette entête :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
<evenementsPatients acquittementAttendu="oui" xmlns="http://www.hprim.org/hprimXML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hprim.org/hprimXML D:\PCIA\SchemaHprimXml\msgEvenementsPatients100.xsd">
mais dès que j'ai cette ligne en plus dans l'entete XML, mon XLT ne fonctionne plus :

xmlns="http://www.hprim.org/hprimXML"

Savez vous comment modifier mon XSLT afin que cela fonctionne pour les deux types de fichiers XML ?


Merci d'avance