General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Bulleted List in XMetal Author 5.1

  • craig_83

    Bulleted List in XMetal Author 5.1

    Participants 2
    Replies 3
    Last Activity 11 years, 3 months ago

    Hi,

    I am using XMetal 5.1 Author and I am trying to incorporate bullet points into my document.

    I have used the Journalist document, that makes use of bullet points, as a template for my document.

    The list elements I have in my dtd are:

    – Being the equivalent to UL in HTML.

      (%PrintRange; and %OtherRange being a collection of other elements) – Being the equivalent to LI in HTML.

    The CTM has the following references:



      ItemizedList
      ListItem

    The CSS has the following references:

    ItemizedList {
    display: block;
    }

    ListItem {
    display: list-item;
    }

    The problem I have is when I click the 'Bulleted List' button in XMetal Author nothing happens. In contrast, the same action in the Journalist example results in a bullet point being inserted.

    The only way I can insert a bullet point in my document is to display the element list and double click my 'ItemizedList' element.

    Can you tell me how I can connect the bulleted button to the bullet list style? I'm not sure what I am missing.

    Thanks

    Craig

    Reply

    Su-Laine Yeo

    Reply to: Bulleted List in XMetal Author 5.1

    Hi Craig,

    Everything you're doing looks correct to me. I can think of a few possible causes of the problem:

    1) The markup that would result after clicking the Bulleted List button is not valid. Can you get exactly the same change if you use the Element List?

    2) XMetaL is looking at a different copy of the configuration files. Try making a trivial change to the CTM file, such as changing an element minitemplate, and then opening a document and testing to see if the change took effect. XMetaL only looks at changes to CTM files when you open a document, not on-the-fly while a document is open.

    3) There is a typo in the CTM file. If you send us your files, XMetaL Support can try to reproduce the issue and try to spot what the problem might be. The best way would be to file a support case at http://na.justsystems.com/contact-support.php. When you get an email message from the auto-responder, reply to that message and attach your files. We would need your DTD file(s), CTM, CSS, a sample document, and a description of what part of the sample document you are selecting before you click the Bulleted List toolbar button. If you prefer, you could also zip up these files and post them on this forum.

    Cheers,
    Su-Laine

    Reply

    craig_83

    Reply to: Bulleted List in XMetal Author 5.1

    Hi,

    Please find attached the files requested.

    If you want to try out a specific line you can try the line that says “includes at least one officer who is a Member of the House of Commons”.

    Thanks

    Reply

    Su-Laine Yeo

    Reply to: Bulleted List in XMetal Author 5.1

    Hi Craig,

    The “Bulleted List” toolbar button works by converting selected block elements into list items, and wrapping the list items in another element. Your DTD allows the element to be located directly within the element, but it does not allow to be in the same location. So when you click the
    “Bulleted List” toolbar button, XMetaL tries to convert this:

    [code]
    includes at least 20 Members (each of whom must be a Member of the House of Commons or House of Lords), comprising: at least 10 Members who are from the same political party as the Government, and at least 10 who are not from the Government’s party (of whom at least six must be from the main opposition party), and
    includes at least one officer who is a Member of the House of Commons
    be required to register the following information on the Register of All-Party Groups:
    [/code]

    into this:

    [code]includes at least 20 Members (each of whom must be a Member of the House of Commons or House of Lords), comprising: at least 10 Members who are from the same political party as the Government, and at least 10 who are not from the Government’s party (of whom at least six must be from the main opposition party), and
    includes at least one officer who is a Member of the House of Commons
    be required to register the following information on the Register of All-Party Groups:
    [/code]

    The result would be invalid according to your DTD, so nothing happens. You might be hoping to get this instead:

    [code]
    includes at least 20 Members (each of whom must be a Member of the House of Commons or House of Lords), comprising: at least 10 Members who are from the same political party as the Government, and at least 10 who are not from the Government’s party (of whom at least six must be from the main opposition party), and

    includes at least one officer who is a Member of the House of Commons

    be required to register the following information on the Register of All-Party Groups:
    [/code]

    If that's what you're hoping for, I believe you would need to write a custom script to do it. It is possible to use script to hide the built-in list button and show a “custom” button that happens to have the same icon displayed on it.

    Alternatively, you could modify your DTD so that can go directly in elements.

    Cheers,
    Su-Laine

    Reply

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

Lost Your Password?

Products
Downloads
Support