DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Ordered List bug in XMetal interface
-
linjinwei December 31, 2008 at 9:22 am
Ordered List bug in XMetal interface
December 31, 2008 at 9:22 amParticipants 6Replies 7Last Activity 14 years, 1 month agoI'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
mag3737 December 31, 2008 at 11:21 pm
Reply to: Ordered List bug in XMetal interface
December 31, 2008 at 11:21 pmThis 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.
mag3737 January 1, 2009 at 12:06 am
Reply to: Ordered List bug in XMetal interface
January 1, 2009 at 12:06 am1. 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.
linjinwei January 5, 2009 at 3:17 am
Reply to: Ordered List bug in XMetal interface
January 5, 2009 at 3:17 amlinjinwei January 5, 2009 at 4:25 am
Reply to: Ordered List bug in XMetal interface
January 5, 2009 at 4:25 amBy 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]mag3737 January 5, 2009 at 6:46 pm
Reply to: Ordered List bug in XMetal interface
January 5, 2009 at 6:46 pmThe 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.)
linjinwei January 6, 2009 at 1:01 am
Reply to: Ordered List bug in XMetal interface
January 6, 2009 at 1:01 amSo if there are any new styles that I want to add, I should do it in the ditabase-base-override.css?
Derek Read January 6, 2009 at 1:22 am
Reply to: Ordered List bug in XMetal interface
January 6, 2009 at 1:22 amPlease 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
-
AuthorPosts
- You must be logged in to reply to this topic.