mountainbiker
Programmer
xml 1
xml 2 (the look up table)
xslt
Normally in the translation, I would use some sort of <xsl:choose> case statement to do this big long comparison; however, is it possible to pull in xml 2 (the lookup table maybe using document() and then use xsl:ksy to extract/match for the data needed?
-OR-
Is it better to do it like this example
Code:
<AAA>
<BBB>this is a test</BBB>
<Country>GBR</Country>
<CCC>A real small test</CCC>
</AAA>
xml 2 (the look up table)
Code:
<CountryLookup>
<Country ISO-2="GB" ISO-3="GBR">United Kingdom</Country>
<Country ISO-2="US" ISO-3="USA">United States of America</Country>
.
.
.
</CountryLookup>
xslt
Normally in the translation, I would use some sort of <xsl:choose> case statement to do this big long comparison; however, is it possible to pull in xml 2 (the lookup table maybe using document() and then use xsl:ksy to extract/match for the data needed?
-OR-
Is it better to do it like this example