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

 


Help: OASIS Mailing Lists Help | MarkMail Help

cam message

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


Subject: CAM and ISO8601 and CCTS DT Date/Time types support with XSLT


Just wanted to share some thoughts on this as I recently implemented the XSLT logic for extended regexp mapping to and from CAM masks along with content generation into XML instances.
 
Once this UN/CEFACT CCTS work on Datatypes is complete - we should be easily able to relate that to CAM template parsing.
 
See tables below for examples.
 
Thanks, DW
==============================================

Date

 

ISO 8601 Format

xsd: Base Type

xsd: regular expression

YYYY-MM-DD

xsd:date

N/A

YYYY-MM

xsd:gYearMonth

N/A

YYYY

xsd:gYear

N/A

--MM-DD

xsd:gMonthDay

N/A

--MM--

xsd:gMonth

N/A

---DD

xsd:gDay

N/A

-DDD

 ccts:TimePointType_ISO-DDD

-[0-9]{3}

YYYY-Www

 ccts:TimePointType_ISO YYYY-Www

[0-9]{4}-W[0-9]{2}

-Www-D

 ccts:TimePointType_ISO -Www-D

-W[0-9]{2}-[0-9]{1}

-Www

 ccts:TimePointType_ISO -Www

-W[0-9]{2}

-W-D

 ccts:TimePointType_ISO -W-D

-W-[0-9]{1}

 

Time

 

ISO 8601 Format

xsd: Base Type

xsd: regular expression

hh:mm:ss

xsd:time

N/A

hh:mm:ssZ

xsd:time

N/A

hh:mm:ss+hh:mm

xsd:time

N/A

hh:mm:ss,s

xsd:time

N/A

hh:mm:ss,sZ

xsd:time

N/A

hh:mm:ss,s+hh:mm

xsd:time

N/A

hh:mm

ccts:TimePointType_ISOhh:mm

[0-9]{2}[0-9]{2}:[0-9]{2}[0-9]{2}

hh

ccts:TimePointType_ISOhh

[0-9]{2}[0-9]{2}

-mm:ss

ccts:TimePointType_ISO-mmss

-[0-9]{2}[0-9]{2}:[0-9]{2}[0-9]{2}

-mm

ccts:TimePointType_ISO-mm

-[0-9]{2}[0-9]{2}

--ss

ccts:TimePointType_ISO--ss

--[0-9]{2}[0-9]{2}

-mm:ss,s

ccts:TimePointType_ISO-mmss,s

-[0-9]{2}[0-9]{2}:[0-9]{2}[0-9]{2},[0-9]*

--ss,s

ccts:TimePointType_ISO--ss,s

--[0-9]{2}[0-9]{2},[0-9]*

 

DateTime (combinations of Date and Time representations)

 

ISO 8601 Format

xsd: Base Type

Xsd: regular expression

YYYY-MM-DDThh:mm:ss

xsd:dateTime

N/A

etc.

 

 

 

 

 

--MM-DDThh:mm:ss

ccts:TimePointType_ISO--MM-DDThh:mm:ss

--[0-9]{2}-[0-9]{2}T[0-9]{2}[0-9]{2}:[0-9]{2}[0-9]{2}:[0-9]{2}[0-9]{2}(.[0-9]*)?([Z+-][0-9]{2}[0-9]{2}:[0-9]{2}[0-9]{2})?

etc.

 

 

 

 

 

 

 



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