You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@daffodil.apache.org by Steve Lawrence <sl...@apache.org> on 2020/04/10 12:53:47 UTC
Re: Bug in Daffodil? "textBidi not allowed to appear on xs:element"
Looks like a bug in our schema that describes and validates DFDL
schemas. The property works as expected in both element form and short
form annotations, e.g.
<xs:element name="foo" type="xs:string">
<xs:annotation>
<xs:appinfo source="http://www.ogf.org/dfdl/">
<dfdl:element>
<dfdl:property name='textBidi'>no</dfdl:property>
</dfdl:element>
</xs:appinfo>
</xs:annotation>
</xs:element>
or
<xs:element name="foo" type="xs:string">
<xs:annotation>
<xs:appinfo source="http://www.ogf.org/dfdl/">
<dfdl:element textBidi="no" />
</xs:appinfo>
</xs:annotation>
</xs:element>
Seems to be just attribute form that's broken.
Note that textBidi properties will be removed in the next version of the
spec, and only textBidi="no" will be allowed, reserving it for potential
future use. Putting textBidi="no" in dfdl:format is the recommended way
to provide this property.
On 4/10/20 8:25 AM, Costello, Roger L. wrote:
> Hi Folks,
>
> I placed dfdl:textBidi="no" on an element declaration. Daffodil says that's not legal:
>
> Attribute 'dfdl:textBidi' is not allowed to appear in element 'xs:element'.
>
> The DFDL specification says this:
>
> Annotation: dfdl:element, dfdl:simpleType (representation text)
>
> Which is right - the DFDL specification or Daffodil?
>
> /Roger
>