From: Eric van der Vlist (vdv@dyomedea.com)
Date: 13/04/2004 - 12:04
Bonjour,
On Tue, 2004-04-13 at 12:10, nicolas desaleux wrote:
> bonjour,
> je cherche un moyen en xsl de recuperer les 5 premiers acteurs de ce fichier XML.
> Merci d'avance
>
> fichier xml
> <actors>
> <actor>
> <firstname>X</firstname>
> <lastname>Y</lastname>
> <role>Z</role>
> </actor>
> ...
> </actors>
Si le noeud contexte est "actors", l'expression XPath "actor[position()
<= 5]" sélectionne les 5 premiers acteurs.
Cordialement,
Eric van der Vlist
--
Read me on XMLhack.
http://xmlhack.com/author.php?id=8
Upcoming XML schema languages tutorial:
- Amsterdam -half day- (18/04/2004) http://masl.to/?P220516D7
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|