| 479 | |
| 480 | === Endpoint Custom Extensions === |
| 481 | The Endpoint can add custom extensions, i.e custom data, to the Result Format. This extension mechanism can for example be used to provide hints for an (XSLT/XQuery) application that works directly on CLARIN-FCS, e.g. to allow it to generate back and forward links to navigate in a result set. |
| 482 | |
| 483 | The Endpoint `MAY` add arbitrary XML fragments to the extension hooks provided in the `<fcs:Resource>` element (see the XML schema for "Resource.xsd"). The Endpoint `MUST` use a custom XML namespace name for the extension. The Endpoint `MUST NOT` use XML namespace names, that start with the prefixes `http://clarin.eu`, `http://www.clarin.eu/`, `https://clarin.eu` or `http://www.clarin.eu/`. |
| 484 | |
| 485 | The Client `MUST` ignore any custom extensions it does not understand and skip over these XML fragments when parsing the Endpoint's response. |
| 486 | |
| 487 | The appendix contains an [#extensionExample example], how an extension could be implemented. |
706 | | === Endpoint custom extensions === |
707 | | The CLARIN-FCS protocol specification allows Endpoints to add custom data to their responses. This extension mechanism can for example be used to provide hints to an (XSLT/XQuery) application that works directly on CLARIN-FCS, e.g. to allow it to generate back and forward links to navigate in a result set. |
708 | | |
709 | | *WIP* |
710 | | |
711 | | The Endpoint `MAY` add arbitrary XML fragments to a `<fcs:Resource>` element. Clients `MUST` ignore any custom extensions they do not understand. |
712 | | Endpoints `MUST` use a custom XML namespace name for their extensions. Endpoints `MUST NOT` use XML namespace names, that start with the prefixes `http://clarin.eu`, `http://www.clarin.eu/`, `https://clarin.eu` or `http://www.clarin.eu/`. |
713 | | |
714 | | * Example: |
| 715 | === Endpoint custom extensions ===#extensionExample |
| 716 | The CLARIN-FCS protocol specification allows Endpoints to add custom data to their responses, e.g. to provide hints to for an (XSLT/XQuery) application that works directly on CLARIN-FCS. It could use the custom data to generate back and forward links for a GUI to navigate in a result set. |
| 717 | |
| 718 | The following example illustrates how an extension can be embedded into the Result Format: |