Macro Language Reference > PIs > Text > <?nameup>
  
<?nameup>
Description
Controls the search stack for namespaces by adding a specified namespace to the stack and making it available during a search. The action can be carried out at any point during formatting of the current stream and the modified search stack will apply from the position of the command. Used in conjunction with its opposite command, <?namedown>, which will remove a namespace from the stack.
 
Example 483. Add a namespace to the search stack
This example below adds the 'mytags' namespace to the search stack, so that it is searched first for all following tag references:
<?nameup "mytags">
Syntax
<?nameup param_up:s?>
<?nameup>
param_up
name
Name of the namespace to be added
Additional Information
 
Manipulation of a formatting 'search stack' is not as flexible as manipulation of the main document search list: namespaces can only be stacked or unstacked and their order cannot be changed except by stacking in a different order. When unstacking a namespace, any namespaces that are stacked after it, and those that have not yet been unstacked explicitly, are also unstacked.
Formatting search stacks take priority over the main tnorder search list in the document and are searched first. The most recent namespace to be stacked is the one that will be checked first when searching for a tag (such as a style tag) that is later referenced during the format.
Related Links