General XMetaL Discussion

  • scotth

    Attributes In Tag

    Participants 1
    Replies 2
    Last Activity 10 years, 9 months ago

    We have a customer that is used to using an editor that displays attributes within the tag, immediately following the name of the element. Do XMetaL or XMAX have the capability to do this? If not, does XMAX 6.0 have the capability to turn on tag tips?


    Derek Read

    Reply to: Attributes In Tag

    Both products display “tag tips” when you hover over a tag (you cannot turn that feature off).
    [quote=XMetaL Author help topic 'Document views']
    Tags On view
    In Tags On view, both the content and markup (for example, element start and end tags) of your document are visible. This view is useful for navigating the element hierarchy and positioning the insertion point. Formatting is determined by a Cascading Style Sheet. Structured authoring commands are available from the menus, and rules checking is active.

    Here are some of the features available in Tags On view:

    You can select an entire element by clicking its start or end tag.
    You can collapse or expand tags through the right-click menu.
    You can view all set attributes by resting the pointer over a tag.

    It is also possible customize the CSS used with your DTD to show attribute values before or after an element's content.

    The following will display some text (“id: “) followed by the value of the @id for just after the opening tag:

    myElement:before {
     content:"id: " attr(id);



    Reply to: Attributes In Tag

    Here's some generic CSS that I regularly use when there's an XML file that I want to be able to edit in XMetaL without doing a full customization:

    [code]*:before {
      color: #FF9900;

    * {
      prefix-format: “[ %attribute-list; ] “;
      display: block;
      margin-left: 6pt;
      text-indent: -3pt;


  • You must be logged in to reply to this topic.

Lost Your Password?