xml: bug 484257: allow to define values anywhere in the file
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.core.tests / test_xml_files / test_invalid / state_provider_placement.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ***************************************************************************
3 * Copyright (c) 2016 École Polytechnique de Montréal
4 *
5 * All rights reserved. This program and the accompanying materials are
6 * made available under the terms of the Eclipse Public License v1.0 which
7 * accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *************************************************************************** -->
10 <tmfxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11 xsi:noNamespaceSchemaLocation="xmlDefinition.xsd">
12
13 <stateProvider id="test.element.placement" version="1">
14
15 <location id="CurrentWorker">
16 <stateAttribute type="constant" value="Worker" />
17 <stateAttribute type="eventField" value="workerno" />
18 </location>
19
20 <!-- StateValues -->
21 <definedValue name="WORKING" value="3" />
22 <eventHandler eventName="start">
23 <stateChange>
24 <stateAttribute type="location" value="CurrentWorker" />
25 <stateValue type="int" value="$WORKING" />
26 </stateChange>
27 </eventHandler>
28
29 <definedValue name="NO_FOLLOWING_EVENT_HANDLER" value="5" />
30 <location id="NoFollowingEventHandler">
31 <stateAttribute type="constant" value="Wrong" />
32 <stateAttribute type="eventField" value="place" />
33 </location>
34 </stateProvider>
35 </tmfxml>
This page took 0.031965 seconds and 5 git commands to generate.