Clarifying the LDML data model

Steven R. Loomis srl at icu-project.org
Mon May 19 12:18:37 CDT 2014


On 05/19/2014 10:11 AM, Steven R. Loomis wrote:
> On 05/19/2014 09:31 AM, Jon Skeet wrote:
>> Hi folks,
>>
>> I'm trying to get my head round the LDML data model in as clear a way
>> as possible, and I have a few questions - basically around how to
>> interpret TR-35 part 1. For the moment I'm only interested in
>> non-blocking elements (although at some point I'm going to need to get
>> my head round the exact meaning of serialElements and blockingItems...)
> Diagrams might help in explaining serialElements and blockingItems.

Not a diagram, but an example (assume only blockingItem is blocking).

aa.xml: 
  <ldml>
     <blockingItem>
        <aaa>Foo</aaa>
        <bbb>Bar</bbb>
     </blockingItem>
     <nonBlockingItem>
        <aaa>Baz</aaa>
        <bbb>Bat</bbb>
     </nonBlockingItem>
  </ldml>

aa_BB.xml:
  <ldml>
     <blockingItem>
        <ccc>Quux</ccc>
     </blockingItem>
     <nonBlockingItem>
        <ccc>Quux</ccc>
     </nonBlockingItem>
    </ldml>

Resolved aa_BB.xml:
  <ldml>
     <blockingItem>
        <!-- other aaa and bbb are blocked.   -->
        <ccc>Quux</ccc>
     </blockingItem>
     <nonBlockingItem>
        <aaa>Baz</aaa> <!-- inherited -->
        <bbb>Bat</bbb> <!-- inherited -->
        <ccc>Quux</ccc>
     </nonBlockingItem>
    </ldml>

-- 

IBMer but all opinions are mine.
https://www.ohloh.net/accounts/srl295 // fingerprint @ https://ssl.icu-project.org/trac/wiki/Srl


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://unicode.org/pipermail/cldr-users/attachments/20140519/47e8d382/attachment.asc>


More information about the CLDR-Users mailing list