Article View: fr.comp.text.xml
Article #9777Re: une BD xml avec plusieurs xsl ???
From: Tom.
Date: Sat, 03 Feb 2001 21:12
Date: Sat, 03 Feb 2001 21:12
45 lines
2353 bytes
2353 bytes
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:
<95hs6s$qvn$1@wanadoo.fr>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!195.25.12.36!oleane.net!oleane!wanadoo.fr!not-for-mailReferences:
<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>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 13:12:00 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!195.25.12.36!oleane.net!oleane!wanadoo.fr!not-for-mail From: Tom. <ptittom+news@free.fr> Newsgroups: fr.comp.text.xml Subject: Re: une BD xml avec plusieurs xsl ??? Date: Sat, 3 Feb 2001 22:12:36 +0100 Organization: - Lines: 45 Message-ID: <95hs6s$qvn$1@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> NNTP-Posting-Host: adijon-101-1-1-189.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit X-Trace: wanadoo.fr 981234716 27639 193.251.185.189 (3 Feb 2001 21:11:56 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 3 Feb 2001 21:11:56 GMT