This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: "Skip until"??


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]