🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: probl�me d'apostrophe ? help?

#9754
From: LIONEL
Date: Thu, 15 Feb 2001 08:08
32 lines
2282 bytes
excuse moi Tom pour mon ignorance mais en faisant des essais, je n'ai pas
r�ussi ...

que faut-il changer exactement dans le xsl et le xml car je dois dire que
pour l'instant je suis perdu  ...


"Tom." <ptittom+news@free.fr> a �crit dans le message news:
96f4ar$9g3$1@wanadoo.fr...
> In <rXqi6.418$oW1.1780775@nnrp2.proxad.net>, LIONEL wrote:
> > <xsl:for-each select="enreg[champ1='l&apos;autre']">
> > [...] o� est l'erreur?
>
> &apos; "�chappe" l'apostrophe par rapport � XML, pas XPath. Tu aurai p�
> tr�s bien �crire aussi :
>   select="enreg[champ1=&apos;l&apos;autre&apos;]"
> ou
>   select="enreg[champ1='l'autre']"
> c'est exactement �quivalent; la valeur "r�elle" de l'attribut �select� est
> belle et bien �enreg[champ1='l'autre']�, ce qui ne correspond pas au
> r�sultat voulu.
>
> Il faut dans l'expression XPath utiliser des d�limiteurs de cha�ne
> diff�rents de l'apostrophe (donc des guillemets) pour avoir une expression
> correcte. Ensuite, l'exercice consiste � int�grer cette expression dans un
> document XML.
> L'expression : �enreg[champ1="l'autre"]�
> Int�gr� dans un document XML :
>  � ... select="enreg[champ1=&quot;l'autre&quot;]"
>  � ... select='enreg[champ1="l&apos;autre"]'
>
> Tom.
Technical Details
Message-ID: <K7Mi6.825$dr.988221@nnrp6.proxad.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!not-for-mail
References: <rXqi6.418$oW1.1780775@nnrp2.proxad.net> <96f4ar$9g3$1@wanadoo.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,7802af94c8815ca4
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-02-15 00:10:06 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!not-for-mail
From: "LIONEL" <goubetli@voila.fr>
Newsgroups: fr.comp.text.xml
References: <rXqi6.418$oW1.1780775@nnrp2.proxad.net> <96f4ar$9g3$1@wanadoo.fr>
Subject: Re: probl�me d'apostrophe ? help?
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <K7Mi6.825$dr.988221@nnrp6.proxad.net>
Date: Thu, 15 Feb 2001 08:08:10 GMT
NNTP-Posting-Host: 212.234.83.243
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp6.proxad.net 982224490 212.234.83.243 (Thu, 15 Feb 2001 09:08:10 CET)
NNTP-Posting-Date: Thu, 15 Feb 2001 09:08:10 CET
Organization: Guest of ProXad - France