[DFDL-WG] Fwd: [dfdl] initiatedContent w/o initiators

Mike Beckerle mbeckerle.dfdl at gmail.com
Fri May 31 01:34:10 EDT 2013


Forgot to copy the workgroup.

---------- Forwarded message ----------
From: Mike Beckerle <mbeckerle.dfdl at gmail.com>
Date: Fri, May 31, 2013 at 1:32 AM
Subject: Re: [DFDL-WG] [dfdl] initiatedContent w/o initiators
To: "Garriss Jr., James P." <jgarriss at mitre.org>


You need two nested choices. Only the inner one uses initiated content.

<xsd:choice>
    <xsd:choice dfdl:initiatedContent="yes">
           <xsd:element ref="Date"/>

           <xsd:element ref="From"/>

           <xsd:element ref="MessageId"/>

            <xsd:element ref="Subject"/>

    </xsd:choice>

    <!-- all unknown and unwanted headers -->

    <xsd:sequence dfdl:hiddenGroupRef="UnwantedHeadersGroup"/>

</xsd:choice>


On Thu, May 30, 2013 at 2:49 PM, Garriss Jr., James P.
<jgarriss at mitre.org>wrote:

>  Spec says:****
>
> ** **
>
> It is a schema definition error if any children have their dfdl:initiator
> property set to the empty string.****
>
> ** **
>
> Does that include a sequence with a hiddenGroupRef?****
>
> ** **
>
> For example, part of a schema for email headers is this:****
>
> ** **
>
>
> <xsd:choice dfdl:initiatedContent="yes">****
>
>
> <xsd:element ref="Date"/>****
>
>
> <xsd:element ref="From"/>****
>
>
> <xsd:element ref="MessageId"/>****
>
>
> <xsd:element ref="Subject"/>****
>
>
> <!-- all unknown and unwanted headers -->****
>
>
> <xsd:sequence dfdl:hiddenGroupRef="UnwantedHeadersGroup"/>****
>
>
> </xsd:choice>****
>
> ** **
>
> Date, From, and the other headers are all elements with initiators, but
> UnwantedHeadersGroup does not have an initiator (because I don’t know it a
> priori).  ****
>
> ** **
>
> Should this throw an error in a DFDL implementation?  I suspect it should,
> though I hope it shouldn’t.****
>
> --
>   dfdl-wg mailing list
>   dfdl-wg at ogf.org
>   https://www.ogf.org/mailman/listinfo/dfdl-wg
>



-- 
Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology |
www.tresys.com




-- 
Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology |
www.tresys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ogf.org/pipermail/dfdl-wg/attachments/20130531/8801c4cd/attachment.html>


More information about the dfdl-wg mailing list