Mixed Glossary with multiple entries from two external glossaries

Frank Steimke

Note

The test harness is configured to run this test without setting the glossary-collection parameter.

This test is essentially the same as glossary.007. The difference is, that we have two external glossaries, both referenced by the following processing instruction:

  |<?db glossary-collection='../glosscollection.xml 
  |                          ../glosscollection2.xml' ?>

It checks the glossary-collection machinery when the "internal" glossary is not empty, and some glossterms have definitions in the internal and external glossaries. The internal entry has priority and should therefore cover / overwrite the definition from the external glossary.

We expect a glossary with three entries, mixed from the internal and the external glossaries.

  1. Apple should reference the internal, poetic definition.

  2. Pear references the external definition from glosscollection;

  3. Cucumber references the external definition from glosscollection2.

We do not expect an entry for Quince or Bloodroot in the results document glossary, although there is an entry in the internal glossary of the input document, because there is no glossterm or firstterm that references it.

Glossary

A
Apple

In early autumn the apple orchards come alive with people and sounds. The farmers are picking, peeling, and processing apples into everything from apple pies to apple sauce. Families swarm the apple trees with their baskets looking for the best Honeycrisp and Macintosh. The sound of children playing is blended with the occasional barking dog, or the low rumble of the old Ferguson Orchard tractor pulling a wagon up and down the rows.

C
Cucumber

The cucumber (Cucumis sativus) is a widely-cultivated creeping vine plant in the family Cucurbitaceae that bears cylindrical to spherical fruits, which are used as culinary vegetables. Considered an annual plant, there are three main types of cucumber—slicing, pickling, and seedless—within which several cultivars have been created. The cucumber originates in Asia extending from India, Nepal, Bangladesh, China (Yunnan, Guizhou, Guangxi), and Northern Thailand, but now grows on most continents, and many different types of cucumber are grown commercially and traded on the global market. In North America, the term wild cucumber refers to plants in the genera Echinocystis and Marah, though the two are not closely related.

P
Pear

The pear tree and shrub are a species of genus Pyrus, in the family Rosaceae, bearing the pomaceous fruit of the same name. Several species of pear are valued for their edible fruit and juices while others are cultivated as trees.