UBL Naming and Design Rules SC

Re: [ubl-ndrsc] xsd:gYearMonth as basis of a new datatype for credit card expiry date?

  • 1.  Re: [ubl-ndrsc] xsd:gYearMonth as basis of a new datatype for credit card expiry date?

    Posted 02-02-2004 22:29
     MHonArc v2.5.0b2 -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    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