Skip to content

Commit f833869

Browse files
committed
Better Rel JSON Ptr ABNF per Austin Wright
Also, use <sourcecode> tag.
1 parent 97b47f9 commit f833869

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

relative-json-pointer.xml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,19 @@
9292
length or start with a '/' (%x2F). Similarly, a JSON Pointer will
9393
never be ambiguous with the '#'.
9494
</t>
95-
<figure align="center">
96-
<preamble>
97-
The ABNF syntax of a Relative JSON Pointer is:
98-
</preamble>
99-
<artwork>
100-
<![CDATA[
101-
relative-json-pointer = origin-specification <json-pointer>
102-
relative-json-pointer =/ origin-specification "#"
103-
origin-specification = non-negative-integer [index-manipulation]
104-
index-manipulation = ("+" / "-") non-negative-integer
105-
non-negative-integer = %x30 / %x31-39 *( %x30-39 )
106-
; "0", or digits without a leading "0"
107-
]]>
108-
</artwork>
109-
<postamble>
110-
where &lt;json-pointer&gt; follows the production defined in
111-
<xref target="RFC6901">RFC 6901, Section 3</xref> ("Syntax").
112-
</postamble>
113-
</figure>
11495
<t>
96+
The ABNF syntax of a Relative JSON Pointer is:
11597
</t>
98+
<sourcecode type="abnf9110"><![CDATA[
99+
relative-json-pointer = origin-specification json-pointer
100+
/ origin-specification "#"
101+
; json-pointer from RFC 6901
102+
103+
origin-specification = non-negative-integer [ index-manipulation ]
104+
index-manipulation = ( "+" / "-" ) non-negative-integer
105+
non-negative-integer = "0" / %x31-39 *DIGIT
106+
; zero, or digits without a leading zero
107+
]]></sourcecode>
116108
</section>
117109

118110
<section title="Evaluation">

0 commit comments

Comments
 (0)