Search found 408 matches

by Dan
Wed Sep 18, 2019 3:45 pm
Forum: Common Problems
Topic: Is it possible to access map variables from Customization CSS?
Replies: 5
Views: 115

Re: Is it possible to access map variables from Customization CSS?

Maybe you can use some XSLT extensions for the webhelp. Please see an example here: https://www.oxygenxml.com/doc/versions/21.1/ug-webhelp-responsive/topics/wht-task-pt-xslt-import.html The full customization manual is here: https://www.oxygenxml.com/doc/versions/21.1/ug-webhelp-responsive/topics/wh...
by Dan
Wed Sep 18, 2019 3:37 pm
Forum: Common Problems
Topic: How to modify the pdf properties using CSS Customization
Replies: 2
Views: 39

Re: How to modify the pdf properties using CSS Customization

The title element of a bookmap is quite complex, and contains elements for the book library and an alternate title: <booktitle> <booklibrary>Retro Tools</booklibrary> <mainbooktitle>Main Book Title</mainbooktitle> <booktitlealt>Book Title Alternative</booktitlealt> </booktitle> The builtin CSS uses ...
by Dan
Mon Sep 16, 2019 9:43 am
Forum: Common Problems
Topic: Is it possible to access map variables from Customization CSS?
Replies: 5
Views: 115

Re: Is it possible to access map variables from Customization CSS?

If this simplifies the work for your writers, I think you should go on with this CSS+XPath approach. However, if you plan to publish this to other formats, like WebHelp or plain HTML, you will not benefit of this customization, so please take care.
Many regards,
Dan
by Dan
Mon Sep 16, 2019 9:36 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Suppressing the Number for Parts
Replies: 3
Views: 75

Re: Suppressing the Number for Parts

Please read about changing the numbering using a transformation parameter (args.css.param.numbering) here: https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/dcpp_numbering_types.html Another way is shown here (for Chapters, for Parts is similar): https://www.oxygenxml.com/doc/versions/21....
by Dan
Mon Sep 16, 2019 9:32 am
Forum: Common Problems
Topic: Remove Chapter Label and Chapter Numbering
Replies: 1
Views: 40

Re: Remove Chapter Label and Chapter Numbering

Please read about changing the numbering using a transformation parameter (args.css.param.numbering) here: https://www.oxygenxml.com/doc/versions/21.1/ug-pdf-css/topics/dcpp_numbering_types.html Another way is shown here: https://www.oxygenxml.com/doc/versions/21.1/ug-pdf-css/topics/dcpp_remove_pref...
by Dan
Fri Aug 23, 2019 9:40 am
Forum: Common Problems
Topic: Transformation to PDF fails (using Chemistry)
Replies: 1
Views: 85

Re: Transformation to PDF fails (using Chemistry)

It looks like transformation is trying to start a chemistry executable that is not embedded into the oXygen installation. This may have two causes: 1. A corrupt chemistry installation is specified in the PATH environment variable. 2. An incorrect chemistry installation is specified in the transforma...
by Dan
Fri Aug 23, 2019 9:31 am
Forum: Common Problems
Topic: How to show <othermeta> in PDF transformations?
Replies: 8
Views: 262

Re: How to show <othermeta> in PDF transformations?

To forward all the othermeta elements information to the document properties, you can use a this CSS rule:

Code: Select all

*[class ~= "topic/othermeta"][name] {
 		-oxy-pdf-meta-custom: attr(name) attr(content);
}
Many regards,
Dan
by Dan
Thu Aug 22, 2019 1:29 pm
Forum: Common Problems
Topic: Revision tables for bookmaps?
Replies: 1
Views: 107

Re: Revision tables for bookmaps?

Here are some hints: 1. Use a simple table (simpletable DITA element), or a hierarchy of simple tables. As far as I know, these are not counted in the list of tables. 2. The front matter sections are rendered by default without headers. You can read more about the structure and customization possibi...
by Dan
Thu Aug 22, 2019 1:12 pm
Forum: Common Problems
Topic: Is it possible to access map variables from Customization CSS?
Replies: 5
Views: 115

Re: Is it possible to access map variables from Customization CSS?

Hello, Regarding the first issue: The documentation was a bit outdated, thank you for reporting the problem! That topic was referring only to the direct transformation, not to the one based on HTML5. I changed the samples, the documentation will be updated soon. Until that, please used the following...
by Dan
Thu Aug 22, 2019 12:32 pm
Forum: Common Problems
Topic: How to show <othermeta> in PDF transformations?
Replies: 8
Views: 262

