Dear community,
I am trying to build an advanced mapping to transform a custom XML file into a BOD. One of the requirements is to translate codes into corresponding descriptions. In XSLT this is possible by either embedding the lookup table as xml elements in the stylesheet itself, or by holding the table in an external XML file.
I've been reading in this community group but unfortunately I couldn't find an example of something similar. So, I'm wondering if anyone already succeeded in doing this?
In XSLT 1.0, when embedding the lookup table in a stylesheet, the lookup is normally accomplished using an <xsl:value-of select="document('')/*/... /> instruction.
However, I have the feeling that the "document('')" expression is not supported.
Inside this "document('')" expression, the name of an external XML file could be specified. But this raises the question where to store that XML file (I am using the CloudEdition of ION).
In XSLT 2.0, the embedded XML document would typically be stored as a variable. But also here, I did not succeed in producing a working example.
Any help would be greatly appreciated.
Thanks,
Kristof