Next Up Previous Contents
Next: get-best-figurecontent
Up: Common functions for the Starlink stylesheets
Previous: query-parse-fpi
[ID index][Keyword index]

get-sysid-by-notation - Select an entity whose declared content is one of a set of different notations.

Description

Given a string which has a list of entities, this tokenises the list (at whitespace), then works through the list and returns the system-id of the first entity which has a declared notation which matches a string in the argument req-not. This merely returns the first match: if you have a hierarchy of preferences, then call the function repeatedly.

Argument list
ent-list-string = string (Given)

A string containing a list of entities (such as an attribute value with a value prescription of ENTITIES), each of which has been declared to have a notation.

req-not = list of strings (Given)

A list of notations, as defined in the DTD.

Return value

Type: string

System ID (ie, filename) of the first entity whose notation matches a notation in req-not. Returns #f if none can be found. There is a potential problem here, when an entity is referenced using a public ID -- should that go in the manifest?


Next Up Previous Contents
Next: get-best-figurecontent
Up: Common functions for the Starlink stylesheets
Previous: query-parse-fpi
[ID index][Keyword index]