[DFDL-WG] assert and discriminator - no more before/after

Mike Beckerle mbeckerle.dfdl at gmail.com
Thu Sep 13 11:31:52 EDT 2012


I am looking in the spec for guidance about the evaluation order of assert
statements.

We used to have before/after control properties, but eliminated them.

If I annotate a simpleType'd element with an assert that says { . eq 'x' },
that of necessity references the current value, so must execute after the
value has been computed.

If on the other hand I annotate a complexType element with a discriminator
that says { ../flag eq 'C1' } then this of necessity must execute before I
go after the contents because the whole point is to evalutate the
discriminator first.

Did we ever articulate exactly what the rules are here about order of
evaluation?

Thanks for reminders

..mikeb

-- 
Mike Beckerle | OGF DFDL WG Co-Chair
Tel:  781-330-0412
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20120913/ac096bd8/attachment.html>


More information about the dfdl-wg mailing list