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

figurecontent-to-notation-map

Description

The FIGURE element has a content model which includes FIGURECONTENT*, PX*. Each of the FIGURECONTENT elements has an `image' and a `notation' attribute. If the `image' attribute is present, it refers to an entity which itself has a notation, and the element's content is that entity (the attribute has a CONREF default value). If that attribute is not present, then the element's content is the image, and the `notation' attribute should be present (it is an application error if it is not).

This function takes a node-list NL, each node of which is either a FIGURECONTENT element or PX, and produces a list of pairs. The car of each pair is the notation of the node, such as "eps" or "pdf", or "XML" in the case of PX; and the cdr is the node itself. Note that if there is more than one node with a given notation, or more than one PX element, then the returned assoc list will have duplicates in the car fields of the pairs.

Argument list
nl = node-list (Given)

The list of FIGURECONTENT elements and paragraphs which is part of the content of the FIGURE element.

Return value

Type: list of pairs

A list of pairs, of the form (notation . node-list), or (#f) if the node-list is empty.


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