[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: need a help with following siblings

Subject: Re: need a help with following siblings
From: Red Light <skydelta98@xxxxxxxxx>
Date: Wed, 16 Mar 2011 04:31:55 -0700 (PDT)
Re:  need a help with following siblings
hi android,

sorry for the long size that sample, here is a minimal one:
<items>
        <listElement>
            <categOrSubOrOther>
               
Categ
            </categOrSubOrOther>            
        </listElement>
   
</items>
    <items>
        <listElement>
            <categOrSubOrOther>
   
            Categ
            </categOrSubOrOther>            
       
</listElement>
    </items>
    <items>    
        <listElement>
           
<categOrSubOrOther>
                Categ
            </categOrSubOrOther>   
        
        </listElement>
        <listElement>
           
<categOrSubOrOther>
                Sub
            </categOrSubOrOther>   
    
        </listElement>
        <listElement>
           
<categOrSubOrOther>
                Sub
            </categOrSubOrOther>
   
    </listElement>
        <listElement>
            <categOrSubOrOther>
   
            Sub
            </categOrSubOrOther>
        </listElement>
   
</items>


 and the answer should be true or false  , i just want detect when
a
 <listElement> have <categOrSubOrOther> value to 'Categ'  is followed by
another <listElement> have <categOrSubOrOther> value to 'Sub'

and thanks a
lot

--- On Wed, 3/16/11, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:

>
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
> Subject: Re:  need a help
with following siblings
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: "Red
Light" <skydelta98@xxxxxxxxx>
> Date: Wednesday, March 16, 2011, 11:25 AM
> On
16 March 2011 11:19, Red Light
> <skydelta98@xxxxxxxxx>
> wrote:
> > hi,
> >
>
> plz can somebody with the following requirement,  i
> have my xml data like
this:
> >
> ...
> >
> > i need to know it inside a tag  <listElement>
> having
the        <categOrSubOrOther> value to
> 'Categ' followed by another tag
 that have the
> <categOrSubOrOther> to 'Sub'
> >
> > and thanks a lot for
your help.
> 
> What should the result be... a true/false, or an element?
> 
>
Spend some time producing a small a complete example: a
> sample input
>
(stripped down the minimum possible), the corresponding
> required
> output,
and a clear description of the problem.
> 
> 
> -- 
> Andrew Welch
>
http://andrewjwelch.com
> 
>
--~------------------------------------------------------------------
>
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To
unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail:
<mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --~--

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.