@@ -5202,7 +5202,7 @@ <h3>Overview</h3>
5202
5202
If the < a data-link-for ="JsonLdOptions "> useNativeTypes</ a > flag is set
5203
5203
to < code > true</ code > , < a > RDF literals</ a > are converted to JSON values
5204
5204
based on their < a > datatype IRI</ a > and < a > lexical form</ a > as described
5205
- in < a class ="sectionRef " href ="#data-round-tripping "> </ a > .
5205
+ in < a class ="sectionRef " href ="#algorithm "> </ a > .
5206
5206
</ p >
5207
5207
5208
5208
< table class ="simple ">
@@ -5591,10 +5591,24 @@ <h3>Algorithm</h3>
5591
5591
< code > xsd:double</ code > and its
5592
5592
< a > lexical form</ a >
5593
5593
is a valid < code > xsd:integer</ code > or < code > xsd:double</ code >
5594
- according [[XMLSCHEMA11-2]], set < var > converted value</ var >
5594
+ according to [[XMLSCHEMA11-2]], and if it is a numeric value
5595
+ conformant to [[IEEE-754-2008]], then set < var > converted value</ var >
5595
5596
to the result of converting the
5596
5597
< a > lexical form</ a >
5597
- to a JSON < a > number</ a > .</ li >
5598
+ to a JSON < a > number</ a > .
5599
+ </ li >
5600
+ < li >
5601
+ Otherwise, if < a > lexical form</ a > expresses a numerical value
5602
+ outside of the range mandated by [[IEEE-754-2008]], then set
5603
+ < var > converted value</ var > to a JSON string literal containing
5604
+ said lexical form.
5605
+ </ li >
5606
+ < li >
5607
+ Otherwise, if < a > lexical form</ a > expresses a non-numeric value,
5608
+ such as < code > "+INF"^^xsd:double</ code > , an
5609
+ < a data-link-for ="JsonLdErrorCode "> invalid JSON literal</ a >
5610
+ error has been detected and processing is aborted.
5611
+ </ li >
5598
5612
</ ol >
5599
5613
</ li >
5600
5614
< li class ="changed "> Otherwise, if < a > processing mode</ a > is not `json-ld-1.0`,
0 commit comments