OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ebxml-bp message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [ebxml-bp] Proposal for minOccurs and maxOccurs attributes toAttachment


YANO Keisuke (????) wrote:

>ebBP TC members,
>
>I would like to propose to add the minOccurs and maxOccurs attributes
>to the Attachment element of BPSS.  An example is following:
>
>    <Attachment name="SpecificationAttachment" 
>        businessDocument="BD:SpecAttachment" businessDocumentIDRef="att"
>        mimeType="application/pdf"
>        minOccurs="0" maxOccurs="5"/>  <!-- here -->
>
>These attributes are similar to the same name attributes of the
>Constituent element of ebXML CPPA.  The XML schema fragment for these
>attributes in the Attachment element definition may be following.
>
>    <xsd:attribute name="minOccurs" type="xsd:nonNegativeInteger"/>
>    <xsd:attribute name="maxOccurs" type="xsd:nonNegativeInteger"/>
>
>This proposal is based on the requirement of the ECALGA business
>process specifications developed by JEITA [1].  They need to specify
>that an attachment is optional (i.e., minOccurs="0" and
>maxOccurs="1").  Also, it is likely that they will want to specify
>that the number of attachments is arbitrary in the future.
>
>  
>
mm1: Yano-san,
In preparing to discuss this for Monday's TC call, 18 Oct, I'd like to 
discuss further. Here is the current draft schema that at first glance 
appears to meet your needs (see *** below in schema snippet):

        <xsd:complexType name="DocumentEnvelopeType">
        <xsd:sequence>
        <xsd:element ref="Documentation" minOccurs="0"
        maxOccurs="unbounded"/>
        **** <xsd:element ref="Attachment" minOccurs="0"
        maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:attributeGroup ref="name"/>
        <xsd:attribute name="businessDocumentIDREF" type="xsd:IDREF"
        use="required"/>
        <xsd:attribute name="isPositiveResponse" type="xsd:boolean"/>
        <xsd:attributeGroup ref="documentSecurity"/>
        </xsd:complexType>
        <xsd:element name="BusinessDocument" type="BusinessDocumentType"/>
        <xsd:complexType name="BusinessDocumentType">
        <xsd:sequence>
        <xsd:element ref="Documentation" minOccurs="0"
        maxOccurs="unbounded"/>
        <xsd:element ref="ConditionExpression" minOccurs="0"/>
        <xsd:element ref="Specification" maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:attributeGroup ref="name"/>
        </xsd:complexType>
        *** <xsd:element name="Attachment">
        <xsd:complexType>
        <xsd:sequence>
        <xsd:element ref="Documentation" minOccurs="0"
        maxOccurs="unbounded"/>
        <xsd:element ref="Specification" maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:attributeGroup ref="name"/>
        <xsd:attribute name="businessDocumentIDREF" type="xsd:IDREF"
        use="required"/>
        <xsd:attribute name="mimeType" type="xsd:string" use="optional"/>
        <xsd:attributeGroup ref="documentSecurity"/>
        </xsd:complexType>
        **** <xsd:unique name="Attachment-ID">
        <xsd:selector xpath="."/>
        <xsd:field xpath="nameID"/>
        </xsd:unique>
        </xsd:element>

We've updated to allow a user to specify multiple specification 
references, as we were seeking to have the attachment references as 
consistent as possible to the business documents. We had lengthy 
discussions about what an attachment might be (substantive or not, 
0...n, could metadata be made available around the attachment). Please 
review and comment further. We may see more changes in future versions. 
Thank you.

>FYI, ECALGA is a B2B electronic commerce specification that adopts
>BPSS, CPA, and ebMS for electronics and IT industries.  You might be
>insterested in my article [2] on JEITA's interoperability test using
>ebXML.
>
>[1] Japan Electronics and Information Technology Industries Association,
>    http://ec.jeita.or.jp/
>[2] Original Japanese version: 
>     http://xml.fujitsu.com/jp/column/frontline/ebxml_2.html
>    English translation:
>     http://www.fujitsu.com/services/solutions/xml/frontline/XML_ebxml2.html
>
>Regards,
>
>Yano Keisuke
>  
>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]