DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Verify XMetal, PDF and HTML customization files
-
linjinwei January 21, 2009 at 2:36 am
Verify XMetal, PDF and HTML customization files
January 21, 2009 at 2:36 amParticipants 6Replies 7Last Activity 13 years, 7 months agoAlright I know I have asked this question many times. But it is not properly answered. There is a reason why I am doing this, thus I need to clarify my doubts first. I will post my actual question after this has been answered.
XMetal, PDF and HTML all uses different files to generate their look and feel. These files are independent to each other, meaning that any changes made in a file will NOT affect the display of all other outputs (Refering to XMetal, PDF and HTML)
I understand that there are actually many files involved, but I will only talk about the mean ones;=============================================================
XMetal interface = ditabase-base-override.css
Path = C:Program FilesXMetaL 5.1AuthorDITAXACsditabase
=============================================================pdf – Meanly all under
Path = C:Program FilesCommon FilesXMetaL SharedDITA_OTdemoxmfoCustomization…
=============================================================html – commonltr.css
Path = C:Program FilesCommon FilesXMetaL SharedDITA_OTresource=============================================================
Please just tell me if I am right or wrong.
Regards
mag3737 January 21, 2009 at 6:00 pm
Reply to: Verify XMetal, PDF and HTML customization files
January 21, 2009 at 6:00 pmYou are right (although this oversimplifies some things).
linjinwei January 22, 2009 at 3:28 am
Reply to: Verify XMetal, PDF and HTML customization files
January 22, 2009 at 3:28 amAlright Thanks mag3737
The mean problem lies with the HTML output. I did go through the Help section on “Appendix A: Configuring XHTML and CHM output”. I have copied the commontlr.css file and created a custom one on my desktop which I named it “commontlr_custom.css”.
I removed everything inside, leaving only the
element because I wanted to do some testing first, to see if the custom file works. So I tried setting everything embeded within
to have RED font color
[code].p {color: red}[/code]
[URL=http://imageshack.us][IMG]http://img404.imageshack.us/img404/5071/commonltrcustomfm0.jpg[/img][/URL]
================================================================
Next, I created a Concept Topic, type in some text, which is within thetag.
[URL=http://imageshack.us][IMG]http://img206.imageshack.us/img206/1959/uselessxmetaloz5.jpg[/img][/URL]
================================================================After that, I displayed it in Multiple HTML file. But before that, I clicked on [Configure Output] first, and under Deliverable Types, I set the stylesheet path to my commonltr_custom.css.
[URL=http://imageshack.us][IMG]http://img177.imageshack.us/img177/2973/configureoutputxmetaloc6.jpg[/img][/URL]
================================================================
Finally I run the file. I even Right Click and View Source to see if the stylesheet is linked.[URL=http://imageshack.us][IMG]http://img291.imageshack.us/img291/1503/uselesshtmlgz5.jpg[/img][/URL]
================================================================
Well as you can see, the text isn't red. I have also tried doing the same thing to
element, but nothing changes. Can anybody point out the mistake I have done? Regards
Derek Read January 23, 2009 at 6:29 pm
Reply to: Verify XMetal, PDF and HTML customization files
January 23, 2009 at 6:29 pmWhen you view the source of the output HTML does it contain the proper element that references your CSS?
ghkrause January 26, 2009 at 4:29 pm
Reply to: Verify XMetal, PDF and HTML customization files
January 26, 2009 at 4:29 pmPlaying wit css:
I rendered my sample topic without changing the defaults. The commonltr.css is copied locally and I did my edits and checked in browser. I did never delete everything but rather added and modified.
There are books and online resources to learn CSS.Aligning formats in XMetaL and XHTML
My formats are in an spreadsheet with rows for class attribute values and columns for those CSS settings I use. This helps me to get a consistent formatting by filtering and comparing values entered. I wrote some short macros to export to CSS. My spreadsheet is my single source which helps to align the formatting. Of course, with specialization I altered the xslt, too, to get the CSS working as intended.
I would not expect a non-programmer to master this easily.I do not use XSL-FO for PDF rendition but I assume that at least some formatting code could be generated from the same spreadsheet.
In a nutshell: it's not designed as single source but you can make it to be.
linjinwei January 28, 2009 at 1:21 am
Reply to: Verify XMetal, PDF and HTML customization files
January 28, 2009 at 1:21 amWhen you view the source of the output HTML does it contain the proper element that references your CSS?
Are you refering to this line of code? If you look back to my last image, the code is there.
Reply
[code]Derek Read January 29, 2009 at 9:42 pm
Reply to: Verify XMetal, PDF and HTML customization files
January 29, 2009 at 9:42 pmReply
ghkrause January 31, 2009 at 8:28 pm
Reply to: Verify XMetal, PDF and HTML customization files
January 31, 2009 at 8:28 pmMost of my CSS code works as expected, but it took me iterations to get satisfied. Especially in cases where inline elements overwrite block settings I have still some open issues. I know that I have to add additional lines with more precise structure description (like specialized phrase in title) with expected formatting to solve it. The more elements you use the more tricky it can get …
-
AuthorPosts
- You must be logged in to reply to this topic.