🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9778

Re: une BD xml avec plusieurs xsl ???

#9778
From: Christophe
Date: Sun, 04 Feb 2001 01:41
66 lines
3431 bytes
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
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>!!!
bon, C pas grave, je voulais juste te le signaler, ne te prend pas trop la
tete pour moi ;)) je me debrouillerais bien seul, tu m'as deja bcp aide .....
et je t en remerci bcp

++
PS.: desole pour les mails envoye en double chez toi ;)) j avais pas vu

"Tom." a �crit :

> In <3A7C5DA6.CD91319E@chez.com>, Christophe wrote:
> > ben j'y ai pense, mais avec select ca marche pas ;))
>
> Avec quel processeur XSLT ?!
> Avec Xalan Java 1.2.1 et les 2 documents ci-dessous ca marche tr�s bien :
> foo.xml:
> <?xml-stylesheet type="text/xsl" href="#xslt"?>
> <xsl:stylesheet version="1.0" id="xslt"
>      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:template match="foo">
>   Element "foo" trouve'
> </xsl:template>
>
> <!-- on ne fait rien de la feuille de style, on applique simplement les
>      templates au document source.xml -->
> <xsl:template match="xsl:stylesheet">
>   <xsl:apply-templates select="document('source.xml')"/>
> </xsl:template>
> </xsl:stylesheet>
>
> source.xml:
> <foo>Something</foo>
>
> R�sultat :
> ptittom:~/src$ java org.apache.xalan.xslt.Process -IN foo.xml
> ========= Parsing file:/home/ptittom/src/foo.xml ==========
> Parse of file:/home/ptittom/src/foo.xml took 1576 milliseconds
> Locating stylesheet from fragment identifier...
> Setup of #xslt took 403 milliseconds
> =============================
> Transforming...
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
>   Element "foo" trouve'
> transform took 108 milliseconds
> Total time took 2444 milliseconds
> XSLProcessor: done
>
> >> Pri�re de NE PAS r�pondre par mail ET Usenet merci, j'aime pas me
> >> r�p�ter...
>
> Je r�it�re !!! :o(
>
> Tom.
Technical Details
Message-ID: <3A7CB336.E30DB5F5@chez.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!wanadoo.fr!not-for-mail
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>

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-03 17:39:07 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!wanadoo.fr!not-for-mail
From: Christophe <gaba2@chez.com>
Newsgroups: fr.comp.text.xml
Subject: Re: une BD xml avec plusieurs xsl ???
Date: Sun, 04 Feb 2001 02:41:10 +0100
Organization: Wanadoo, l'internet avec France Telecom
Lines: 67
Message-ID: <3A7CB336.E30DB5F5@chez.com>
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>
NNTP-Posting-Host: ca-ol-montpellier-4-158.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: wanadoo.fr 981250745 19541 213.56.43.158 (4 Feb 2001 01:39:05 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 4 Feb 2001 01:39:05 GMT
X-Mailer: Mozilla 4.75 [fr] (Win98; U)
X-Accept-Language: fr