Search found 430 matches

by Dan
Tue Sep 04, 2018 10:39 am
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1874

Re: format-date(current-date()) problem

There is a syntax error in your XPath expression, it misses a comma and you should use singe quotes around the 'ru' token, since the entire expression is already enclosed in double quotes: The correct form is: ... content: oxy_xpath("format-date(current-date(), '[MNn] [Y0001]', 'ru', (), ())"); ... ...
by Dan
Fri Aug 24, 2018 9:04 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-based PDF: Table font size
Replies: 2
Views: 801

Re: CSS-based PDF: Table font size

Hello,

This is caused by a compatibility mode that sets the HTML tables font size to "medium". In fact this should not apply, as the format is HTML 5. I will log a bug about this. Meantime, you should add also this selector:

Code: Select all


*[class ~= "topic/table"] {
font-size: 13px;
}
Many regards,
Dan
by Dan
Thu Aug 23, 2018 12:56 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: SVG files not scaling properly in PDF publishing
Replies: 3
Views: 907

Re: SVG files not scaling properly in PDF publishing

What scenario are you using to transform your documents? Your SVGs have information about their size? A small sample would be good to determine the fix.

Many regards,
Dan
by Dan
Thu Aug 16, 2018 3:56 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hazard Statement Styling
Replies: 12
Views: 2319

Re: Hazard Statement Styling

