From: thierry pilet (tpilet@geomatic.ch)
Date: 09/05/2003 - 08:40
Merci beaucoup.
J'ai corrigée deux trois choises sans vraiment comprendre mais ça marche...
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Mes randos</h2>
<xsl:apply-templates select="//BER_RANDOS[ROUND='nein'and H > 5 and
H < 10]"/>
</body>
</html>
</xsl:template>
<xsl:template match="BER_RANDOS">
<xsl:value-of select="TITRE"/> 
<xsl:value-of select="ROUND"/> 
<xsl:value-of select="H"/><br/>
</xsl:template>
</xsl:stylesheet>
----- Original Message -----
From: "Pierre Attar" <pat@tireme.fr>
To: <xml-tech@xmlfr.org>
Sent: Thursday, May 08, 2003 11:20 PM
Subject: [xml-tech] Re: recherche en cascade
>
> Quelque chose comme cela devrait faire l'affaire :
>
> <xsl:template match="/">
> <xsl:apply-templates select="./BER_RANDOS[./H > 3 and ./H <
> 5 and ./LONGUEUR < 10 and ./LOCALITE_18='Iseltwald']"/>
> </xsl:template>
> <xsl:template match="BER_RANDOS">
> <!-- faites ici ce que vous voulez -->
> </xsl:template>
>
>
>
> At 18:16 08/05/2003, you wrote:
> >Mon problème est peut-être trivial, mais je ne sais pas comment le régler
> >en xsl...
> >
> >j'ai une arbre xml qui contien des randonnées, pour chaque randonnées
j'ai
> >un certain nb d'attributs:
> >
> ><?xml version="1.0" encoding="ISO-8859-1" ?>
> ><RESULTAT>
> ><BER_RANDOS>
> ><LOCALITE_18>Giessbach</LOCALITE_18>
> ><ID_OBJET>8</ID_OBJET>
> ><TITRE>Heimatstil am Brienzersee</TITRE>
> ><H>1</H>
> ><M>25</M>
> ><PERIODE LIBELLE="Jahreszeit">
> ><value_PERIODE>Sommer</value_PERIODE>
> ><value_PERIODE>Herbst</value_PERIODE>
> ><value_PERIODE>Frühling</value_PERIODE>
> ></PERIODE>
> ><REGION LIBELLE="Region"><![CDATA[Jungfrauregion / Oberhasli]]></REGION>
> ><LOCALITE_ARR>Iseltwald</LOCALITE_ARR>
> ><XCOO>176160</XCOO>
> ><YCOO>644675</YCOO>
> ><LONGUEUR>6</LONGUEUR>
> ><PARCOURS>Giessbach-Underholz-Gloota-Gool-Iseltwald</PARCOURS>
> ><MEMBERS>nein</MEMBERS>
> ><ROUND>nein</ROUND>
> ><MONTAGNE>nein</MONTAGNE>
> ></BER_RANDOS>
> >....
> >
> ></RESULTAT>
> >
> >
> >J'aimerais rechercher toutes les randos <BER_RANDOS> dont la durée <H>
est
> >située entre 3h et 5h mais d'une longueur <LONGUEUR> de moins de 10km et
> >qui parte d'une ville donnée <LOCALITE_18>
> >
> >Peut-on ce passer de fonction Choose, When ou IF en cascade ?
> >
> >Merci pour vos réponses
> >
>
>---------------------------------------------------------------------------
-------
> >Visitez http://www.swissgeo.ch
>
>---------------------------------------------------------------------------
-------
> >Thierry Pilet Tel. ++41 21 651 30 32
> >Geomatic Ingenierie ++41 21 651 30 00
> >Ch. des Croisettes 26-28 Fax ++41 21 651 30 35
> > Mobile: ++41 76 325 69 20
> >CH-1066 Epalinges E-M tpilet@geomatic.ch
> >site web : www.geomatic.ch
> >
> >plan dynamique:
> >tpilet@geomatic.ch;269933">http://www.swissgeo.ch/mailit.php?tpilet@geomatic.ch;269933
> >
> >
>
>---------------------------------------------------------------------------
--------
> >Geomatic Ingenierie: la maitrise de l'information geographique
>
>---------------------------------------------------------------------------
--------
> >
> >--
> >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)
>
>
> Pierre Attar (mailto:pat@tireme.fr)
> Consultant en informatique documentaire XML
> Consultant in Structured Document engineering
>
> Projet "Mutualiser l'effort de montée en compétences sur XML"
> http://www.mutu-xml.org/index.html
>
> --
> 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)
>
>
--
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
|