Bonjour,

Dans un fichier ExcelML, je doit aller chercher des infos le problème c'est que je n'arrive pas a entrer dedans tant qu'il y a des namespace déclaré.

Je m'explique soit le 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
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">
	<Worksheet ss:Name="Sheet1">
		<Table ss:ExpandedColumnCount="16" ss:ExpandedRowCount="49" x:FullColumns="1" x:FullRows="1" ss:StyleID="s23" ss:DefaultColumnWidth="63.75" ss:DefaultRowHeight="13.5">
			<Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="45"/>
			<Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="235.5"/>
			<Column ss:Index="4" ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="93"/>
			<Column ss:Index="11" ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="180.75"/>
			<Row>
			</Row>
		</Table>
	</Worksheet>
</Workbook>
En que je lui applique ce XSLT ou j'ai déclaré les memes namespace que le word dans la balise xsl:stylesheet:
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
	<xsl:variable name="NextRef">38</xsl:variable>
	<xsl:template match="/">
		<xsl:apply-templates select="Workbook"/>
	</xsl:template>
	<xsl:template match="Workbook">
		<Exemple>Value</Exemple>
	</xsl:template>
</xsl:stylesheet>
Ca ne marche pas!!

Par contre si j'enlève les namespace de Workbook :
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
<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook>
	<Worksheet ss:Name="Sheet1">
		<Table ss:ExpandedColumnCount="16" ss:ExpandedRowCount="49" x:FullColumns="1" x:FullRows="1" ss:StyleID="s23" ss:DefaultColumnWidth="63.75" ss:DefaultRowHeight="13.5">
			<Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="45"/>
			<Column ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="235.5"/>
			<Column ss:Index="4" ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="93"/>
			<Column ss:Index="11" ss:StyleID="s23" ss:AutoFitWidth="0" ss:Width="180.75"/>
			<Row>
			</Row>
		</Table>
	</Worksheet>
</Workbook>
La ca Marche et ca me renvoie ma balise Exemple.

Pouvez-vous me dire qu'es-ce que je fais de faux?

Merci