Hello Jyoti
Welcome to DFDL
DFDL V1 only directly supports single
dimension arrays through the use of the occursxxx properties defined in
section 19. A 2D array must be defined as an array of array. The following
is a simplified version of the example in section 20 that shows a fixed
number of rows and columns.
<xs:element name="rows"
dfdl:occursCountKind="explicit"
dfdl:occursCount="5">
<xs:complexType>
<xs:sequence>
<xs:element
name=”cols” type=”xs:float”
dfdl:occursCountKind=”explicit”
dfdl:occursCount=”10“ />
</xs:sequence>
</xs:complexType>
</xs:element>
In DFDL V1 we have primarily concentrated
on structured commercial formats so have not thought too much about image
files etc althought it is intended that DFDL is capable of defining these
types of data.
Alan Powell
MP 211, IBM UK Labs, Hursley, Winchester, SO21 2JN, England
Notes Id: Alan Powell/UK/IBM email: alan_powell@uk.ibm.com
Tel: +44 (0)1962 815073
Fax: +44 (0)1962 816898
From:
| "Jyotishman Pathak" <jyotishman.mayo@gmail.com>
|
To:
| dfdl-wg@ogf.org
|
Date:
| 23/12/2008 21:38
|
Subject:
| [DFDL-WG] DFDL Example for 2D arrays |
Hello all,
I am a newbie in DFDL, and trying to grasp some of the key aspects going
through the latest core spec: http://forge.gridforum.org/sf/go/doc15397?nav=1
Pardon me if this question is nonsensical, but I wonder if there are any
examples of how a DFDL schema/document will look like if Matrix.data is
representing a 2D array? Or if there are any sample DFDL documents for
an image file (jpg, png etc.). The simple example that you have in pages
19--20 of the core spec is indeed helpful to understand the guts of the
idea, but I would like to see somewhat more complex examples.
I look forward to your help.
Thanks,
- Jyoti
--
dfdl-wg mailing list
dfdl-wg@ogf.org
http://www.ogf.org/mailman/listinfo/dfdl-wg
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU