lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [lmi] Terse list of valuable projects


From: Vadim Zeitlin
Subject: Re[2]: [lmi] Terse list of valuable projects
Date: Thu, 18 Mar 2010 14:56:31 +0100

On Thu, 18 Mar 2010 13:43:20 +0000 Greg Chicares <address@hidden> wrote:

GC> You might wonder whether 'input sequences'
GC>   http://www.nongnu.org/lmi/sequence_input.html
GC> should be represented by one xml element for each year (they are sequences,
GC> after all...aren't they?). The answer is "no",

 This seems indeed clear. They're not sequences even though they can be
realized as one once the age (is that all?) is given.

GC> Consider a payment represented thus:
GC>   10000 20; 0

 OTOH this doesn't answer the question of how should they be represented in
XML. If we want to follow the atomicity principle to the hilt, we'd need to
represent each semicolon-separated part with a tag. And then we'd need
nested tags to describe each of them. E.g. the simple example above would
become

        <sequence>
                <interval>
                        <value>10000</value>
                        <count>20</count>
                </interval>
                <interval>
                        <value>0</value>
                        <count>rest</count>  <!-- or -1 or whatever... -->
                </interval>
        </sequence>

Of course, handling of "#" and "@" modifiers would require more tags...

 Regards,
VZ

reply via email to

[Prev in Thread] Current Thread [Next in Thread]