xsl-list
[Top] [All Lists]

RE: keyed lookup table

2005-02-18 09:01:20
Michael Kay writes:
As DC said, though, document('') is inefficient and in 2.0 is never
necessary. 

    key('language-code', 'de', $language-table)

gives the same result and is much more efficient.

Thanks to you and David for your helpful responses.

For this particular case I'm going to use an external file, but for some
other transformation-specific tables this will be great.  BTW, if anyone
is interested, there are several ISO code tables available in XML at
http://www.codehq.net/schemas/

-- 
Kevin Rodgers


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>