You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sis.apache.org by Martin Desruisseaux <ma...@geomatys.com> on 2015/10/09 11:01:11 UTC
New support for xlink:href
Hello all
Reading and writing XML documents now support backward references like
below (on SIS 0.7-SNAPSHOT):
<gmd:contactInfo>
<gmd:CI_Contact id="myID">
... some definitions ...
</gmd:CI_Contact>
</gmd:contactInfo>
... later in another element ...
<gmd:contactInfo xlink:href="#myID"/>
To enable the use of those ID at metadata (ISO 19115) marshalling time,
we currently need to specify an ID explicitly. For example:
contact.getIdentifierMap().put(IdentifierSpace.ID, "myID");
Users do not need to worry about identifier uniqueness; SIS will add
"-1", "-2", etc. suffix if needed at marshalling time. Current
limitations are:
* Forward references not supported.
* References to other files (e.g. xlink:href="http://myfile#myID") not
yet supported. But users can still provide their own lookup
mechanism if they wish.
Martin