The convertCurrency template basically just strips out non-numeric characters. I'd like to use the result of that in the 'if test' clause so that if there is no non-numeric data left, the <DamageAmt> element is not output at all. As it stands now, it can create an empty <DamageAmt> element, which errors out because the xsd states that if the element is there, it can't be empty.
I inherited maintenance of this and my knowledge of XSLT is very patchy. I can kind of follow what it's doing and make minor changes but can't figure out how to do something new and different like this.