[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FpML-AWG xsd:union within enumerations?



I think I'm OK with the idea of enumerations being unioned as long as the codes are all of the same type (e.g. token + token). I don't think it would be a good idea to allow int + token for example - might cause a few implementation problems.

Andrew Jacobs
Director, HandCoded Consulting Ltd.
Director, HandCoded Software Ltd.
Mobile +44 (0)7710 304239


--- On Fri, 1/5/09, Marc Gratacos <MGratacos@xxxxxxxx> wrote:

> From: Marc Gratacos <MGratacos@xxxxxxxx>
> Subject: FpML-AWG xsd:union within enumerations?
> To: "awg@xxxxxxxx" <awg@xxxxxxxx>
> Date: Friday, 1 May, 2009, 9:25 AM
> Hi,
> 
> I'd like to check with the AWG whether FpML allows the
> use of xsd:union within enumerated types. The Commodities WG
> wants to create an enumerated list which is a union of an
> existing FpML list. See below:
> 
> 
> 
> <xsd:simpleType
> name="CommodityDayTypeEnum">
> 
> <xsd:union memberTypes="DayTypeEnum">
> 
> <xsd:simpleType>
> 
> <xsd:annotation>
> 
> <xsd:documentation
> source="http://www.FpML.org";
> xml:lang="en">A day type classification used in
> counting the number of days between two dates for a
> commodity transaction.</xsd:documentation>
> 
> </xsd:annotation>
> 
> <xsd:restriction base="xsd:token">
> 
> <xsd:enumeration value="GasFlow">
> 
> <xsd:annotation>
> 
> <xsd:documentation
> source="http://www.FpML.org";
> xml:lang="en">When calculating the number of
> days between two dates the count includes only gas flow days
> (dates on which gas is delivered).</xsd:documentation>
> 
> </xsd:annotation>
> 
> </xsd:enumeration>
> 
> </xsd:restriction>
> 
> </xsd:simpleType>
> 
> </xsd:union>
> 
> </xsd:simpleType>
> 
> 
> 
> Thanks in advance,
> 
> Marc
> 
> ________________________________
> The information contained in either this email and, if
> applicable, the attachment, are confidential and are
> intended only for the recipient. The contents of either the
> email or the attachment may not be disclosed or used by
> anyone other than the addressee. If you are not the intended
> recipient(s), any use, disclosure, copying, or distribution
> is prohibited and may be unlawful. If you have received this
> communication in error, please notify us by e-mail at
> isda@xxxxxxxx <mailto:isda@xxxxxxxx> then delete the
> e-mail and all attachments and any copies thereof. This
> communication is part of an ISDA process and is not intended
> for unauthorized use or distribution.

-------------------------------------------------------------------------------
To unsubscribe: Email majordomo@xxxxxxxx with a blank subject line
In the body include the line: unsubscribe awg youremail@address
To view archives: http://www.fpml.org/_wgmail/_awgmail/threads.html