| <?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. |
| --> |
| |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" |
| elementFormDefault="qualified" attributeFormDefault="unqualified" |
| > |
| |
| <xs:annotation> |
| <xs:appinfo source="http://www.ogf.org/dfdl/"> |
| <dfdl:format ref="rdefFormat" encoding="utf-8" byteOrder="bigEndian" bitOrder="mostSignificantBitFirst" |
| ignoreCase="no" textStringJustification="left" |
| textStringPadCharacter="0" textTrimKind="none" textPadKind="none" |
| documentFinalTerminatorCanBeMissing="no" nilValueDelimiterPolicy="none" |
| emptyValueDelimiterPolicy="none" escapeSchemeRef="" textOutputMinLength="0" /> |
| |
| </xs:appinfo> |
| </xs:annotation> |
| |
| <xs:annotation> |
| <xs:appinfo source="http://www.ogf.org/dfdl/"> |
| <dfdl:defineFormat name="rdefFormat"> |
| <dfdl:format initiatedContent="no" initiator="" terminator="" leadingSkip="0" trailingSkip="0" separator="" textBidi="no" floating="no" encoding="ascii" byteOrder="bigEndian" bitOrder="mostSignificantBitFirst" |
| ignoreCase="no" outputNewLine="%LF;" |
| truncateSpecifiedLengthString="no" decimalSigned="yes" alignment="1" |
| alignmentUnits="bytes" fillByte="1" occursCountKind="implicit" escapeSchemeRef="" |
| representation="text" lengthUnits="characters" lengthKind="explicit" |
| encodingErrorPolicy='replace'/> |
| </dfdl:defineFormat> |
| </xs:appinfo> |
| </xs:annotation> |
| |
| <xs:element name="element1" type="xs:string" dfdl:initiator="%SOH;" |
| dfdl:terminator="%ETX;" dfdl:length="2"> |
| |
| </xs:element> |
| |
| |
| <xs:element name="element2" type="xs:string" dfdl:initiator="%SP;" |
| dfdl:terminator="%LS;" dfdl:length="2"> |
| |
| </xs:element> |
| |
| <xs:element name="Fixed_text_sequence" dfdl:lengthKind="implicit"> |
| <xs:complexType> |
| |
| <xs:sequence dfdl:sequenceKind="ordered" |
| dfdl:initiatedContent="no"> |
| |
| <xs:element name="element1" dfdl:length="1" |
| dfdl:initiator="%NL;" dfdl:terminator="" dfdl:outputNewLine="%CR;%LF;" |
| dfdl:encoding="UTF-16LE" dfdl:utf16Width="variable"> |
| <xs:simpleType> |
| <xs:restriction base="xs:string"> |
| </xs:restriction> |
| </xs:simpleType> |
| </xs:element> |
| |
| <xs:element name="element2" dfdl:length="1" |
| dfdl:initiator="" dfdl:terminator="%NL;" dfdl:outputNewLine="%CR;%LF;" |
| dfdl:encoding="UTF-16LE" dfdl:utf16Width="variable"> |
| |
| <xs:simpleType> |
| <xs:restriction base="xs:string"> |
| </xs:restriction> |
| </xs:simpleType> |
| </xs:element> |
| </xs:sequence> |
| </xs:complexType> |
| </xs:element> |
| |
| |
| <xs:element name="Fixed_bin_num_sequence" dfdl:alignment="implicit" |
| dfdl:lengthKind="implicit"> |
| <xs:complexType> |
| <xs:sequence dfdl:sequenceKind="ordered" |
| dfdl:initiatedContent="no" dfdl:alignment="implicit"> |
| <xs:element name="binbyte" type="xs:byte" |
| dfdl:lengthUnits="bytes" dfdl:lengthKind="implicit" |
| dfdl:representation="binary" dfdl:binaryNumberRep="binary" |
| dfdl:binaryNumberCheckPolicy="lax" dfdl:alignment="4" |
| dfdl:alignmentUnits="bytes" dfdl:fillByte="%#r7e;" |
| dfdl:leadingSkip="0" dfdl:trailingSkip="0"> |
| |
| </xs:element> |
| <xs:element name="binbyte2" type="xs:byte" |
| dfdl:lengthUnits="bytes" dfdl:lengthKind="implicit" |
| dfdl:representation="binary" dfdl:binaryNumberRep="binary" |
| dfdl:binaryNumberCheckPolicy="lax" dfdl:alignment="4" |
| dfdl:alignmentUnits="bytes" dfdl:fillByte="%#r7e;" |
| dfdl:leadingSkip="0" dfdl:trailingSkip="0"> |
| |
| </xs:element> |
| |
| </xs:sequence> |
| </xs:complexType> |
| </xs:element> |
| |
| </xs:schema> |