[DFDL-WG] question/clarification - asserts using test patterns

Mike Beckerle mbeckerle.dfdl at gmail.com
Mon Oct 15 14:26:35 EDT 2012


Question: Is an assertion using a regular expression pattern allowed on

(a) xs:string type elements
(b) any data with text representation
(c) any data with text or binary representation

and, does the regular expression apply to the representation or the logical
data value?

(a) is the only case that is not ambiguous, because the representation and
the logical value are the same thing.

For everything else, there’s the question of whether the test is on the
representation or the logical value. If it's the logical value, then how is
a regex made meaningful on a logical value that is, for example, a number,
without defining a canonical representation to which the logical value is
converted?

If it's to apply to the representation, then exactly what data? (Eg., what
grammar region) is subject to the regex?

...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/20121015/45d9805a/attachment.html>


More information about the dfdl-wg mailing list