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

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-ndrsc message

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


Subject: RE: URGENT: Adding a Restricted datatype


Hello Lisa,

I suggest that we follow for interoperability reasons always the ISO 8601 standard, if we're representing any date or time information. The representation DD/MM/YY or MM/YY is not compliant to ISO 8601. The equivalent ISO 8601 representation is "CCYY-MM", which can be represented by the built-in data type "xsd:gYearMonth". Lisa mentioned this in her mail.

The correct definition of "ExpiryDate" is:

	<simpleType name="ExpiryDate">
		<restriction base="xsd:gYearMonth"/>
	</simpleType>

Description: The "ExpiryDate" based on the CCT "Date" in a restricted form. This restriction would be expressed by the built-in data type "g:YearMonth" directly and no attributes (supplementary components) are necessary. Therefore, this data type can be defined as "simpleType".

Kind regards,

	Gunther

-----Original Message-----
From: Lisa-Aeon [mailto:lseaburg@aeon-llc.com] 
Sent: Mittwoch, 4. Februar 2004 18:38
To: Stuhec, Gunther; Garrett Minakawa; Stephen Green
Cc: Sue Probert
Subject: URGENT: Adding a Restricted datatype

On our NDRSC call today we had a request for a datatype for Credit Card
expiration dates.  We discussed it around, and came up with different ideas.
Maybe you have already come up against this and have an answer.

The request is:
Would it be feasible to use xsd:gYearMonth as the base for a new DataType
(in the CCTS sense) to cater for MM/YY (albeit YYYY-MM in ISO short date
format) as used with Credit Card expiry dates?

One Idea of how to solve:

<xsd:simpleType name="expiryDate">
   <xsd:restriction base="xsd:string">
      <xsd:pattern value="([0-3][0-9]/\)?[0-1][0-2]/\[0-9]{2}"/>
   </xsd:restriction base="xsd:string">
</xsd:simpleType name="expiryDate">

where ([0-3][0-9]/\)?[0-1][0-2]/\[0-9]{2} is
either    DD/MM/YY    (the DD/ is optional depending on the card)
or         MM/YY

Is this exactly how it would appear in the UBL DataType Schema?

Can you get back to us quickly?  Thanks.

Lisa




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004


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