2. attributeVisibility

<attributeVisibility>
  Content: [ category ]*
</attributeVisibility>

<category
  name = Non-empty token
  attributes = Non-empty list of QNames
  visible = boolean : true
/>

The attributeVisibility configuration element specifies the checkbox entries of the popup menu displayed by clicking the down arrow button found at the right of the header of the attribute table (part of the Attributes tool in XMLmind XML Editor - Online Help). This popup menu allows to toggle in the attribute table the visibility of attributes belonging to certain categories. Simply uncheck a menu entry to hide in the attribute table all the attributes belonging to the corresponding category.

A menu entry is created for each category child. The attributes of element category are:

name

Specifies the name of the category hence, once localized, the label of the corresponding menu entry.

attributes

Specifies the names of the attributes belonging to the category. These attributes are to be hidden by the attribute table when the corresponding menu entry is unchecked.

visible

Specifies the initial visibility of the category, hence whether he corresponding menu entry is initially checked or unchecked.

Examples:

<attributeVisibility>
  <category name="Conditional Processing" 
            attributes="audience platform product rev
                        otherprops props" />
  <category name="Other" attributes="xtrc xtrf" 
                  visible="false" />
</attributeVisibility>

<attributeVisibility/>

An attributeVisibility element without any category child element may be used to remove from a configuration the previously defined attributeVisibility.

Otherwise, an attributeVisibility element is merged with the attributeVisibility element previously defined in the configuration. This is done as follows:

  1. All category elements not found in current definition but found in the previous definition are copied from previous definition.

  2. All category elements having no attributes child element are discarded from current definition. This trick allows to skip some category elements which otherwise would have been copied from the previous definition.

Example:

<attributeVisibility>
  <category name="profiling" attributes="revision revisionflag"/>
  <category name="Scripting" attributes="onkeydown onkeypress onkeyup"
            visible="false"/>
  <category name="other" attributes="remap" visible="false"/>
</attributeVisibility>

<attributeVisibility>
  <category name="profiling" attributes="revision revisionflag audience os" 
            visible="false"/>
  <category name="other"/>
  <category name="RDF" visible="false"
            attributes="vocab typeof property resource prefix"/>
</attributeVisibility>

is equivalent to:

<attributeVisibility>
  <category name="profiling" attributes="revision revisionflag audience os" 
            visible="false"/>
  <category name="RDF" visible="false"
            attributes="vocab typeof property resource prefix"/>
  <category name="Scripting" attributes="onkeydown onkeypress onkeyup"
            visible="false"/>
</attributeVisibility>