James,
Taylor excerpted this from our tests. It uses checkConstraints along with
an enumeration constraint. I am assured there are negative tests as well as
this one.
....mike
------------------------------
*From:* Taylor Wise [twise@tresys.com]
*Sent:* Tuesday, March 26, 2013 9:11 AM
*To:* mbeckerle.dfdl@gmail.com
*Subject:* RE: [DFDL-WG] checkConstraints example?
xs:annotation
http://www.ogf.org/dfdl/dfdl-1.0/"*>
xs:simpleType
<!--
Test name: checkEnumeration_Pass_Subset
Schema: checkConstraints
Purpose: This test demonstrates the use of validation for the
enumeration facet.
-->
tdml:documentSATURDAY
tdml:infoset
tdml:dfdlInfoset
<e>SATURDAY</e>
*From:* Mike Beckerle [mailto:mbeckerle.dfdl@gmail.com]
*Sent:* Tuesday, March 26, 2013 9:03 AM
*To:* Taylor Wise
*Subject:* Fwd: [DFDL-WG] checkConstraints example?
Taylor, do we have a test that calls checkConstraints to check enumeration
facets?
Is that even implemented yet?
...mike
---------- Forwarded message ----------
From: *Garriss Jr., James P.*
https://exchange10.columbia.tresys.com/owa/redir.aspx?C=aa8b7b062a6b46f4a9be1653e2fa9bf2&URL=mailto%3ajgarriss%40mitre.org
Date: Tue, Mar 26, 2013 at 7:28 AM
Subject: [DFDL-WG] checkConstraints example?
To: "dfdl-wg@ogf.orghttps://exchange10.columbia.tresys.com/owa/redir.aspx?C=aa8b7b062a6b46f4a9be1653e2fa9bf2&URL=mailto%3adfdl-wg%40ogf.org"
https://exchange10.columbia.tresys.com/owa/redir.aspx?C=aa8b7b062a6b46f4a9be1653e2fa9bf2&URL=mailto%3adfdl-wg%40ogf.org
Can you please supply an example of using checkConstraints to valid an
enumeration? There’s not one in the spec, and none of the tutorials I have
demo this.
Suppose I have this DFDL:
xsd:simpleType
…
TIA
--
dfdl-wg mailing list
dfdl-wg@ogf.orghttps://exchange10.columbia.tresys.com/owa/redir.aspx?C=aa8b7b062a6b46f4a9be1653e2fa9bf2&URL=mailto%3adfdl-wg%40ogf.org
https://www.ogf.org/mailman/listinfo/dfdl-wghttps://exchange10.columbia.tresys.com/owa/redir.aspx?C=aa8b7b062a6b46f4a9be1653e2fa9bf2&URL=https%3a%2f%2fwww.ogf.org%2fmailman%2flistinfo%2fdfdl-wg
--
Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology |
www.tresys.comhttps://exchange10.columbia.tresys.com/owa/redir.aspx?C=aa8b7b062a6b46f4a9be1653e2fa9bf2&URL=http%3a%2f%2fwww.tresys.com