[DFDL-WG] How to parse an email address

Garriss Jr., James P. jgarriss at mitre.org
Fri Feb 22 11:11:08 EST 2013


Suppose I want to model an email address:

  dfdl-wg at ogf.org

It's a sequence of a string, an a character (@), and a string.

In the MBTK it might look like this:

[cid:image001.png at 01CE10EC.6600AE50]

The problem, of course, is that the parser will grab all of "dfdl-wg at ogf.org" instead of just "dfdl-wg".  Setting validation facets doesn't help, b/c validation happens after parsing.  Setting @ as a separator or terminator would work, but that doesn't seem right either, as the @ is part of the email address, and I would want to keep it in the infoset.

How do I think about this problem?

TIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20130222/4a66690e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2914 bytes
Desc: image001.png
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20130222/4a66690e/attachment.png>


More information about the dfdl-wg mailing list