sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <>
Subject [jira] [Created] (SIS-420) Forward references in XML
Date Sat, 26 May 2018 08:44:00 GMT
Martin Desruisseaux created SIS-420:

             Summary: Forward references in XML
                 Key: SIS-420
             Project: Spatial Information Systems
          Issue Type: Improvement
          Components: Metadata
    Affects Versions: 0.8, 0.7
            Reporter: Martin Desruisseaux

In a metadata XML document, an element may be replaced by a reference to another element.
[Example derived from|]
(search {{Level_2}} in that document):

    <gmd:source xlink:href="#Level_2"/>
  <gmd:LI_Source id="Level_2">
          <gco:CharacterString>Source Contribution: The Level 2 data are used in processing
Level 3 data.</gco:CharacterString>

Support of such reference has been implemented in SIS-173, but only in the cases where the
content is defined before {{xlink:href}}. In above example, we have the opposite order. Such
forward references should be implemented in SIS. One possible approach may be to to store
the parent object and the property name in a {{java.util.Map}} until the definition is found,
in which case we can use {{AbstractMetadata.asMap()}} for setting the final value.

This message was sent by Atlassian JIRA

View raw message