Je n'arrive pas à insérer une balise dans mon document xsl. En effet, je dois inclure un autre fichier xsl dans ce dernier de manière dynamique avec dom php ou xsltprocessor je ne sais pas trop
Voici un exemple:
Fichier index.xsl :
Code : Tout sélectionner
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="html4.01" encoding="ISO-8859-1" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
<!-- IMPORT DU XSL DE CONTENU : c'est cette balise que je dois importer à cet endroit précis de la feuille-->
<xsl:include href="consultation.xsl" /> # LOAD XML FILE
$XML = new DOMDocument();
$XML->loadxml( consultation.xml );
# START XSLT
$xslt = new XSLTProcessor();
# IMPORT STYLESHEET
$XSL = new DOMDocument();
$XSL->load( 'index.xsl' );
$xslt->importStylesheet( $XSL );
#PRINT
print $xslt->transformToXML( $XML );
Si vous voulez plus de détail précisez le moi, merki pour votre aide!