DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Verify XMetal, PDF and HTML customization files

  • linjinwei

    Verify XMetal, PDF and HTML customization files

    Participants 6
    Replies 7
    Last Activity 12 years, 6 months ago

    Alright 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

    Reply

    mag3737

    Reply to: Verify XMetal, PDF and HTML customization files

    You are right (although this oversimplifies some things).

    Reply

    linjinwei

    Reply to: Verify XMetal, PDF and HTML customization files

    Alright 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 the

    tag.

    [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

    Reply

    Derek Read

    Reply to: Verify XMetal, PDF and HTML customization files

    When you view the source of the output HTML does it contain the proper element that references your CSS?

    Reply

    ghkrause

    Reply to: Verify XMetal, PDF and HTML customization files

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

    Reply

    linjinwei

    Reply to: Verify XMetal, PDF and HTML customization files

    When 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.
    [code]

    Reply

    Derek Read

    Reply to: Verify XMetal, PDF and HTML customization files

    Reply

    ghkrause

    Reply to: Verify XMetal, PDF and HTML customization files

    Most 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 …

    Reply

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

Lost Your Password?

Products
Downloads
Support