[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Key/Use
The problem was originally described as: ><xsl:key name="lookup" match="row" > use="concat($TRANSFORMER_SourceCountry,'_layer_name')"/> where the variable specifies a country code. After some discussion, it came down to: >So I guess I can not have a dynamic lookup table? Not that way, but you could define several keys, then dynamically pick which key: <xsl:key name="US_lookup" match="row" use="US_layer_name"/> <xsl:key name="ES_lookup" match="row" use="ES_layer_name"/> <xsl:key name="CN_lookup" match="row" use="CN_layer_name"/> <xsl:key name="BG_lookup" match="row" use="BG_layer_name"/> then ...select=key(concat($country,'_lookup'),$value)... Hope that helps! .................David Marston XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|