Changeset 4656 in josm for trunk/data/preferences.xsd


Ignore:
Timestamp:
2011-12-12T13:37:20+01:00 (8 years ago)
Author:
bastiK
Message:

Fix ambiguities of empty collection vs. empty array by renaming the top level xml tags. This change breaks forward compatibility. (see #7027)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/preferences.xsd

    r4612 r4656  
    1111                                <element name="collection" type="tns:collection" />
    1212                                <element name="list" type="tns:list" />
     13                                <element name="lists" type="tns:lists" />
     14                                <element name="maps" type="tns:maps" />
    1315                        </choice>
    1416                </sequence>
     
    3638                            <element name="entry" type="tns:entry" minOccurs="0" maxOccurs="unbounded"/>
    3739            </sequence>
     40            <!-- deprecated: remove mid 2012 -->
    3841            <sequence>
    3942                            <element name="list" type="tns:slist" minOccurs="0" maxOccurs="unbounded"/>
    4043            </sequence>
     44            <!-- deprecated: remove mid 2012 -->
    4145            <sequence>
    4246                            <element name="map" type="tns:map" minOccurs="0" maxOccurs="unbounded"/>
     
    4650        </complexType>
    4751       
     52        <complexType name="lists">
     53        <sequence>
     54                    <element name="list" type="tns:slist" minOccurs="0" maxOccurs="unbounded"/>
     55        </sequence>
     56                <attribute name="key" type="string" use="required" />
     57        </complexType>
     58
     59        <complexType name="maps">
     60        <sequence>
     61                    <element name="map" type="tns:map" minOccurs="0" maxOccurs="unbounded"/>
     62        </sequence>
     63                <attribute name="key" type="string" use="required" />
     64        </complexType>
     65
    4866        <complexType name="slist">
    4967        <sequence>
Note: See TracChangeset for help on using the changeset viewer.