Hello,
I receive XML similar to that shown below:
<bodyFrag>
<p>title</p>
<ProgAbs>some text</ProgAbs>
<ProgAbs>More text</ProgAbs>
<ProgAbs>Even more</ProgAbs>
<p>Paragraph</p>
<p>Beispiel:</p>
<ProgAbs>some text</ProgAbs>
<ProgAbs>More text</ProgAbs>
<ProgAbs>Even more</ProgAbs>
</bodyFrag>
I need to process it as follows:
1. When I see a <p> containing 'title', output it in some way. (I
can do this part).
2, Select only the immediately following <ProgAbs> sibling elements.
I.e. the 3 ProgAbs elements with content immediately following the <p>
element selected in 1 above.
Using 'following-sibling::ProgAbs' gives me all the siblings of that name,
as it should. I just need to know how to construct an expression to select
only those <ProgAbs> that follow on immendiately after the <p> element.
Thanks
Paul Clarke
RCP Solutions Ltd.
mailto:paul(_at_)rcpsolutions(_dot_)com
http://www.rcpsolutions.com
Office: +44 1344 886 351
Mobile: +44 7973 767 558
--~------------------------------------------------------------------
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>
--~--