[greenstone-users] Formatting repeating metadata values

From Tod Olson
DateThu, 20 May 2004 18:18:00 -0500
Subject [greenstone-users] Formatting repeating metadata values
Is there a syntax for formatting multiple metadata values?

In particular, suppose a document has metadata for several MIDI files:

<Metadata name="MidiFile">and06.mid</Metadata>
<Metadata name="MidiFile">ber22.mid</Metadata>

Is there a way, using the format strings, to format these as links to
the MIDI files, like:

<a href="file:///data/midi/and06.mid">and06.mid</a>
<a href="file:///data/midi/ber22.mid">ber22.mid</a>

(Notice that each metadata value is used twice, once in the href, once
in the text of the link.)

The sibling syntax is great for simply printing the metadata values,
but doesn't seem to go quite this far.

Alternately, is there a way to shove formatted hypertext links into
metadata values? Maybe something like:

<Metadata name="MidiLink">&lt;a

Has anyone out there abused metadata values to this degree?

Tod A. Olson <tod@uchicago.edu> "How do you know I'm mad?" said Alice.
Sr. Programmer / Analyst "If you weren't mad, you wouldn't have
The University of Chicago Library come here," said the Cat.