🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #10244

Re: ancestor vs preceding

#10244
From: szomiz
Date: Wed, 09 Jun 2010 20:09
18 lines
1986 bytes
"klapek" <klapek01@o2.pl> wrote in message 
news:huokkr$3e1$1@inews.gazeta.pl...

> powinno być: query('//miejsce/ancestor::*')

Niekoniecznie. Nic nie wiadomo o wezle do ktorego wykonujesz zapytanie. W 
implementacjach zapytanie xPath, to metoda *wezla*.

Jezeli do wezla "miejsce", to wystarczy po prostu "ancestor::*".

Jezeli pytasz wezla document/documentElement wtedy mozna w ten sposob, ale 
przy regularnym i duzym pliku dla wszyskich //miejsce moze byc sprawdzane 
czy nie ma jakiegos innego ancestora ;)

Obejrzyj dokladnie pliki, bo moze wystarczyc mniej mulace 
"//miejsce[1]/ancestor::*"

sz. 
Technical Details
Message-ID: <4c0ff4eb$0$19168$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!plix.pl!newsfeed1.plix.pl!aotearoa.belnet.be!news.belnet.be!newsfeed.kpn.net!pfeed09.wxs.nl!news.astraweb.com!border5.a.newsrouter.astraweb.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <humsp3$b1l$1@inews.gazeta.pl> <4c0f3b2b$0$17094$65785112@news.neostrada.pl> <huoerl$dq7$1@inews.gazeta.pl> <4c0fc13e$0$19171$65785112@news.neostrada.pl> <huokco$2ld$1@inews.gazeta.pl> <huokkr$3e1$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!nf1.ipartners.pl!ipartners.pl!plix.pl!newsfeed1.plix.pl!aotearoa.belnet.be!news.belnet.be!newsfeed.kpn.net!pfeed09.wxs.nl!news.astraweb.com!border5.a.newsrouter.astraweb.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "szomiz" <szomiz@poczta.onet.pl>
Newsgroups: pl.comp.xml
References: <humsp3$b1l$1@inews.gazeta.pl> <4c0f3b2b$0$17094$65785112@news.neostrada.pl> <huoerl$dq7$1@inews.gazeta.pl> <4c0fc13e$0$19171$65785112@news.neostrada.pl> <huokco$2ld$1@inews.gazeta.pl> <huokkr$3e1$1@inews.gazeta.pl>
Subject: Re: ancestor vs preceding
Date: Wed, 9 Jun 2010 22:09:21 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.4657
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4657
X-RFC2646: Format=Flowed; Original
Lines: 20
Message-ID: <4c0ff4eb$0$19168$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 79.187.20.2
X-Trace: 1276114155 unt-rea-a-01.news.neostrada.pl 19168 79.187.20.2:4647
X-Complaints-To: abuse@news.neostrada.pl
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit