This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: "Skip until"??
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: "Skip until"??
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 8 Aug 2000 10:09:13 +0100
- Reply-To: xsl-list at mulberrytech dot com
> Now, my XSLT file should be like this:
>
> 1. Match all <node> elements
> 2. If element contains "name:", "subject:" or "date:", then continue
> processing
> 3. If element contains the unwanted name "Jones" then:
> 3a. Skip until element contains "name:" again
> 3b. Process 3 again
> 4. Show value of element
>
This needs recursion. Write a named template that takes the list of nodes as
a parameter. This template should process the first <node> element, then
call itself to process all the rest, unless the first element in the list
being processed satisfies the termination condition.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list