I have written a simple XSL to scrape the ISO 2-letter country codes from the ISO website First I copied the table that contains the country names and codes and then I constructed the XSL. This is how the XSL looks like:UPDATE:
Please insert the breakline HTML element in the if block after the translate statement. Because without it, the country codes won't be displayed in separate lines. I have written another blog entry about scraping the codes. Please take a look here.
Saturday, September 12, 2009
Scraping ISO 3166-1-alpha-2 country codes
Email the blog author at: nicholaskeytholeong [at] gmail [dot] com
Labels:
Country Codes,
General Knowledge,
ISO 3166-1-alpha-2,
Java,
XML,
XSL
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment