You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2020/07/30 19:31:00 UTC
[jira] [Updated] (DAFFODIL-2323) Spurious error messages when
initiator and encoding placed directly on a binary element
[ https://issues.apache.org/jira/browse/DAFFODIL-2323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Beckerle updated DAFFODIL-2323:
------------------------------------
Labels: (was: beginner)
> Spurious error messages when initiator and encoding placed directly on a binary element
> ---------------------------------------------------------------------------------------
>
> Key: DAFFODIL-2323
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2323
> Project: Daffodil
> Issue Type: Bug
> Components: Front End
> Affects Versions: 2.5.0
> Reporter: Mike Beckerle
> Assignee: Josh Adams
> Priority: Major
> Fix For: 3.0.0
>
>
> Below is a schema. It has initiator and encoding in dfdl:format. Schema works fine. Remove them and place them in the element declaration for age. Schema breaks.
>
> {code:java}
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/"
> xmlns:fn="http://www.w3.org/2005/xpath-functions"
> elementFormDefault="qualified">
>
> <xs:annotation>
> <xs:appinfo source="http://www.ogf.org/dfdl/">
> <dfdl:format
> textBidi="no"
> separatorSuppressionPolicy="never"
> floating="no"
> encodingErrorPolicy="replace"
> outputNewLine="%CR;%LF;"
> leadingSkip="0"
> trailingSkip="0"
> textPadKind="none"
> textTrimKind="none"
> truncateSpecifiedLengthString="no"
> escapeSchemeRef=""
> initiator=""
> terminator=""
> encoding="ASCII"
> />
> </xs:appinfo>
> </xs:annotation>
>
> <xs:element name="SimpleBinaryDataFormat" dfdl:representation="binary"
> dfdl:lengthKind="delimited"
> dfdl:initiator="" dfdl:terminator=""
> dfdl:alignment="1" dfdl:alignmentUnits="bytes"
> dfdl:byteOrder="littleEndian">
> <xs:complexType>
> <xs:sequence dfdl:initiator="" dfdl:sequenceKind="ordered"
> dfdl:terminator="" dfdl:separator=""
> dfdl:alignment="1" dfdl:alignmentUnits="bytes"
> dfdl:ignoreCase="yes"
> dfdl:initiatedContent="no">
> <xs:element name="name" type="xs:string"
> dfdl:representation="text"
> dfdl:encoding="ASCII"
> dfdl:terminator="%NUL;"
> dfdl:initiator=""
> dfdl:emptyValueDelimiterPolicy="terminator"
> dfdl:ignoreCase="yes"
> dfdl:lengthKind="delimited"
> dfdl:alignment="1"
> dfdl:alignmentUnits="bytes"
> />
> <xs:element name="age" type="xs:nonNegativeInteger"
> dfdl:representation="binary"
> dfdl:lengthKind="explicit"
> dfdl:lengthUnits="bytes"
> dfdl:length="1"
> dfdl:alignment="1"
> dfdl:alignmentUnits="bytes"
> dfdl:byteOrder="littleEndian"
> dfdl:binaryNumberRep="binary"
> />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> </xs:schema>{code}
> {color:#000000}
> {color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)