Hi all,

Please move/post generic XPath questions to the appropriate forum -- the
Mulberry Technologies XSL list.  The Xalan-J user list is _not_ the
appropriate list.

Thanks!

Dave



                                                                                
                                                                  
                      Jarkko Moilanen                                           
                                                                  
                      <Jarkko.Moilanen         To:      "Raveendranath, Rohith 
(LNG - AUS)" <[EMAIL PROTECTED]>              
                      @uta.fi>                 cc:      "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>, (bcc: David N            
                                               Bertoni/Cambridge/IBM)           
                                                                  
                      09/01/2003 08:47         Subject: RE: xpath help!!!       
                                                                  
                      PM                                                        
                                                                  
                                                                                
                                                                  



On Tue, 2 Sep 2003, Raveendranath, Rohith (LNG - AUS) wrote:

> thankx for the quick reply
>
> well is there any way to form a qury such that i can find all C markups
who
> doesn't have markup B  in any of its hierarchy (ie parent or grant parent
or
> grand grand parent ... any forefather)

Something like:

//C[not(preceding-sibling::B)][not(ancestor-or-self::B)]"

I would avoid using plain preceding since it is quite "heavy" operation to
do.

>
> oops am i becoming more greedy in tersm of req:
>
> Thanx
> Rohith
>
> -----Original Message-----
> From: Jarkko Moilanen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 2 September 2003 1:27 PM
> To: Raveendranath, Rohith (LNG - AUS)
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: xpath help!!!
>
>
> On Tue, 2 Sep 2003, Raveendranath, Rohith (LNG - AUS) wrote:
>
> //C[not(parent::B)]
>
> > Hi all,
> >
> > If I have an xml like :
> >
> > <A>
> >          <B>
> >                      <C/>
> >          </B>
> >          <D>
> >                      <C/>
> >          </D>
> >          <E>
> >                      <C/>
> >          </E>
> > </A>
> >
> >
> > Is there any way of seleceting al the element C whose parent is not B -
> What
> > is the equalent Xpath
> >
> > Regards
> > Rohith
> >
> > This e-mail is for the use of the intended recipient(s) only.  If you
have
> > received this e-mail in error, please notify the sender immediately and
> then
> > delete it.  If you are not the intended recipient, you must not use,
> disclose
> > or distribute this e-mail without the author's permission.  We have
taken
> > precautions to minimise the risk of transmitting software viruses, but
we
> > advise you to carry out your own virus checks on any attachment to this
> e-mail.
> > We cannot accept liability for any loss or damage caused by software
> viruses.
> >

Reply via email to