Subject: Re: [xsl] need a help with following siblings From: Red Light <skydelta98@xxxxxxxxx> Date: Wed, 16 Mar 2011 04:31:55 -0700 (PDT) |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] need a help with followin, Andrew Welch | Thread | Re: [xsl] need a help with followin, Andrew Welch |
Re: [xsl] need a help with followin, Andrew Welch | Date | Re: [xsl] need a help with followin, Andrew Welch |
Month |