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(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
From: Andrew Welch <andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com>
Subject: Re: [xsl] need a help with following siblings
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: "Red Light" <skydelta98(_at_)yahoo(_dot_)com>
Date: Wednesday, March 16, 2011, 11:25 AM
On 16 March 2011 11:19, Red Light
<skydelta98(_at_)yahoo(_dot_)com>
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(_at_)lists(_dot_)mulberrytech(_dot_)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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--