The resolution of strings in HTML output mode does not respect the string scoping rules. Rather than building a list of string defs with string_defs() and indexing into it, we should have a function similar to object_by_id() that is context sensitive in how it resolves strings. (traversing the tree upward from the current location might be sufficient, but have to think about strings that are defined later in the document.)
The resolution of strings in HTML output mode does not respect the string scoping rules. Rather than building a list of string defs with
string_defs()
and indexing into it, we should have a function similar toobject_by_id()
that is context sensitive in how it resolves strings. (traversing the tree upward from the current location might be sufficient, but have to think about strings that are defined later in the document.)