Ajout information dans header xml avec xsl
Bonjour à tous,
Voilà j'ai un petit soucis avec un xsl.
J'aimerais avoir ceci:
Code:
1 2 3 4 5
| <?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="mareference" type="text/xsl" ?>
<Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="monxsd">
....
</Root> |
A la base, j'ai ceci:
Code:
1 2 3 4 5
| <?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="mareference" type="text/xsl" ?>
<Root>
....
</Root> |
voici mon xsl:
Code:
1 2 3 4 5 6 7 8
| <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="monxsd">
<xsl:copy-of select="/Root/*"/>
</Root>
</xsl:template>
</xsl:stylesheet> |
Quelqu'un peut-il me dire comment faire pour que la ligne
Code:
<?xml-stylesheet href="mareference" type="text/xsl" ?>
ne disparaisse pas dans mon résultat, sachant très bien que dans mon exemple d'xsl ci dessus, il n'y a rien pour ajouter cette ligne.
Merci beaucoup