[DFDL-WG] dfdl:checkConstraints

Suman Kalia kalia at ca.ibm.com
Mon Feb 4 08:06:57 EST 2013


A Complex type with simple contents cannot have child elements; only 
attributes are allowed .. 

Schema definition error as suggested seems appropriate for the  use case 
described .. 

Suman Kalia
IBM Canada Lab
WMB Toolkit Architect and Development Lead
Tel: 905-413-3923 T/L 313-3923
Email: kalia at ca.ibm.com

For info on Message broker
http://www.ibm.com/developerworks/websphere/zones/businessintegration/wmb.html





From:   Steve Hanson <smh at uk.ibm.com>
To:     Suman Kalia/Toronto/IBM at IBMCA, 
Cc:     dfdl-wg at ogf.org, dfdl-wg-bounces at ogf.org, Mike Beckerle 
<mbeckerle.dfdl at gmail.com>
Date:   02/04/2013 04:42 AM
Subject:        Re: [DFDL-WG] dfdl:checkConstraints



There is another reason for using simple content - you want an element to 
have both a value and element children. It's also not supported by DFDL 
1.0 but it is something that is a candidate for the future, in order to 
handle a format that allows a complex element to have a nil value other 
than empty string. A schema definition error seems appropriate, as we 
don't want a behaviour change. 

I will add to agenda for next WG call. 

Regards

Steve Hanson
Architect, Data Format Description Language (DFDL)
Co-Chair, OGF DFDL Working Group
IBM SWG, Hursley, UK
smh at uk.ibm.com
tel:+44-1962-815848 



From:        Suman Kalia <kalia at ca.ibm.com> 
To:        Mike Beckerle <mbeckerle.dfdl at gmail.com>, 
Cc:        dfdl-wg at ogf.org, dfdl-wg-bounces at ogf.org 
Date:        03/02/2013 23:49 
Subject:        Re: [DFDL-WG] dfdl:checkConstraints 
Sent by:        dfdl-wg-bounces at ogf.org 



Only complex element with simple contents can have facets and the only 
reason one  would create such element is because you want to have 
attributes. Since attributes are not supported in DFDL, my vote is for 
schema definition error.. 

Suman Kalia 
IBM Canada Lab 
WMB Toolkit Architect and Development Lead 
Tel: 905-413-3923 T/L 313-3923 
Email: kalia at ca.ibm.com 

For info on Message broker 
http://www.ibm.com/developerworks/websphere/zones/businessintegration/wmb.html 






From:        Mike Beckerle <mbeckerle.dfdl at gmail.com> 
To:        dfdl-wg at ogf.org, 
Date:        02/01/2013 04:26 PM 
Subject:        [DFDL-WG] dfdl:checkConstraints 
Sent by:        dfdl-wg-bounces at ogf.org 




The error case of an argument that is an XPath to a complex type isn't 
discussed. 

Should this return true (hey, a complex element can't have facets, so 
there are none to be violated), false (errors are false), or cause a 
processing error or schema definition error?

Most conservative choice here is a schema definition error.

-- 
Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology | 
www.tresys.com
--
dfdl-wg mailing list
dfdl-wg at ogf.org
https://www.ogf.org/mailman/listinfo/dfdl-wg --
 dfdl-wg mailing list
 dfdl-wg at ogf.org
 https://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/20130204/30ae4426/attachment-0001.html>


More information about the dfdl-wg mailing list