[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] recursive function?

Subject: [xsl] recursive function?
From: "Tore Stensrud" <torestensrud@xxxxxxxxxxx>
Date: Mon, 24 Jan 2005 07:17:58 +0000

A simple version of my Xml looks like this;


 <City>New York</City>





I would like mye page to look something like this:

Pete - New York
Tom - Chicago

People not connected to city:

In my for-each Person loop I know i can check if City exists and if not write the line "People not connected to city:". But how can I do this only once - before the first person not having a City node? (The ones without City will always come last in the listing). I guess I will have to use a recursive funcion, but how will this work when I'm using the for-each looping through the records?



MSN Hotmail http://www.hotmail.com Med markedets beste SPAM-filter. Gratis!

Current Thread