[DFDL-WG] Daffodil demo site is now running at its permanent UR

Alan Powell alan_powell at uk.ibm.com
Wed Jan 5 09:57:55 CST 2011


Joe

I have managed to run the first example, simpleCSV, on the web site and it 
appears to work but I am surprised because the dfdl schema doesn't look 
correct at all

The 'matrix' of numbers  is defined as 

Data:
Creator: NCSA
Date: Mon Feb 23 15:20:47 CST 2009
0,1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9,10
2,3,4,5,6,7,8,9,10,11
3,4,5,6,7,8,9,10,11,12
4,5,6,7,8,9,10,11,12,13
5,6,7,8,9,10,11,12,13,14
6,7,8,9,10,11,12,13,14,15
7,8,9,10,11,12,13,14,15,16
8,9,10,11,12,13,14,15,16,17
9,10,11,12,13,14,15,16,17,18

Schema
<schema xmlns="http://www.w3.org/2001/XMLSchema" 
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                 xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0" 
                 targetNamespace="http://www.example.org/example1/">

  <!-- CSV with metadata header -->

  <element name="matrix" type="matrixType"/>

  <element name="table" type="SimpleTable"/>

  <complexType name="SimpleTable">
    <sequence>
      <element name="hdrblock" type="header"/>
      <element name="matrix" type="matrixType"/>
    </sequence>
  </complexType>
 
  <complexType name="header">
    <sequence>
      <!-- other dfdl: -->
      <element name="Creator" type="xsd:string" 
                        dfdl:terminator="%NL;" dfdl:initiator="Creator:" 
                        dfdl:encoding="ASCII" dfdl:representation="text" 
                        dfdl:lengthKind="delimited"/>
      <element name="Date" type="xsd:string" 
                        dfdl:terminator="%NL;" dfdl:initiator="Date:"
                        dfdl:encoding="ASCII" dfdl:representation="text"/>
    </sequence>
  </complexType>
 
  <complexType name="matrixType"> 
    <sequence>
      <element name="row" maxOccurs="unbounded">
                 <complexType>
                   <sequence>
                     <element name="cell" type="xsd:int" 
maxOccurs="unbounded" 
                                      dfdl:terminator="%NL;" 
dfdl:separator="," 
                                      dfdl:separatorPolicy="require" 
dfdl:encoding="ASCII" 
                                      dfdl:separatorPosition="infix" 
dfdl:representation="text"
                                      dfdl:lengthKind="delimited" 
 dfdl:documentFinalTerminatorCanBeMissing="yes"/>
                   </sequence>
                 </complexType>
      </element>
    </sequence>
  </complexType>

</schema>





but some of the dfdl properties on matrixType in particular are in the 
wrong place. I think it should be something like

<schema xmlns="http://www.w3.org/2001/XMLSchema" 
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                 xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0" 
                 targetNamespace="http://www.example.org/example1/"
                         dfdl:documentFinalTerminatorCanBeMissing="yes">
  <!-- CSV with metadata header -->

  <element name="matrix" type="matrixType"/>

  <element name="table" type="SimpleTable"/>

  <complexType name="SimpleTable">
    <sequence>
      <element name="hdrblock" type="header"/>
      <element name="matrix" type="matrixType"/>
    </sequence>
  </complexType>
 
  <complexType name="header">
    <sequence>
      <!-- other dfdl: -->
      <element name="Creator" type="xsd:string" 
                        dfdl:terminator="%NL;" dfdl:initiator="Creator:" 
                        dfdl:encoding="ASCII" dfdl:representation="text" 
                        dfdl:lengthKind="delimited"/>
      <element name="Date" type="xsd:string" 
                        dfdl:terminator="%NL;" dfdl:initiator="Date:"
                        dfdl:encoding="ASCII" dfdl:representation="text"/>
    </sequence>
  </complexType>

  <complexType name="matrixType"> 
    <sequence>
      <element name="row" maxOccurs="unbounded" >
                 <complexType>
                   <sequence dfdl:terminator="%NL;" dfdl:separator=","
                                            dfdl:separatorPosition="infix" 
 dfdl:separatorPolicy="require"  >
                     <element name="cell" type="xsd:int" 
maxOccurs="unbounded" 
                                      dfdl:encoding="ASCII" 
                                       dfdl:representation="text"
                                      dfdl:lengthKind="delimited" 
                                      />
                   </sequence>
                 </complexType>
      </element>
    </sequence>
  </complexType>
</schema>

There are also, of course, a lot of required properties (eg 
dfdl:lengthKind and dfdl:representation)  missing from all the schema 
components but I assume that is due to the lack of property defaulting 
support.
 
Regards

 
Alan Powell
 
Development - MQSeries, Message Broker, ESB
IBM Software Group, Application and Integration Middleware Software
-------------------------------------------------------------------------------------------------------------------------------------------
IBM
MP211, Hursley Park
Hursley, SO21 2JN
United Kingdom
Phone: +44-1962-815073
e-mail: alan_powell at uk.ibm.com




From:   Alan Powell/UK/IBM at IBMGB
To:     dfdl-wg at ogf.org
Date:   04/01/2011 09:08
Subject:        [DFDL-WG] Daffodil demo site is now running at its 
permanent UR
Sent by:        dfdl-wg-bounces at ogf.org




  
Regards 
  
Alan Powell 
  
Development - MQSeries, Message Broker, ESB 
IBM Software Group, Application and Integration Middleware Software 
------------------------------------------------------------------------------------------------------------------------------------------- 

IBM 
MP211, Hursley Park 
Hursley, SO21 2JN 
United Kingdom 
Phone: +44-1962-815073 
e-mail: alan_powell at uk.ibm.com


----- Forwarded by Alan Powell/UK/IBM on 04/01/2011 09:07 ----- 

From:        Joe Futrelle <futrelle at ncsa.uiuc.edu> 
To:        "Robert E. McGrath" <remcgrat at illinois.edu> 
Cc:        Alan Powell/UK/IBM at IBMGB 
Date:        03/01/2011 19:56 
Subject:        for the WG 



FWIW, the Daffodil demo site is now running at its permanent URL:

http://daffodil.ncsa.uiuc.edu/

As we work on Daffodil to bring it into compliance with the spec, we will 
update the parser on the site and keep a change log.

I also have ideas for a much easier interface for the site, which I can 
develop once higher-priority fixes are complete.

--
Joe Futrelle
Cyberenvironments and Technologies
National Center for Supercomputing Applications
http://www.ncsa.uiuc.edu/People/futrelle






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 





--
  dfdl-wg mailing list
  dfdl-wg at 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





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ogf.org/pipermail/dfdl-wg/attachments/20110105/783e4d0b/attachment.html 


More information about the dfdl-wg mailing list