|
1478 | 1478 | <t> |
1479 | 1479 | Together with "$dynamicAnchor", "$dynamicRef" implements a cooperative |
1480 | 1480 | extension mechanism that is primarily useful with recursive schemas |
1481 | | - (schemas that reference themselves). Both the extension point and the |
1482 | | - runtime-determined extension target are defined with "$dynamicAnchor", |
1483 | | - and only exhibit runtime dynamic behavior when referenced with |
1484 | | - "$dynamicRef". |
| 1481 | + (schemas that reference themselves). The extension point is defined |
| 1482 | + with "$dynamicAnchor", and only exhibits runtime dynamic behavior when |
| 1483 | + referenced with "$dynamicRef". |
1485 | 1484 | </t> |
1486 | 1485 | <t> |
1487 | | - The value of the "$dynamicRef" property MUST be a string which is |
1488 | | - a URI-Reference. Resolved against the current URI base, it produces |
1489 | | - the URI used as the starting point for runtime resolution. This initial |
1490 | | - resolution is safe to perform on schema load. |
1491 | | - </t> |
1492 | | - <t> |
1493 | | - If the initially resolved starting point URI includes a fragment that |
1494 | | - was created by the "$dynamicAnchor" keyword, the initial URI MUST be |
1495 | | - replaced by the URI (including the fragment) for the outermost schema |
1496 | | - resource in the <xref target="scopes">dynamic scope</xref> that defines |
1497 | | - an identically named fragment with "$dynamicAnchor". |
1498 | | - </t> |
1499 | | - <t> |
1500 | | - Otherwise, its behavior is identical to "$ref", and no runtime |
1501 | | - resolution is needed. |
| 1486 | + The value of the "$dynamicRef" property MUST be a valid |
| 1487 | + <xref target="anchor">plain name fragment</xref>. The schema to apply is |
| 1488 | + the outermost schema resource in the <xref target="scopes">dynamic scope</xref> |
| 1489 | + that defines a "$dynamicAnchor" matching the value of this keyword. |
1502 | 1490 | </t> |
1503 | 1491 | <t> |
1504 | 1492 | For a full example using these keyword, see appendix |
|
0 commit comments