[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: keyed lookup table

Subject: RE: keyed lookup table
From: Kevin Rodgers <kevin.rodgers@xxxxxxx>
Date: Fri, 18 Feb 2005 09:01:20 -0700
iso code lookup tables
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.