You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@daffodil.apache.org by "Costello, Roger L." <co...@mitre.org> on 2020/04/10 12:25:10 UTC
Bug in Daffodil? "textBidi not allowed to appear on xs:element"
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
Re: Bug in Daffodil? "textBidi not allowed to appear on xs:element"
Posted by "Beckerle, Mike" <mb...@tresys.com>.
dfdl:textBidi has to be "no", but I think the fact that we don't tolerate it is a bug. There are a few other cases like this.
I am quite sure we do already have a JIRA ticket about not properly issuing diagnostics for properties that we don't support at all.
Note that textBidi feature has been withdrawn from DFDL v1.0 - there are no implementations so we don't feel it is sensible to standardize that at this time.
________________________________
From: Costello, Roger L. <co...@mitre.org>
Sent: Friday, April 10, 2020 8:25 AM
To: users@daffodil.apache.org <us...@daffodil.apache.org>
Subject: Bug in Daffodil? "textBidi not allowed to appear on xs:element"
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
Re: Bug in Daffodil? "textBidi not allowed to appear on xs:element"
Posted by Steve Lawrence <sl...@apache.org>.
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
>