Re: How to show <othermeta> in PDF transformations?

Hello Duncan, I run a test and I changed the XPath expression. You are using the HTML5 based transformation and in this case the othermeta is changed to a div having the topic/othermeta - the example above works for the direct transformation. Here is the updated version: @page :left:right, chapter:f...
by Dan
Tue Aug 20, 2019 2:55 pm
Forum: Common Problems
Topic: How to show <othermeta> in PDF transformations?
Replies: 8
Views: 262

Re: How to show <othermeta> in PDF transformations?

Hello Duncan, I corrected the quotes in the example above, it should work now... The XPath is a powerful way to extract content from an XML document. You can use it in CSS to collect metadata, do calculus, etc.. In the example above, the document function parses the original DITA Map (referred by th...
by Dan
Fri Aug 16, 2019 4:07 pm
Forum: Common Problems
Topic: How to show <othermeta> in PDF transformations?
Replies: 8
Views: 262

Re: How to show <othermeta> in PDF transformations?

We will try to find a way to pass the meta information from the merged map to the merged HTML, so you can use it further in the CSS customization. As a workaround, you can use the oxy_xpath function run over the original map file. You can extract any element value or attribute from the original proc...
by Dan
Mon Aug 12, 2019 2:10 pm
Forum: Other Issues
Topic: Subsubsections still take up space in TOC layout after applying: display none
Replies: 8
Views: 435

Re: Subsubsections still take up space in TOC layout after applying: display none

Why not using oxy_xpath CSS extension function, instead of the attr one, like explained in this example:
https://www.oxygenxml.com/doc/versions/ ... aid-title5
Many regards,
Dan
by Dan
Fri Jul 12, 2019 12:22 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: String-set with no result
Replies: 2
Views: 211

Re: String-set with no result

Hello Dmitry, I think those selectors have a lower specificity than the ones from the built-in CSSs. Depending on the numbering parameter from the transformation scenario, one of the built-in CSSs are used: p-numbering-deep-chapter-scope-no-page-reset.css p-numbering-deep-chapter-scope.css p-numberi...
by Dan
Tue Jul 09, 2019 12:52 pm
Forum: Other Issues
Topic: Subsubsections still take up space in TOC layout after applying: display none
Replies: 8
Views: 435

Re: Subsubsections still take up space in TOC layout after applying: display none

Hi Niels, Can you tell me what oXygen version are you using? We had a lot of fixes in the latest release, including one regarding extra structures left over after applying display:none. I tried your CSS rule with oXygen 21.1, HTML transformation and it works fine. If you are still having these probl...
by Dan
Tue Jul 09, 2019 12:34 pm
Forum: Other Issues
Topic: Target-counter targets the wrong counter
Replies: 2
Views: 229

Re: Target-counter targets the wrong counter

Hello Niels, I tried reproducing your problem using the CSS rules you provided with oXygen 21.1 and it works fine. Can you tell me what version are you using? Do you get the same errors for the tables? Another thing: I am not sure if you are using the HTML5 based PDF transformation. If you are, in t...
by Dan
Tue Jun 11, 2019 3:01 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to set the keep-with-next property
Replies: 2
Views: 199

Re: How to set the keep-with-next property

Hello Michael,

This looks like a bug. Can you tell us what element is following the p element? A DITA snipped would be good.

Many regards,
Dan
by Dan
Tue Jun 11, 2019 1:53 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Title property not working after upgrading to version 21.1
Replies: 15
Views: 844

Re: Title property not working after upgrading to version 21.1

Hello Michael, We have prepared a nightly build here: http://mirror.oxygenxml.com/maven-nightly/com/oxygenxml/oxygen-publishing-engine-3.x/22.0-SNAPSHOT/oxygen-publishing-engine-3.x-22.0-SNAPSHOT-package-full.zip Extract it to a folder, then configure oXygen to use it (Preferences/DITA/ DITA Open To...
by Dan
Mon Jun 10, 2019 3:15 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Title property not working after upgrading to version 21.1
Replies: 15
Views: 844

Re: Title property not working after upgrading to version 21.1

Hello Michael,
We are preparing a nightly build of the publishing engine, with a new parameter that will allow you to control the discarding of the top/bottom margins for elements that are at the top or bottom of a page. Costin will give you more details when the build is ready.
Many regards,
Dan
by Dan
Fri May 31, 2019 12:35 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Title property not working after upgrading to version 21.1
Replies: 15
Views: 844

Re: Title property not working after upgrading to version 21.1

Hello,

I think one workaround is to use the padding-top property instead of margin. The margin is discarded, but the padding not.

Many regards,
Dan
by Dan
Wed May 29, 2019 10:17 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Title property not working after upgrading to version 21.1
Replies: 15
Views: 844

Re: Title property not working after upgrading to version 21.1

The margins of the first block in the page are now discarded. This is desirable, to make the sections titles align properly in the page when they are at the beginning. The front-page-title is not the first block in the page, there are others with no content. Those are losing the top margin. A workar...
by Dan
Tue May 28, 2019 9:44 am
Forum: Common Problems
Topic: Extra space added for <codeblock> and <codeph>
Replies: 11
Views: 904

Re: Extra space added for <codeblock> and <codeph>

Thank you for the details! The problem is caused by the padding-right="4px" . This looks like either our fix from the built-in CSS is not working, or you have such padding set in the customization CSS. Please open the merged HTML file in a browser (Chrome for instance), and using the developer tools...
by Dan
Mon May 27, 2019 11:15 am
Forum: Common Problems
Topic: Extra space added for <codeblock> and <codeph>
Replies: 11
Views: 904

Re: Extra space added for <codeblock> and <codeph>

Hello Michael, I tried to use the DITA sample: [Oxygen Install Dir]\samples\dita\it-book\taskbook.ditamap and the standard HTML transformation using the 'ashes' template but I cannot reproduce the problem. Please try to use a standard publishing template (the first tab in the transformation scenario...
by Dan
Thu May 16, 2019 3:22 pm
Forum: Common Problems
Topic: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?
Replies: 6
Views: 560

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

We have made the necessary changes. The fix will be available in oXygen/Chemistry 21.1.

Thank you for reporting this issue, the page layout has improved!

Many regards,
Dan
by Dan
Thu May 16, 2019 10:47 am
Forum: Common Problems
Topic: Applying a class to SVG
Replies: 2
Views: 303

Re: Applying a class to SVG

Thank you for reporting this! Yes, this is a limitation, we will try to find a solution for this. For the moment I see no easy workaround, except trying to alter all the SVG from the documentation using the oXygen refactoring actions in a form that is acceptable for both the print and web formats. A...
by Dan
Thu May 16, 2019 10:16 am
Forum: Common Problems
Topic: Extra space added for <codeblock> and <codeph>
Replies: 11
Views: 904

Re: Extra space added for <codeblock> and <codeph>

Hello Michael, The transformation add a code inside the pre element. This is an inline element, that has some padding set from the built-in CSS. You should remove its padding: pre{ padding:2px 4px; } pre > code{ padding:0; } I fixed this in the default CSSs. If you encounter more problems, please co...
by Dan
Thu May 16, 2019 9:10 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: glossentry xrefs in PDF include page number
Replies: 2
Views: 623

Re: glossentry xrefs in PDF include page number

Hello Adam, Please use: *[class ~= "topic/xref"][href]:after, *[class ~= "topic/link"][href]:after { content: none !important; } The documentation about link styling is here https://www.oxygenxml.com/doc/ug-pdf-css/topics/dcpp_links.html#dcpp_links In the current documentation the !important qualifi...
by Dan
Wed May 15, 2019 3:48 pm
Forum: Common Problems
Topic: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?
Replies: 6
Views: 560

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

We found something, we could use the space-before and space-after FO attributes instead of margin-top and margin-bottom in the intermediate FO file. We will notify you when we have a build.
by Dan
Tue May 14, 2019 4:08 pm
Forum: General XML Questions
Topic: XPath to get variable using from linked key using oxy_xpath in PDF css
Replies: 1
Views: 374

Re: XPath to get variable using from linked key using oxy_xpath in PDF css

Avoid using [1], it means the first item from its parent. Use (..)[1] to select the first item returned by the inner expression. I would write the expression like: //*[contains(@class, " front-page/front-page ")]//*[contains(@class, " topic/category ")]/*[contains(@class, "topic/keyword")]/text() Us...
by Dan
Tue May 14, 2019 3:48 pm
Forum: Common Problems
Topic: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?
Replies: 6
Views: 560

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Hello Chris,
This is interesting, than you for reporting it. We will try to find a solution.

Many regards,
Dan