[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Processing multiple lists
Hello, I have a document madeup of 3 lists of nodes that looks something like this... <list1> <node1 id=1>....stuff....</node> <node1 id=1>....stuff....</node> ... <node1 id=N>....stuff....</node> </list1> <list2> <node2 id=1>....stuff....</node> <node2 id=1>....stuff....</node> ... <node2 id=N>....stuff....</node> </list2> <list3> <node3 id=1>....stuff....</node> <node3 id=1>....stuff....</node> ... <node3 id=N>....stuff....</node> </list3> I have some transforms I want to apply to the document based on the content stored in list2. However, I also want to do some processing on list1 and list3 based upon what happens in list2. For instance, if I add a node to list2 at position N-1, I want to add a new node to lists1 and lists3 and the same for deleting a node at the same position. It occurs to me that while processing the contents of list1 and list3, I could just test the contents of list2 to see if some action is required. However, it seems wasteful to me to run the same test three times. Is there someway I could store the results of testing so that I could use it while processing each list? Thanks, Matt
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|