🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: "ou" et "et" dans le xpath

#9125
From: Thomas Broyer
Date: Fri, 01 Jun 2001 13:19
21 lines
1635 bytes
In <9f7o8c$gsp$1@unlisys.unlisys.net>, Cecile Vangeleyn wrote:
> je veux faire un <xsl:when test="condition">traitement</when>
> et dans ma condition je veux mettre des "ou".
> Du genre : $id=1 ou $id=3 ou .....

$id = 1 or $id = 3

> j'ai lu dans mon bouquin que les ou on les ecrivait avec la barre
> verticale |
> et quand je le fais saxon me reponds : "Expression does not return a DOM
> [n]ode".
> No comprendo.

| est l'op�rateur d'union -- sous-entendu de deux ensembles de noeuds (node 
sets). $id=1 est un bool�en, l'op�rateur | l�ve donc une erreur.

> Quelqu'un peut m'aider ?

http://www.w3.org/TR/xpath, section 3.4 Booleans

Tom.
Technical Details
Message-ID: <2662688.LvFx2qVVIh@ltgt.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!isdnet!wanadoo.fr!proxad.net!feeder2-1.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail
References: <9f7o8c$gsp$1@unlisys.unlisys.net>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,51581912946553b4
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-06-01 06:19:46 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!isdnet!wanadoo.fr!proxad.net!feeder2-1.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail
Message-ID: <2662688.LvFx2qVVIh@ltgt.net>
From: Thomas Broyer <ptittom+news@free.fr>
Subject: Re: "ou" et "et" dans le xpath
Newsgroups: fr.comp.text.xml
References: <9f7o8c$gsp$1@unlisys.unlisys.net>
Lines: 21
Organization: </>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
Date: Fri, 01 Jun 2001 13:19:45 GMT
NNTP-Posting-Host: 193.251.185.78
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp1.proxad.net 991401585 193.251.185.78 (Fri, 01 Jun 2001 15:19:45 CEST)
NNTP-Posting-Date: Fri, 01 Jun 2001 15:19:45 CEST