Higino Silva describes a problem about copying the content of a PARAMETERS element except that its sub-element FILE may be a copy from the same place or from a different place. The general idea of the solution is to work your way back from the desired output. Since the FILE element of the output needs some conditional logic, don't start to create a FILE element until you have executed the conditional logic, which you should do when you've reached the point where you must decide which FILE element to copy.
Since this is a generic XSLT question, further details can be pursued (if necessary) on XSL-list. .................David Marston
