Opened 6 years ago

Last modified 23 months ago

#8854 closed defect

does not work with combination of multiselect + value_list — at Initial Version

Reported by: skyper Owned by: team
Priority: normal Milestone: 13.12
Component: Core Version:
Keywords: multiselect value list Cc:

Description

I get following error message when using multiselect in combination with value_list:

org.openstreetmap.josm.tools.XmlObjectParser$PresetParsingException: cvc-complex-type.4: Attribute 'values' must appear on element 'multiselect'. (at line 4,846, column 77)

preset code which works fine in JOSM:

        <item name="Power Generator" icon="presets/power.png" type="node,closedway">
            <link href="http://wiki.openstreetmap.org/wiki/Tag:power=generator" />
            <label text="Edit Power Generator" />
            <key key="power" value="generator" />
            <text key="name" text="Name" />
            <multiselect key="generator:source" text="Source" delimiter=";">   <!--    <list_entry value="" display_value="" short_description="" icon="" icon_size=""/> -->
                <list_entry value="biofuel" icon="http://wiki.openstreetmap.org/w/images/6/6b/Bahnpirat-power_source-biofuel.svg" />
                <list_entry value="biogas" icon="http://wiki.openstreetmap.org/w/images/6/6b/Bahnpirat-power_source-biofuel.svg" />
                <list_entry value="biomass" icon="http://wiki.openstreetmap.org/w/images/6/6b/Bahnpirat-power_source-biofuel.svg" />
                <list_entry value="coal" icon="http://wiki.openstreetmap.org/w/images/4/4b/Bahnpirat-power_source-coal.svg" />
                <list_entry value="diesel" icon="http://wiki.openstreetmap.org/w/images/f/f7/Bahnpirat-power_source-oil.svg" />
                <list_entry value="gas" icon="http://wiki.openstreetmap.org/w/images/e/e6/Bahnpirat-power_source-gas.svg" />
                <list_entry value="gasoline" icon="http://wiki.openstreetmap.org/w/images/f/f7/Bahnpirat-power_source-oil.svg" />
                <list_entry value="geothermal" />
                <list_entry value="hydro" icon="http://wiki.openstreetmap.org/w/images/e/ed/2020_stBN_powergensource_water.svg" />
                <list_entry value="nuclear" icon="http://wiki.openstreetmap.org/w/images/3/3e/2020_stBN_powergensource_nuclear.svg" />
                <list_entry value="oil" icon="http://wiki.openstreetmap.org/w/images/f/f7/Bahnpirat-power_source-oil.svg" />
                <list_entry value="osmotic" icon="http://wiki.openstreetmap.org/w/images/e/ed/2020_stBN_powergensource_water.svg" />
                <list_entry value="solar" icon="http://wiki.openstreetmap.org/w/images/2/22/2020_stBN_powergensource_sun.svg" />
                <list_entry value="tidal" icon="http://wiki.openstreetmap.org/w/images/e/ed/2020_stBN_powergensource_water.svg" />
                <list_entry value="waste" icon="http://wiki.openstreetmap.org/w/images/2/2f/Bahnpirat-power_source-waste.svg" />
                <list_entry value="wave" icon="http://wiki.openstreetmap.org/w/images/e/ed/2020_stBN_powergensource_water.svg" />
                <list_entry value="wind" icon="http://wiki.openstreetmap.org/w/images/0/03/2020_stBN_powergensource_wind.svg" />
            </multiselect>
            <multiselect key="generator:method" text="Method" values="anaerobic_digestion;combustion;dam;fission;fusion;gasification;photovoltaic;pumped-storage;pumping;pyrolysis;run-of-the-river;thermal" />
            <combo key="generator:type" text="Generator Type" values="cold-fusion,combined_cycle,francis_turbine,gas_turbine,heat_pump,horizontal_axis,kaplan_turbine,pelton_turbine,reciprocating_engine,solar_photovoltaic_panel,solar_thermal_collector,steam_generator,steam_turbine,stellarator,tokamak,vertical_axis,BWR-1,BWR-2,BWR-3,BWR-4,BWR-5,BWR-6,CANDU,CPR-1000,EPR,ICF,PWR,RBMK-1000,RBMK-1500,VVER" />
        </item>
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-07-05 01:34:27
Last Changed Author: Don-vip
Revision: 6048
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-07-03 20:38:17 +0200 (Wed, 03 Jul 2013)
Last Changed Rev: 6048

Identification: JOSM/1.5 (6048 en) Linux Debian GNU/Linux 7.1 (wheezy)
Memory Usage: 119 MB / 592 MB (19 MB allocated, but free)
Java version: 1.6.0_27, Sun Microsystems Inc., OpenJDK 64-Bit Server VM
VM arguments: [-Djosm.home=$HOME/.josm-test]
Program arguments: [--language=en]
Dataset consistency test: No problems found

Plugin: tagging-preset-tester (29725)

Change History (1)

Changed 6 years ago by skyper

Attachment: JOSM_8854.png added

screenshot of error

Note: See TracTickets for help on using tickets.