Bonjour,
J'ai un fichier xml que je transforme en un nouveau fichier xml via xsl.
Dans le fichier xsl, j'écris le schéma XSD d'un nouveau fichier xml mais à la transformation, il ne m'écrit pas ce nouveau fichier xsd.
Pourtant je lui passe le xsi:schemaLocation
Fichier xsl :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://test.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://test.com/ ../xsd/SAGAI.xsd"> <xsl:output method="xml" encoding="UTF-8" indent="yes"/> <xsl:element name="dateApplication"> <xsl:value-of select="dateApplication"/> </xsl:element> <xsl:element name="action"> <xsl:value-of select="action"/> </xsl:element> <xsl:element name="dateFinApplication"> <xsl:value-of select="dateFinApplication"/> </xsl:element>
Fichier xml de sortie :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <?xml version="1.0" encoding="UTF-8"?> <LIGNE xmlns="http://test.com/"> <dateApplication>05/06/2006</dateApplication> <action>CREATION</action> <dateFinApplication/>






Répondre avec citation



Partager