Hi Mike

The answer is whatever PSVI would do for the equivalent XML doc and XML schema, which almost certainly is innermost. Not yet implemented by IBM DFDL. Please let us know the answer!

Regards
 
Steve Hanson

IBM Hybrid Integration, Hursley, UK
Architect,
IBM DFDL
Co-Chair,
OGF DFDL Working Group
smh@uk.ibm.com
tel:+44-1962-815848
mob:+44-7717-378890




From:        Mike Beckerle <mbeckerle.dfdl@gmail.com>
To:        "dfdl-wg@ogf.org" <dfdl-wg@ogf.org>
Date:        28/03/2017 22:18
Subject:        [DFDL-WG] clarification: unionMemberSchema
Sent by:        "dfdl-wg" <dfdl-wg-bounces@ogf.org>





If I have nested union types (unions of unions) then does unionMemberSchema give the "innermost" schema component, or the "outermost"?

This feature was added to DFDL to support PSVI infosets. My use case is not that, but in implementing this feature I want to make sure I am doing it consistently with what is needed for the original PSVI need.


Specifically, if I have a valid Element Infoset Item for element 'u' below, does unionMemberSchema give a SCID for an outerUnion or innerUnion schema component?

<element name="u">
  <simpleType>
    <union memberTypes="outerUnion1 outerUnion2"/>
 </simpleType>
</element>

<simpleType name="outerUnion1">
  <union memberTypes="innerUnion1 innerUnion2/>
</simpleType>


<simpleType name="outerUnion2">
  <union memberTypes="innerUnion3 innerUnion4/>
</simpleType>

<simpleType name="innerUnion1">
  <restriction base="xs:int">
    ...
  </restriction>
</simpleType>

<simpleType name="innerUnion2">
  <restriction base="xs:int">
    ...
  </restriction>
</simpleType>

<simpleType name="innerUnion3">
  <restriction base="xs:int">
    ...
  </restriction>
</simpleType>

<simpleType name="innerUnion4">
  <restriction base="xs:int">
    ...
  </restriction>
</simpleType>

Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology | www.tresys.com
Please note: Contributions to the DFDL Workgroup's email discussions are subject to the OGF Intellectual Property Policy
--
 dfdl-wg mailing list
 dfdl-wg@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