xsl-list
[Top] [All Lists]

ENCODING COUNTRY CODES

2005-04-25 02:22:50
Dear all,

Greetings

I require XSLT support in amending the country codes to my resulting XML. I 
have all country names with relevant country codes in an external XML file 
(i.e., CountryCode.xml, given below), here I require all countries needs to be 
encoded in my each <affiliation> of the source xml, also please find below the 
resulting xml for your easy understanding.

CountryCode.xml
<allcountry>
    <country code="gb">England</country>
    <country code="in">India</country>
    <country code="us">USA</country>
<allcountry>

source.xml
<root>
    <para>Some text</para>
    <affiliation>Indian Institute of Technology, Chennai, India - 
610545</affiliation>
<affiliation>SOME INSTITUTION NAME, ENGLAND - 12245</affiliation>
    <affiliation>IEEE Institution, NY, USA</affiliation>
</root>

result.xml
<root>
    <affiliation>Indian Institute of Technology, Chennai, <country 
code="in">India</country> - 610545</affiliation>
<affiliation>SOME INSTITUTION NAME, <country code="gb">ENGLAND</country> - 
12245</affiliation>
    <affiliation>IEEE Institution, NY, <country 
code="us">USA</country></affiliation>
</root>

Please advise me how the XSLT should look, many thanks in advance.

Best regards
Arul Kumar


__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

--~------------------------------------------------------------------
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>