I’m having an issue where I’m getting an XML file, and from the samples that I get the format of date that I’m getting is mm/dd/yyyy and sometimes it is m/d/yyyy. My task is to convert this to another XML file where the schema only accepts yyyy-mm-dd. I’m limited to using XSLT 1.0/XPATH 1.0. How can I do this?
I’m having an issue where I’m getting an XML file, and from the samples
Share
Your question is a little vague. It needs some sample input and expected output. But any way, here is an answer to best guess at what you want.
Given this input:
… transformed by this style-sheet …
… will produce this desired output …
Please tick the answer if it is correct. I verified this solution on http://www.purplegene.com/static/transform.html