DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Ordered List bug in XMetal interface

  • linjinwei

    Ordered List bug in XMetal interface

    Participants 6
    Replies 7
    Last Activity 13 years, 9 months ago

    I'm not sure if it is suppose to be like this.

    When u create ordered list within ordered list in XMetal, the image is what it appears

    [img]http://img383.imageshack.us/img383/1043/xmetallistox1.jpg[/img]

    But when I output in PDF, it becomes like this;

    [img]http://img520.imageshack.us/img520/2708/pdflistxf7.jpg[/img]

    See the difference? XMetal interface displays in numbers for nested list, while PDF output shows in alphabets. I would like to know how you make XMetal display the same way as in PDF output.

    Thks in advance

    Reply

    mag3737

    Reply to: Ordered List bug in XMetal interface

    This is not a bug.  As noted elsewhere, the display in XMetaL and the results in the PDF (and HTML) output are all from different stylesheets, and it is the stylesheets that determine things like the type of numbering that appears on ordered lists.

    Reply

    mag3737

    Reply to: Ordered List bug in XMetal interface

    1. Locate the following CSS file in your XMetaL program files directory:

    {XMDIR}AuthorDITAXACsditabaseditabase-base-override.css

    2. Save a backup copy of the CSS file and open the original in an editor.

    3. Add the following at the end of the file:

    [code]
    [class~=”topic/ol”] [class~=”topic/ol”] {
    list-style-type: lower-alpha;
    }
    [/code]

    4. Save the CSS file and then reopen your XML document in XMetaL (or switch views, e.g. switch between Normal and Tags On).

    NOTE:  This should give you alphabetical items for any ordered lists that happen to be descendants of any other ordered lists, regardless of what other elements may be present.  I have not looked at the behaviour of the default PDF stylesheets, so I do not know if this is the exact same behaviour.

    Reply

    linjinwei

    Reply to: Ordered List bug in XMetal interface

    Thks mag3737.

    It works now

    Reply

    linjinwei

    Reply to: Ordered List bug in XMetal interface

    By the way, there are lots of files in XMetal directory.  Can anybody tell me what is the different between these 2 files.

    [code]ditabase-derived – C:Program FilesXMetaL 5.1AuthorDITAXACsshared

    I used this file to add and customize my own elements.
    [/code]

    [code]{XMDIR}AuthorDITAXACsditabaseditabase-base-override.css

    No idea what it does since it has nothing inside.
    [/code]

    Reply

    mag3737

    Reply to: Ordered List bug in XMetal interface

    The CSS files for DITA are explained in the XMetaL help file, in a topic called “DITA stylesheets”.  It's under the section “Working with DITA”.

    As noted in that help topic, it is preferable for you not to use the …”derived” files because those may potentially change (and your changes get lost) when you upgrade XMetaL.  The …”override” files are intended for this purpose.  (And they have nothing because when you first install XMetaL of course you have not changed any CSS yet.)

    Reply

    linjinwei

    Reply to: Ordered List bug in XMetal interface

    So if there are any new styles that I want to add, I should do it in the ditabase-base-override.css?

    Reply

    Derek Read

    Reply to: Ordered List bug in XMetal interface

    Please refer to the following topic in XMetaL Author Enterprise's help:
    “Overriding base formatting”

    Even though it is a subtopic inside “Working with DITA specializations” most of the information applies to the “standard” (non-specialized) DITA DTDs as well, that is, everything except “{$specialized_dtd}_ditabase-specialized.css”.

    If you really need to dig into this (which would probably be helpful to understand what is going on) you can open the following file as it is the main one that loads the CSS files. Note that they are imported in a specific order because normal CSS cascading rules (W3C) apply in XMetaL just as they do in a browser.

    C:Program FilesXMetaL 5.1AuthorDITAXACsditabaseditabase_ditabase.css

    Reply

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

Lost Your Password?

Products
Downloads
Support