In Oracle Service Bus I need 'ISO 3166-1 alpha-2' and 'ISO 3166-1 alpha-3' country codes.
At the moment I'm using Java Callout to get the same (which I would like to avoid). 

I'm new to both these technologies and unaware of the standard practices so just wanted to check your opinion. 

```
1. I was just wondering if there are any XQuery libraries which could provide country codes.
2. Considering most probably these values are going to be constant, is it okay to handwrite the function.

```

Thanks.