You are having this problem because you are using XPath such as this:
//param[@name='AssetCostCenter']
which just picks up the first matching node in the document, so you are always getting the same value.
I have to say this is a very strange way of creating xml, you really should be creating a result tree, not using xsl:text, to create an xml document. If I get the time later I'll post an example...
|