I'm sorry, I don't see any Header or Detail elements in your sample data, which makes it a bit difficult to relate the prose description of your problem to your actual XML - you've abstracted the problem a bit too far.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|