Article View: fr.comp.text.xml
Article #9800Re: une BD xml avec plusieurs xsl ???
From: Pasturel
Date: Sun, 04 Feb 2001 11:23
Date: Sun, 04 Feb 2001 11:23
52 lines
3093 bytes
3093 bytes
Christophe wrote:
> salut, C encore moi...
> je suppose que le nom du proc XSLT se trouve dans l entete, tu utilises
> http://www.w3.org/1999/XSL/Transform
d�ja r�pondu
>
> tandis que moi j'avais http://www.w3.org/TR/WD-xsl
> j'ai donc repri de suite ton ex., ca marche, C cool, mais G fait egalement
> quelques autres tests
> pour commencer, G corrige le chargement du fichier (tu avais
> document('source.xml'))
> mais G egalement remplace le <xsl:template match="foo">
> par <xsl:template match="toto">, et a ma grande surprise, il mais tjs la meme
> chose, en fait, koikil arrive, il execute tjs ce template, et pourtant il n
> existe aucune balise <toto>!!!
Alors l� tu m'�tonnes fort. J'ai fait le test propos� par Tom. J'ai fait cela
avec xalan-J2.0
1i�r cas ) Fichier foo.xsl ( en rempla�ant select="document('source.xlm')" par
select="document('foo.xml')")et foo.xml idem Tom et en lancant ( sous linux)
export JAVA_HOME=/usr/local/jdk1.3ibm
export CLASSPATH=/opt/xalan/bin/xerces.jar:/opt/xalan/bin/xalan.jar
$JAVA_HOME/bin/java org.apache.xalan.xslt.Process -in essai.xml -xsl essai.xsl
la sortie est :
<?xml version="1.0" encoding="UTF-8"?>
Element "foo" trouve
2i�me) En rempla�ant la balise <foo> et </foo> par <toto> et </toto> dans
foo.xml et en relan�ant la commande ci-dessus j'ai la sortie :
<?xml version="1.0" encoding="UTF-8"?>
Something
Dans chaque cas je suis conforme au comportement d�finis dans les template.
Cordialement
A +
>
>
--
---------------------------------------------------------------------------
Jean-Louis PASTUREL mail jean-louis.pasturel@wanadoo.fr
Perso http://perso.wanadoo.fr/jean-louis.pasturel/
___________________________________________________________________________
Technical Details
Message-ID:
<3A7D3BBE.FB8D4AC1@wanadoo.fr>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!freenix!wanadoo.fr!localhost.localdomain!nobodyReferences:
<3A79E0F4.F19D6D8F@chez.com> <3A7AD1C5.913B628B@chez.com> <95ephu$ajg$1@wanadoo.fr> <3A7C53B6.6C957A81@chez.com> <95hlli$mkt$1@wanadoo.fr> <3A7C5DA6.CD91319E@chez.com> <95hs6s$qvn$1@wanadoo.fr> <3A7CB336.E30DB5F5@chez.com>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,701b5ccef8d34985 X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-02-05 09:11:56 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!freenix!wanadoo.fr!localhost.localdomain!nobody From: Pasturel <jean-louis.pasturel@wanadoo.fr> Newsgroups: fr.comp.text.xml Subject: Re: une BD xml avec plusieurs xsl ??? Date: Sun, 04 Feb 2001 12:23:42 +0100 Organization: Wanadoo, l'internet avec France Telecom Lines: 55 Message-ID: <3A7D3BBE.FB8D4AC1@wanadoo.fr> References: <3A79E0F4.F19D6D8F@chez.com> <3A7AD1C5.913B628B@chez.com> <95ephu$ajg$1@wanadoo.fr> <3A7C53B6.6C957A81@chez.com> <95hlli$mkt$1@wanadoo.fr> <3A7C5DA6.CD91319E@chez.com> <95hs6s$qvn$1@wanadoo.fr> <3A7CB336.E30DB5F5@chez.com> NNTP-Posting-Host: mix-toulouse-203_1-90.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: wanadoo.fr 981393113 15848 193.250.3.90 (5 Feb 2001 17:11:53 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 5 Feb 2001 17:11:53 GMT X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.4.0 i686) X-Accept-Language: fr-FR, French/France, en