This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: first occurance of node with hierarchy
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 25 Mar 2002 21:24:34 +0100
- Subject: Re: [xsl] first occurance of node with hierarchy
- References: <003601c1d412$5c401d10$c2c809c0@LKWHBSW2K0335>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Andrew Welch wrote:
> There are five step nodes
> <step1><step2><step3><step4><step5>
...
> I need to output a number at the first occurance of a <para> within each
> step, which can be as a child or within a <specpara>
There are several possibilities:
1. (step1//para|step2//para|step3//para|step4//para|step5//para)[1]
2. para[ancestor::step1 or ancestor::step2 or ancestor::step3 or ancestor::step4 or ancestor::step5][1]
and a multitide more.
HTH
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list