Hello Mr. Kim, I think you should write your CSS customization rules as: *[class~="hazard-d/hazardstatement"][type="notice"]:before { content: oxy_uppercase(attr(type)); } *[class~="hazard-d/hazardstatement"][type="notice"] { display:block; background-color:blue; border-bottom: 2pt solid; padding:0....
by Dan
Thu Aug 16, 2018 3:46 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF: Uppercase/lowercase CAUTION vs Warning
Replies: 3
Views: 974

Re: CSS-Based PDF: Uppercase/lowercase CAUTION vs Warning

The selectors you pointed to apply to the WYSYWIG PDF transformation only. In the HTML based transformation, the intermediate merged DITA map is transformed to HTML5 using the DITA-OT built-in support, so the generation of the static strings (the labels for chapters, parts, figures, tables, notes, e...
by Dan
Tue Aug 07, 2018 10:49 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-based PDF: Changes to DPI
Replies: 4
Views: 1138

Re: CSS-based PDF: Changes to DPI

Hello, What image format are you using? Can you send us a sample image file? You are using it in the topic content, or to decorate the page background or headers? We have tested with PNG images (created with GIMP) and it works fine. For more information see the "Image Resolution" section from https:...
by Dan
Tue Jul 31, 2018 4:22 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Apply formatting to first column of table based on "otherprops" attribute value
Replies: 6
Views: 1184

Re: Apply formatting to first column of table based on "otherprops" attribute value

Hello Paul, Fist you should use instead of "otherprops" attribute the "outputclass" attribute. The "otherprops" attribute is filetered out during the processing of the merged map. You can use the oXygen refactoring actions to make this change (or a simple find/replace in files across the project). I...
by Dan
Fri Jun 29, 2018 2:31 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF Bookmarks - Bookmaptitlealt duplicated - DITA Map PDF - based on DITA & CSS (WYSIWYG)
Replies: 4
Views: 1084

Re: PDF Bookmarks - Bookmaptitlealt duplicated - DITA Map PDF - based on DITA & CSS (WYSIWYG)

I understand that you need in fact the title of the product to be placed a the top of the bookmarks tree. The booktitlealt is duplicated by the transformation process in the TOC structure so that it can be shown there if needed. Your selector matches both the element from the front page and the one ...
by Dan
Fri Jun 29, 2018 12:46 pm
Forum: Common Problems
Topic: Figure and Table numbering
Replies: 12
Views: 3620

Re: Figure and Table numbering

There are two solutions: 1. You are using the pdf-css-html5 transformation. With this you should get automatically the numbers of the tables before the table titles, with no change in your CSS file. However, I just learned that there is a "com.oxygenxml.html.custom" plugin in the DITA-OT directory t...
by Dan
Fri Jun 29, 2018 11:31 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Populating <bookmap> element attributes on cover page.
Replies: 3
Views: 851

Re: Populating <bookmap> element attributes on cover page.

If you plan to reuse styles between the WebHelp output, which is HTML5 based, I recommend to use the DITA to PDF based on HTML5 and CSS.
See the video presentation for details:
https://www.oxygenxml.com/demo/opt.html

Many regards,
Dan
by Dan
Fri Jun 29, 2018 11:28 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF: How do I implement a Last Page Footer different from other pages?
Replies: 5
Views: 1171

Re: PDF: How do I implement a Last Page Footer different from other pages?

Is hard to tell what is wrong. We are not doing XSLT customization but we will try to help you by taking a look at your plugin. Please use the https://www.oxygenxml.com/techSupport.html form to send it to us.

Many regards,
Dan
by Dan
Fri Jun 29, 2018 11:25 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF from ditamap, force pagebreak between topics
Replies: 6
Views: 1415

Re: PDF from ditamap, force pagebreak between topics

The page break processing instructions should be placed inside the topic files, not in the map between topic references.
Many regards,
Dan
by Dan
Fri Jun 29, 2018 10:51 am
Forum: Common Problems
Topic: draft watermark until approved?
Replies: 6
Views: 2375

Re: draft watermark until approved?

I think there is no such class on the body element. You will need to use a more complex strategy. The approved element is located in the bookmeta/bookchangehistory element. <bookmeta> <author>Howe Tuduit</author> <critdates> <created date="1/1/2015"/> <revised modified="3/4/2016"/> <revised modified...
by Dan
Thu Jun 28, 2018 11:16 am
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 4579

Re: Chemistry: Omit Cover Page and TOC?

In case you are using the WYSIWIG transformation scenario you can add the template to the file: [DITA-OT-DIR]/plugins/com.oxygenxml.pdf.css/xsl/merged2merged/merged.xsl In case you are using the HTML5 based PDF transformation (not WYSIWYG), this is the recommended transformation now, you may use an ...
by Dan
Thu Jun 28, 2018 10:26 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Populating <bookmap> element attributes on cover page.
Replies: 3
Views: 851

Re: Populating <bookmap> element attributes on cover page.

The attr() function applies to the element matched by the CSS rule selector. In this case it matches the booktitle. If your attributes are on the root element "bookmap", you will need to use XPath to extract the values from this element. Here is a snippet for this: *[class ~= "bookmap/booktitle"]:af...
by Dan
Tue Jun 26, 2018 11:02 am
Forum: Common Problems
Topic: Vertical text on cover
Replies: 4
Views: 1643

Re: Vertical text on cover

This expression worked for me: :root { string-set: author oxy_xpath('//*[contains(@class, "front-page/front-page")]/*[contains(@class, "map/topicmeta")]/*[contains(@class, "topic/author")]/text()'); } In the map there was: <map> <title>The Art of Bike Repair</title> <topicmeta> <author>John Doe</aut...
by Dan
Mon Jun 25, 2018 4:04 pm
Forum: Common Problems
Topic: Vertical text on cover
Replies: 4
Views: 1643

Re: Vertical text on cover

You can collect the metadata and keep it into a string variable. For example, to collect the value of the "author" element : :root { string-set: author oxy_xpath('//*[contains(@class, "bookmap/bookmeta")]/*[contains(@class, "topic/author")]/text()'); } Please note that the string-set property accept...
by Dan
Mon Jun 25, 2018 12:14 pm
Forum: Common Problems
Topic: Customize cover page
Replies: 5
Views: 1991

Re: Customize cover page

See the response from: post48027.html#p48027
by Dan
Mon Jun 25, 2018 12:11 pm
Forum: Common Problems
Topic: Header / Footer equivalents from FO
Replies: 6
Views: 2257

Re: Header / Footer equivalents from FO

Hello Scott, To define multiple string sets for an element, please use a single string-set property with a list of comma separated definitions: :root { string-set: prodname oxy_xpath("//bookmeta//prodinfo/prodname"), prodversion oxy_xpath("//bookmeta//prodinfo/vrmlist/vrm/@version") "." oxy_xpath("/...
by Dan
Thu Jun 21, 2018 4:54 pm
Forum: Common Problems
Topic: image paths in CSS?
Replies: 1
Views: 1130

Re: image paths in CSS?

It is relative to the CSS. Unfortunately, the !important modifier does not work in the page rule. We have an issue on our tracking system, it will be resolved in the next version. I think there is a more specific selector in the p-front-page.css that clears the @top-right page margin box: @page fron...
by Dan
Wed Jun 20, 2018 4:09 pm
Forum: Common Problems
Topic: Tables border distort in pdf output
Replies: 10
Views: 2179

Re: Tables border distort in pdf output

We fixed the problem, it will enter the next major version.
Let us know if the above CSS snippet is working for you, if not, we can provide a Chemistry PDF CSS processor nightly build.

Thank you for the feedback,
Dan
by Dan
Wed Jun 20, 2018 3:08 pm
Forum: Common Problems
Topic: Tables border distort in pdf output
Replies: 10
Views: 2179

Re: Tables border distort in pdf output

A better solution is to add to your customization CSS the following rule: *[class~="topic/table"] > *[class~="topic/tgroup"] { table-layout: auto; } This makes the table automatically stretch as much as the columns. We will investigate further the problem with the fixed layout table and specified co...
by Dan
Wed Jun 20, 2018 2:46 pm
Forum: Common Problems
Topic: Tables border distort in pdf output
Replies: 10
Views: 2179

Re: Tables border distort in pdf output

The columns have a fixed width specified, something like 30pt, 400px, etc.. The problem is that when they sum up, the result is smaller than the border applied to the table. Until we fix the problem, please use proportional widths as a workaround. For example, if you have colspec width="100pt" colsp...
by Dan
Thu Jun 14, 2018 12:52 pm
Forum: Common Problems
Topic: customize cover page input bottom
Replies: 2
Views: 1368

Re: customize cover page input bottom

In this case I would make an SVG image with the formatted slogan text and colors. Then I would use: @bottom-left { content: " "; background-image:url('slogan.svg'); background-position:50% 50%; background-repeat: no-repeat; } You will need to specify a content, even if empty, otherwise the page marg...
by Dan
Wed Jun 13, 2018 4:35 pm
Forum: Common Problems
Topic: Customize cover page
Replies: 5
Views: 1991

Re: Customize cover page

You might find useful the CSS property text-decoration:overline instead of using a border.
by Dan
Wed Jun 13, 2018 4:30 pm
Forum: Common Problems
Topic: Customize cover page
Replies: 5
Views: 1991

Re: Customize cover page

Hello Thomas, The :after pseudo elements are "inside" the front-page-title, that is why the top border extends and covers the entire width. I propose the following workaround: - In your DITA Map, locate the <title> element and wrap its content in a <ph outputclass="bordered"> element. <map> <title><...
by Dan
Thu May 31, 2018 2:13 pm
Forum: Common Problems
Topic: Page breaks in Glossary
Replies: 4
Views: 1235

Re: Page breaks in Glossary

Hello, The glossref elements are on the first level in the DITA map and the publishing process considers them to be chapters. This is a bug. Workarounds: 1. Wrap the glossref elements into a topicref, or: 2. Change the XSL file [OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.pd...
by Dan
Thu May 31, 2018 1:50 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hiding chapter number from selected topics
Replies: 3
Views: 791

Re: Hiding chapter number from selected topics

You can try to use a DITA bookmap instead of DITA map, and wrap the topics you do not need numbered into an appendix element. If the output is still not good, try getting help on the DITA users list: https://groups.google.com/forum/#!forum/dita-ot-users If you decide to use the CSS customizations fr...
by Dan
Wed May 30, 2018 4:31 pm
Forum: Common Problems
Topic: Page breaks in Glossary
Replies: 4
Views: 1235

Re: Page breaks in Glossary

Ok. Please reproduce with a very small sample, then send it to us using the support form: https://www.oxygenxml.com/contact.html

Many regards,
Dan
by Dan
Wed May 30, 2018 11:48 am
Forum: Common Problems
Topic: Page breaks in Glossary
Replies: 4
Views: 1235

Re: Page breaks in Glossary

Hello Anna, I could not reproduce the problem using a simple map. Please try to run the default transformation scenario, with no customization: If the page breaks are not appearing it means there are some selectors in your customization CSS that cause this problem. If the page breaks are still appea...