[rfc-i] <sourcecode type="cbor">

paul.hoffman at vpnc.org (Paul Hoffman) Tue, 23 February 2016 23:19 UTC

From: paul.hoffman at vpnc.org (Paul Hoffman)
Date: Tue, 23 Feb 2016 15:19:37 -0800
Subject: [rfc-i] <sourcecode type="cbor">
In-Reply-To: <56CCE465.9010001@tzi.org>
References: <56CCE465.9010001@tzi.org>
Message-ID: <242BE23D-2285-4627-AA67-8FF148BB2002@vpnc.org>

On 23 Feb 2016, at 14:59, Carsten Bormann wrote:

> Is <sourcecode type="cbor"> CBOR diagnostic notation?

Yes, given that people would expect <sourcecode type="asn.1"> to be a 
text representation, not the [BDP]ER bytecodes.

> (So far, we have been using CBORdiag here.  We also often use actual
> hexdumps of CBOR data in some stylized form; these often use 
> CBORbytes.)

We can't put arbitrary bytes into XML and expect them to be valid, so 
there might be a call to add type="cbor-bytes" and type="asn.1-bytes" 
that are defined to mean the Base64 encoding of those bytestrings. 
However, these seem edge-case-y, and can wait until we have a bit of 
experience with the format, yes?

--Paul Hoffman