Hi guys I have a question. (This is a simplified version of my real world scenario)
I have an xml source document that has a single element that can accept the numbers 1,2, or 3. The target document has a single element that can takethe values one, two or three". (Both of these are constrained by enumeration restrictions).
Is there any way in XSL that I can take the number from the source document, and map it to the
position of the enumerator of the second document, in order to return the
string representation. (Like you would do if it was in a programming language array).
In my real program I am mapping potenntiially hundreds of codes to status strings, so a simple xsl:choice solution is not reallly an option (The enumerators are guaranteed to be defined in the correct order so that will not be an issue).
So I end up with the following mappings:
Source Schema:
Target Schema: