🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: HTML dans le meme ordre que le xml

#8432
From: Pierre Y.
Date: Tue, 16 Oct 2001 14:12
30 lines
1726 bytes
> xsl:
> <xsl:apply-templates select="TABLE"/>
>  <xsl:apply-templates select="ITEM"/>

Ceci signifie : ex�cute les templates pour les noeuds qui matchent 'TABLE'
PUIS pour les noeuds ITEM

Utilise <xsl:apply-templates /> qui laisse le processeur XSLT choisir les
templates adapt�s dans l'ordre d'apparition des noeuds dans le XML initial.

Exemple :

<xsl:stylesheet...>

    <xsl:template match='P'>
        <xsl:apply-templates />
    </xsl:template>

    <xsl:template match='TABLE'>
        <xsl:copy-of select='.' />
    </xsl:template>

    <xsl:template match='ITEM'>
        <xsl:copy-of select='.' />
    </xsl:template>
</xsl:stylesheet>

A+

Pierre
Technical Details
Message-ID: <9qhf8u$fqi$1@wanadoo.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!proxad.net!wanadoo.fr!not-for-mail
References: <9qhddd$dah$1@ites.inria.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,941eb915bcdd73ca
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-10-16 07:12:47 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!proxad.net!wanadoo.fr!not-for-mail
From: "Pierre Y." <pierre.crisalid@wanadoo.fr>
Newsgroups: fr.comp.text.xml
Subject: Re: HTML dans le meme ordre que le xml
Date: Tue, 16 Oct 2001 16:12:45 +0200
Organization: Wanadoo, l'internet avec France Telecom
Lines: 32
Message-ID: <9qhf8u$fqi$1@wanadoo.fr>
References: <9qhddd$dah$1@ites.inria.fr>
NNTP-Posting-Host: mix-metz-106-4-225.abo.wanadoo.fr
X-Trace: wanadoo.fr 1003241566 16210 80.9.207.225 (16 Oct 2001 14:12:46 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 16 Oct 2001 14:12:46 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200