I've got a field in my xml that looks like this (some examples):
<ViolationCharged>VTL0180 0D 0I0</ViolationCharged>
<ViolationCharged>VTL0180-C 02A 0I0</ViolationCharged>
<ViolationCharged>VTL1180 B 0I0</ViolationCharged>
I need to turn it into something that looks like this:
<Violation>VTL180.0D</Violation>
<Violation>VTL180-C.02A</Violation>
<Violation>VTL1180.B</Violation>
Basically, I need to take the first field from that block and remove the leading zeros (if they exist) from the number block, then combine that first field with the second one with a period. I'm a bit of an XSLT noob, but with 2.0, I believe I can do this with analyze-string
and a not exceptionally complicated regular expression, however, I can't wrap my head around anything in 1.0 that will work and I'm sort of forced to use what's already in place here.
Any help is of course much appreciated.