[XSLT] Gestion ':' dans nom de balise
Salut tout le monde,
Voilà j'ai un petit problème que je n'arrive pas à résoudre... J'ai un fichier wordml que je souhaite transformer via un filtre xslt. Le problème c'est que les balises du type <w:body>...</w:body> ne sont pas interpréter dans mon xslt.
J'ai un message qui me dit 'Motif vide' :roll:
Voici un extrait de mon fichier wordml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <w:document>
<w:body>
<w:p w:rsidR="00EA21B1" w:rsidRPr="00883B7C" w:rsidRDefault="00EA21B1" w:rsidP="00883B7C">
<w:pPr>
<w:pStyle w:val="TitreEtude"/>
<w:rPr>
<w:lang w:val="en-GB"/>
</w:rPr>
</w:pPr>
...
</w:p>
</w:body>
</w:document> |
Et voici un extrait de mon code xslt :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| <?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.microsoft.com/office/word/2002/8/wordml"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:SL="http://schemas.microsoft.com/schemaLibrary/2002/8/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wx="http://schemas.microsoft.com/office/word/2002/8/auxHint"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<xsl:output method="xml" indent="yes" encoding="ISO-8859-1"/>
<xsl:template match="'w:document'/'w:body'">
<body>
<xsl:apply-templates />
</body>
</xsl:template>
</xsl:stylesheet> |
Je n'arrive vraiment pas à interpréter ces ':', est-ce que quelqu'un peu m'aider sur ce sujet ?
Merci d'avance pour vos réponses.