[Home] [By Thread] [By Date] [Recent Entries]
Chris,
How are you doing it now? It seems to me that this is the kind of problem that is more easily solved, if you work to solve a more general problem. For example, instead of checking the next event, you could devise a way of locating all events with the same element name ('war', 'civic-event' and so forth) and the same title. Keys would be a good way to do this. Otherwise, the following:: axis is your friend. You can always traverse from the current node to find all nodes following it that meet certain criteria. So for example, following::*[name()=name(current()) and @title=current()/@title] would traverse from any node to any following node with the same name and title attribute. If this isn't enough help (maybe I've misread your problem), maybe you could post your present XSLT and an example of the output you would like. Cheers, Wendell At 12:13 PM 9/21/01, you wrote: I have some XML that I can best describe this way. It is like notes taken from a college history class. Each <document> represents one class, and each subdocument element represents a specific event or time period (i.e. <war>, <legislation>, <civic-event>,etc.). ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



