|
|||||
XML to HTML conversions: implicit hypertext | |||||
Related Concepts |
Introduction
Implicit linking allows the final hypertext links to be created "in the eyes of the application." In other words, OmniMark lets you define easily how you want the links created, based on content rather than having the linking hardcoded in the source data.
Here is an example of OmniMark code that links references to part names with glossary entries. Because the information set (a book), and the implied requirements of the final deliverable, were so simple, referents weren't necessary. However, referents can be used when you want to write a link before you have read the information you need to create the link.
element term local stream term set term to "%c" ; content linking output '<a name="content-%g(term)">' || "<li>%g(term):" element part local stream part set part to "%c" output '<a href="#content-%g(part)">' || part || '</a>'
Although this samples uses only one input and one output file, this type of linking also can be used in a multiple-object input and multiple-object output environment.
Related Concepts
XML to HTML conversions |
---- |