| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <testSuite suiteName="AF" xmlns="http://www.ibm.com/xmlns/dfdl/testData" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ct="http://w3.ibm.com/xmlns/dfdl/ctInfoset" |
| xsi:schemaLocation="http://www.ibm.com/xmlns/dfdl/testData /xsd/tdml.xsd"> |
| |
| <parserTestCase name="AF000" root="allZones" model="AF.dfdl.xsd" |
| description="Initiated choices"> |
| <document><![CDATA[[BEGIN ZONE1] |
| x=x value for zone 1 |
| [END ZONE1] |
| [BEGIN ZONE2] |
| y=y value for zone 2 |
| [END ZONE2] |
| [BEGIN ZONE3] |
| z=z value for zone 3 |
| [END ZONE3] |
| ]]></document> |
| <infoset> |
| <dfdlInfoset> |
| <allZones xmlns="http://example.com"> |
| <a> |
| <zone1> |
| <x>x value for zone 1</x> |
| </zone1> |
| </a> |
| <a> |
| <zone2> |
| <y>y value for zone 2</y> |
| </zone2> |
| </a> |
| <a> |
| <zone3> |
| <z>z value for zone 3</z> |
| </zone3> |
| </a> |
| </allZones> |
| </dfdlInfoset> |
| </infoset> |
| </parserTestCase> |
| |
| <parserTestCase name="AF001" root="allZones" model="AF.dfdl.xsd" |
| description="Initiated choices"> |
| <document><![CDATA[[BEGIN ZONE2] |
| y=y value for zone 2 |
| [END ZONE2] |
| [BEGIN ZONE3] |
| z=z value for zone 3 |
| [END ZONE3] |
| [BEGIN ZONE1] |
| x=x value for zone 1 |
| [END ZONE1] |
| ]]></document> |
| <infoset> |
| <dfdlInfoset> |
| <allZones xmlns="http://example.com"> |
| <a> |
| <zone2> |
| <y>y value for zone 2</y> |
| </zone2> |
| </a> |
| <a> |
| <zone3> |
| <z>z value for zone 3</z> |
| </zone3> |
| </a> |
| <a> |
| <zone1> |
| <x>x value for zone 1</x> |
| </zone1> |
| </a> |
| </allZones> |
| </dfdlInfoset> |
| </infoset> |
| </parserTestCase> |
| |
| <parserTestCase name="AF002" root="allZones" model="AF.dfdl.xsd" |
| description="Initiated choices"> |
| <document><![CDATA[[BEGIN ZONE2] |
| y=y value for zone 2 |
| [END ZONE2] |
| ]]></document> |
| <infoset> |
| <dfdlInfoset> |
| <allZones xmlns="http://example.com"> |
| <a> |
| <zone2> |
| <y>y value for zone 2</y> |
| </zone2> |
| </a> |
| </allZones> |
| </dfdlInfoset> |
| </infoset> |
| </parserTestCase> |
| </testSuite> |