Pages: 1
Print
Author Topic: Ordered List bug in XMetal interface  (Read 3856 times)
linjinwei
Member

Posts: 65


« on: December 31, 2008, 03:22:13 AM »

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




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




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
« Last Edit: January 05, 2009, 01:32:32 PM by syeo » Logged
mag3737
XMetaL Evangelist
Administrator
Member

Posts: 100


I even use XMetaL to write my business letters.


« Reply #1 on: December 31, 2008, 05:21:34 PM »

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.
Logged

Tom Magliery
JustSystems Canada, Inc.
mag3737
XMetaL Evangelist
Administrator
Member

Posts: 100


I even use XMetaL to write my business letters.


« Reply #2 on: December 31, 2008, 06:06:21 PM »

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

{XMDIR}\Author\DITA\XACs\ditabase\ditabase-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;
}

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.
Logged

Tom Magliery
JustSystems Canada, Inc.
linjinwei
Member

Posts: 65


« Reply #3 on: January 04, 2009, 09:17:48 PM »

Thks mag3737.

It works now
Logged
linjinwei
Member

Posts: 65


« Reply #4 on: January 04, 2009, 10:25:06 PM »

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 Files\XMetaL 5.1\Author\DITA\XACs\shared

I used this file to add and customize my own elements.

Code:
{XMDIR}\Author\DITA\XACs\ditabase\ditabase-base-override.css

No idea what it does since it has nothing inside.
Logged
mag3737
XMetaL Evangelist
Administrator
Member

Posts: 100


I even use XMetaL to write my business letters.


« Reply #5 on: January 05, 2009, 12:46:25 PM »

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.)
Logged

Tom Magliery
JustSystems Canada, Inc.
linjinwei
Member

Posts: 65


« Reply #6 on: January 05, 2009, 07:01:19 PM »

So if there are any new styles that I want to add, I should do it in the ditabase-base-override.css?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1546



WWW
« Reply #7 on: January 05, 2009, 07:22:09 PM »

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 Files\XMetaL 5.1\Author\DITA\XACs\ditabase\ditabase_ditabase.css
« Last Edit: January 08, 2009, 01:57:59 PM by Derek Read » Logged
Pages: 1
Print
Jump to:  

email us