Bug#408591: iso-codes: please split date_withdrawn data into subelements

2007-01-29 Thread Alastair McKinstry
Warren Turkal wrote:
> Subject: iso-codes: please split date_withdrawn data into subelements
> Package: iso-codes
> Version: 1.0a-1
> Severity: wishlist
>
> Please split the data_withdrawn info into multiple subelements. It would
> be very valuable when using the data to load a database and using XSLT
> to transform the file into SQL insert statements. With some of the
> fields (like data_withdrawn) having internal structure, it somewhat
> defeats the purpose of using a structured language like XML. I am
> proposing something like the following fragment:
>
>   
Hi. Interesting.
Can you post an example of how you would expect this to be used ?
I had been expecting it to be used in, eg.
  code that iterated over a database
  - spotted a code in the DB that had been withdrawn
  - compared it to the date of withdrawal, and then did some action.
 e.g. in SQL.
 in this case, having a single date (in ISO-8601 format) would be easier
to parse. Not having used XSLT much, I hadn't designed the schema to
cope. Can you give an example?

Regards
Alastair



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#408591: iso-codes: please split date_withdrawn data into subelements

2007-01-26 Thread Warren Turkal
Subject: iso-codes: please split date_withdrawn data into subelements
Package: iso-codes
Version: 1.0a-1
Severity: wishlist

Please split the data_withdrawn info into multiple subelements. It would
be very valuable when using the data to load a database and using XSLT
to transform the file into SQL insert statements. With some of the
fields (like data_withdrawn) having internal structure, it somewhat
defeats the purpose of using a structured language like XML. I am
proposing something like the following fragment:



1986




1993
7
12



Please let me know what you think of this idea.

Thanks,
wt

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]