- From: Dominik Tomaszuk <ddooss@wp.pl>
- Date: Sat, 19 Nov 2011 22:33:20 +0100
- To: WebID Incubator Group WG <public-xg-webid@w3.org>
- CC: Henry Story <henry.story@bblfish.net>
On 16.11.2011 17:19, WebID Incubator Group Issue Tracker wrote: > - xsd:base64Binary -1 This datatype allows to incorrect values. For example: rsa:modulus "XX YY ZZ"^^xsd:base64Binary; Formally it is correct, but it isn''t hex value. > - xsd:hexBinary +1 But I propose more readable and full-validate datatype based on xsd:string and restrictions to hex and "-" sign: <rdfs:Datatype http://www.w3.org/ns/auth/cert#hex> <label xml:lang="en">hexadecimal</label> <xsd:base rdf:resource="http://www.w3.org/2001/XMLSchema#string"/> <xsd:pattern rdf:datatype="http://www.w3.org/2001/XMLSchema#string">[0-9a-fA-F]{2}(-[0-9a-fA-F]{2})*</xsd:pattern> </rdfs:Datatype> An example: rsa:modulus "00-cb-24...91-a1"""^^cert:hex As you can see it is modification of cert#hex, but now it is defined strictly and based on well-known xsd:string. Best regards, Dominik 'domel' Tomaszuk
Received on Saturday, 19 November 2011 21:33:46 UTC