Hello DFDL community,

I have a simple data format:

        Label: Message

Here is an example data:

        Dear Sir: Thank you for your response.

How to characterize the form of that data format? I can think of three 
different perspectives:

Perspective #1: There is a sequence of strings, separated by a colon.

Perspective #2: There is a label terminated by a colon, followed by a message.

Perspective #3: There is a label (no colon in it), a colon, and a message.

The DFDL Schema is designed differently, depending on the perspective. And, the 
XML that is generated differs, depending on the perspective. For example, the 
first two perspectives might yield this XML:

<really-simple-format>
  <label>Dear Sir</label>
  <message>Thank you for your response.</message>
</really-simple-format>

Whereas the last perspective might yield this XML:

<really-simple-format>
  <label>Dear Sir</label>
  <colon>:</colon>
  <message>Thank you for your response.</message>
</really-simple-format>

Question: Can you think of any other perspectives? 

/Roger

Reply via email to