[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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> > --~--
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|