| <?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. |
| --> |
| |
| <schema xmlns="http://www.w3.org/2001/XMLSchema" |
| targetNamespace="http://example.com" xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://example.com"> |
| |
| <annotation> |
| <appinfo source="http://www.ogf.org/dfdl/"> |
| <dfdl:format lengthKind="delimited" separator="" |
| alignment="1" alignmentUnits="bytes" textTrimKind="padChar" |
| trailingSkip="0" leadingSkip='0' |
| encoding="US-ASCII" ignoreCase='no' initiator="" |
| terminator="" initiatedContent="no" textNumberRep="standard" |
| separatorSuppressionPolicy="anyEmpty" separatorPosition="infix" |
| documentFinalTerminatorCanBeMissing='yes' |
| byteOrder="bigEndian" binaryNumberRep='binary' |
| lengthUnits="characters" |
| representation="text" |
| textStandardZeroRep="0" |
| textNumberRounding="explicit" |
| textNumberRoundingMode="roundUp" |
| textNumberRoundingIncrement="1" |
| textStandardInfinityRep="INFINITO" |
| textStandardNaNRep="NaN" |
| textStandardExponentRep="^" |
| textNumberCheckPolicy="strict" |
| escapeSchemeRef='' |
| occursCountKind='parsed'/> |
| </appinfo> |
| </annotation> |
| |
| <!-- Text number properties --> |
| |
| <element name="list" type="tns:example1" /> |
| |
| <complexType name="example1"> |
| <sequence> |
| <sequence dfdl:separator="***" dfdl:terminator="%NL;"> |
| <element name="x" type="xsd:double" maxOccurs="unbounded" |
| dfdl:lengthKind="delimited" dfdl:textNumberRep="standard" |
| dfdl:textNumberJustification="right" |
| dfdl:textNumberPadCharacter="%SP;" dfdl:textStandardBase="10" |
| dfdl:textNumberPattern="###,###.##;-###,###.##" |
| dfdl:textStandardDecimalSeparator="!" |
| dfdl:textStandardGroupingSeparator="#" |
| dfdl:textStandardInfinityRep="INFINITO" |
| dfdl:textStandardNaNRep="NNN" dfdl:textStandardZeroRep="ZERO NA NIL" |
| dfdl:ignoreCase="yes" /> |
| </sequence> |
| <sequence dfdl:separator="***" dfdl:terminator="%NL;"> |
| <element name="y" type="xsd:double" maxOccurs="unbounded" |
| dfdl:lengthKind="delimited" dfdl:textNumberRep="standard" |
| dfdl:textNumberJustification="right" |
| dfdl:textNumberPattern="####" |
| dfdl:textNumberPadCharacter="%SP;" dfdl:textStandardBase="16" /> |
| </sequence> |
| <sequence dfdl:separator="***" dfdl:terminator="%NL;"> |
| <element name="z" type="xsd:float" maxOccurs="unbounded" |
| dfdl:lengthKind="delimited" dfdl:textNumberJustification="right" |
| dfdl:textNumberPattern="####" |
| dfdl:textNumberPadCharacter="%SP;" /> |
| </sequence> |
| </sequence> |
| </complexType> |
| </schema> |