Bonjour,

J'ai un XMl que j'aimerais bien épurer de toute ces balises xml avec un préfix w: et garder seulement le celle en qui sont préfixer ns0:.

Le problème est qu'il s'agit d'un contenu mixte et qu'il faut conserver les espaces.

Xml:
Code xml : 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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<ns0:publicationText Numero="324" lang="fr" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:ns0="http://toto.com/xmlnamespace">
	<w:p/>
	<w:p>
		<ns0:nameActual>
			<w:r>
				<w:rPr>
					<w:b/>
				</w:rPr>
				<w:t xml:space="preserve">Henry</w:t>
			</w:r>
		</ns0:nameActual>
		<w:r>
			<w:t>, </w:t>
		</w:r>
		<w:r>
			<w:t xml:space="preserve">est le nom de mon </w:t>
		</w:r>
		<ns0:Animal>
			<w:r>
				<w:rPr>
					<w:i/>
				</w:rPr>
				<w:t xml:space="preserve">Chat</w:t>
			</w:r>
		</ns0:Animal>
		<w:r>
			<w:t xml:space="preserve">, </w:t>
		</w:r>
		<ns0:number13>
			<w:r>
				<w:t xml:space="preserve">324</w:t>
			</w:r>
		</ns0:number13>
		<w:r>
			<w:t xml:space="preserve"> est le numéro de son médaillon,</w:t>
		</w:r>
		<w:r>
			<w:t> </w:t>
		</w:r>
		<w:r>
			<w:t xml:space="preserve">il aime manger des croquet et est de couleur</w:t>
		</w:r>
		<w:r/>
		<ns0:Color>
			<w:r>
				<w:rPr>
					<w:i/>
				</w:rPr>
				<w:t xml:space="preserve">Marron</w:t>
			</w:r>
		</ns0:Color>
		<w:r>
			<w:t xml:space="preserve">. </w:t>
		</w:r>
	</w:p>
</ns0:publicationText>

Comment faire pour récupérer mon text via une transfo XSLT et qu'il ressorte comme ca:

Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
<ns0:publicationText Numero="324" lang="fr" xmlns:ns0="http://toto.com/xmlnamespace"><ns0:nameActual>Henry</ns0:nameActual>, est le nom de mon <ns0:Animal>Chat</ns0:Animal>, <ns0:number13>324</ns0:number13> est le numéro de son médaillon, il aime manger des croquet et est de couleur <ns0:Color>Marron</ns0:Color>.</ns0:publicationText>

Je veux pas une réponse toute faite, juste une indication ou un lien pour m'aider a comprendre comment je pourrais le faire.


Merci