Thanks for your help with this one, but I dont want to define the by name in the stylesheet as they could be any value defined by the user in the program. Is it possible to recursively determine what elements are required? Thanks!