Macro Language Reference > PIs > Text > <?namedown>
  
<?namedown>
Description
Controls the search stack for namespaces by removing (unstacking) a specified namespace from the stack. 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, <?nameup>, which will add a namespace to the stack.
 
Example 480. Unstack a specific namespace
This example removes (unstacks) the namespace called mytags:
<?namedown "mytags">
 
Example 481. Unstack the most recently added namespace
<?namedown>
 
Example 482. Clear the namespace search stack
<?namedown *>
Syntax
<?namedown param_down:L?>
<?namedown>
{no parameter]
Unstack (remove) the most recently added namespace.
param_down
s
Name of the namespace to be removed
0
Unstack the most recently added namespace
*
Clear the search stack completely
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 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