-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify overlap check doesn't occur with default format
- add test for verification DAFFODIL-1842
- Loading branch information
1 parent
60f87c6
commit ef1c788
Showing
4 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...resources/org/apache/daffodil/section07/property_syntax/property_syntax_overlap1.dfdl.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?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:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" | ||
targetNamespace="urn:overlap1" xmlns:o1="urn:overlap1"> | ||
|
||
<xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/> | ||
|
||
<xs:annotation> | ||
<xs:appinfo source="http://www.ogf.org/dfdl/"> | ||
<dfdl:format ref="o1:GeneralFormat" lengthKind="delimited" | ||
lengthUnits="bytes" encoding="UTF-8" separator="" initiator="" | ||
terminator="" occursCountKind="parsed" ignoreCase="no" | ||
textNumberRep="standard" representation="text" initiatedContent="no" /> | ||
</xs:appinfo> | ||
</xs:annotation> | ||
|
||
<xs:element name="e1" type="xs:string"/> | ||
|
||
</xs:schema> |
42 changes: 42 additions & 0 deletions
42
...resources/org/apache/daffodil/section07/property_syntax/property_syntax_overlap2.dfdl.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?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:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" | ||
targetNamespace="urn:overlap2" xmlns:o1="urn:overlap1" xmlns:o2="urn:overlap2"> | ||
|
||
<xs:include schemaLocation="/org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/> | ||
<xs:import namespace="urn:overlap1" schemaLocation="/org/apache/daffodil/section07/property_syntax/property_syntax_overlap1.dfdl.xsd"/> | ||
|
||
<xs:annotation> | ||
<xs:appinfo source="http://www.ogf.org/dfdl/"> | ||
<dfdl:format ref="o2:GeneralFormat" lengthKind="delimited" | ||
lengthUnits="bits" encoding="UTF-8" separator="" initiator="" | ||
terminator="" occursCountKind="parsed" ignoreCase="no" | ||
textNumberRep="standard" representation="text" initiatedContent="no" /> | ||
</xs:appinfo> | ||
</xs:annotation> | ||
|
||
<xs:element name="outer"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="o1:e1" dfdl:lengthUnits="characters" dfdl:length="5" dfdl:lengthKind="explicit"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters