blob: 87d73e7cfc47c44c634aecc66a4bf26829d6fa9c [file] [log] [blame]
<?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.
-->
<tdml:testSuite suiteName="simple type bases"
description="Simple type definitions and derivations." xmlns:tdml="http://www.ibm.com/xmlns/dfdl/testData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ct="http://w3.ibm.com/xmlns/dfdl/ctInfoset"
xmlns:ex="http://example.com" xmlns="http://example.com"
xsi:schemaLocation="http://www.ibm.com/xmlns/dfdl/testData xsd/tdml.xsd">
<tdml:defineSchema name="nestedGroupRefs">
<dfdl:format ref="ex:daffodilTest1" lengthKind="delimited" />
<xs:element name="root">
<xs:complexType>
<xs:group ref="ex:g0" dfdl:separator="%NL;"></xs:group>
</xs:complexType>
</xs:element>
<xs:group name="g0">
<xs:sequence dfdl:separatorPosition="infix">
<xs:element name="g0c0" minOccurs="0">
<xs:complexType>
<xs:group ref="ex:g1" dfdl:separator="|"></xs:group>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="g1">
<xs:sequence dfdl:separatorPosition="infix">
<xs:element name="g1c0" minOccurs="0">
<xs:complexType>
<xs:group ref="ex:g2" dfdl:separator=","></xs:group>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:group>
<xs:group name="g2">
<xs:sequence dfdl:separatorPosition="infix">
<xs:element name="g2c0" type="xs:string" />
<xs:element name="g2c1" type="xs:string" />
<xs:element name="g2c2" type="xs:string" />
</xs:sequence>
</xs:group>
</tdml:defineSchema>
<tdml:parserTestCase name="nestedGroupRefs" root="root"
model="nestedGroupRefs" description="Simple type defined in terms of primitive int.">
<tdml:document><![CDATA[A,B,C|D,E,F|G,H,I
A,B,C|D,E,F|G,H,I
A,B,C|D,E,F|G,H,I]]></tdml:document>
<tdml:infoset>
<tdml:dfdlInfoset>
<root>
<g0c0>
<g1c0>
<g2c0>A</g2c0>
<g2c1>B</g2c1>
<g2c2>C</g2c2>
</g1c0>
<g1c0>
<g2c0>D</g2c0>
<g2c1>E</g2c1>
<g2c2>F</g2c2>
</g1c0>
<g1c0>
<g2c0>G</g2c0>
<g2c1>H</g2c1>
<g2c2>I</g2c2>
</g1c0>
</g0c0>
<g0c0>
<g1c0>
<g2c0>A</g2c0>
<g2c1>B</g2c1>
<g2c2>C</g2c2>
</g1c0>
<g1c0>
<g2c0>D</g2c0>
<g2c1>E</g2c1>
<g2c2>F</g2c2>
</g1c0>
<g1c0>
<g2c0>G</g2c0>
<g2c1>H</g2c1>
<g2c2>I</g2c2>
</g1c0>
</g0c0>
<g0c0>
<g1c0>
<g2c0>A</g2c0>
<g2c1>B</g2c1>
<g2c2>C</g2c2>
</g1c0>
<g1c0>
<g2c0>D</g2c0>
<g2c1>E</g2c1>
<g2c2>F</g2c2>
</g1c0>
<g1c0>
<g2c0>G</g2c0>
<g2c1>H</g2c1>
<g2c2>I</g2c2>
</g1c0>
</g0c0>
</root>
</tdml:dfdlInfoset>
</tdml:infoset>
</tdml:parserTestCase>
</tdml:testSuite>