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: [ubl-ndrsc] xsd:gYearMonth as basis of a new datatype for credit card expiry date?


Failing acceptance of my former suggestion ("kludgy"?), how about
 
<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?
 
Thanks
 
Steve
----- Original Message -----
Sent: Monday, February 02, 2004 10:10 PM
Subject: [ubl-ndrsc] xsd:gYearMonth as basis of a new datatype for credit card expiry date?

NDRSC
 
Just a quick question for LCSC modelling.
 
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?
 
Thanks
 
Stephen Green


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