Skip to content

Commit

Permalink
Simplify DID URL ABNF
Browse files Browse the repository at this point in the history
- Use `query` from RFC3986 (URI) instead of parsing param names and values
- Correct RFC5324 (MIB for Fibre-Channel Security) to RFC5234 (ABNF)

See discussion here for reasoning:
w3c#344
  • Loading branch information
wyc committed Jul 28, 2020
1 parent 78f1148 commit a0fd56e
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -797,22 +797,16 @@ <h3>DID URL Syntax</h3>
</p>

<p>
This following is the ABNF definition using the syntax in [[!RFC5324]]. It
This following is the ABNF definition using the syntax in [[!RFC5234]]. It
builds on the <code>did</code> scheme defined in <a href="#did-syntax"></a>. The
<a data-cite="!rfc3986#section-3.3"><code>path-abempty</code></a> and <a
data-cite="!rfc3986#section-3.5"><code>fragment</code></a> components are
identical to the ABNF rules defined in [[!RFC3986]], and the
<code>did-query</code> component is derived from the <a
data-cite="!rfc3986#section-3.4"><code>query</code></a> ABNF rule.
<a data-cite="!rfc3986#section-3.3"><code>path-abempty</code></a>,
<a data-cite="!rfc3986#section-3.3"><code>query</code></a>, and
<a data-cite="!rfc3986#section-3.5"><code>fragment</code></a>
components are identical to the ABNF rules defined in [[!RFC3986]].
</p>

<pre class="nohighlight">
did-url = did path-abempty [ "?" did-query ]
[ "#" fragment ]
did-query = param *( "&" param )
param = param-name "=" param-value
param-name = 1*pchar
param-value = *pchar
did-url = did path-abempty [ "?" query ] [ "#" fragment ]
</pre>

<p class="note">
Expand Down

0 comments on commit a0fd56e

Please sign in to comment.