Search found 501 matches

by Dan
Tue Dec 29, 2020 11:08 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA to PDF via CSS image float support
Replies: 10
Views: 2932

Re: DITA to PDF via CSS image float support

It will not be done on short term. If you are in a hurry, please consider using Antenna House or Prince XML as CSS processors, they are great layout engines. You can use the css.processor.type and css.processor.path.* parameters to specify the path to the processor to use. https://www.oxygenxml.com/...
by Dan
Mon Dec 28, 2020 11:10 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA to PDF via CSS image float support
Replies: 10
Views: 2932

Re: DITA to PDF via CSS image float support

Indeed, the float is experimental, so I would not recommend using it yet. I will increase the priority of this feature.

Many regards,
Dan
by Dan
Fri Dec 18, 2020 7:23 pm
Forum: Common Problems
Topic: Pointing to a different SVG cover based on bookmap info
Replies: 5
Views: 3111

Re: Pointing to a different SVG cover based on bookmap info

Sure, you can set the name of the image file in the metadata section, in a data element (you can put one in the prodname element for instance, or in a topic), then use XPath to extract it and pass it to the CSS url function. In the next example the name attribute of the data element is set to 'image...
by Dan
Fri Dec 18, 2020 12:12 pm
Forum: Common Problems
Topic: Pointing to a different SVG cover based on bookmap info
Replies: 5
Views: 3111

Re: Pointing to a different SVG cover based on bookmap info

The solution is to use an XPath to extract some information from the document, and based on it select the SVG images. @page front-page { background-image: url(oxy_xpath("\ if(//*[contains(@class, ' topic/prodname ')][1] = 'gardening') then 'bg-gardening.svg' else\ if(//*[contains(@class, ' topi...
by Dan
Thu Dec 03, 2020 11:46 am
Forum: Common Problems
Topic: Finding over-width tables (and cleaning up transformation warnings?)
Replies: 4
Views: 2898

Re: Finding over-width tables (and cleaning up transformation warnings?)

Indeed the error messages are issued when the intermediate FO file is processed and are pointing to lines and columns in this file. You can open the .fo file in oXygen and identify the markup. Further you can use the text content of that table to identify the original topic. I will record an improve...
by Dan
Tue Oct 27, 2020 3:50 pm
Forum: Common Problems
Topic: Chapter title numbering, counting sections from zero in a specific chapter
Replies: 5
Views: 4008

Re: Chapter title numbering, counting sections from zero in a specific chapter

Hello Manohar,

Could you please send your current customization CSS and a small sample using the form https://www.oxygenxml.com/techSupport.html?
What oXygen are you using right now?

Many regards,
Dan
by Dan
Mon Oct 12, 2020 1:46 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Generation of Table of contents and index page
Replies: 11
Views: 4685

Re: Generation of Table of contents and index page

No, unfortunately the index must be placed in either frontmatter or backmatter, and those elements cannot be placed between chapters. I understand the first chapter plays a special role, is a kind of abstract. Why not placing in in the frontmatter, as an abstract? If you need more information about ...
by Dan
Mon Oct 12, 2020 12:43 pm
Forum: Common Problems
Topic: Automatically keeping introduction paragraphs with their content
Replies: 2
Views: 2244

Re: Automatically keeping introduction paragraphs with their content

Hello Chris, Thank you for sharing your code! So, whenever you have a paragraph that contains punctuation like column or comma, the next content (like images, or other content that may follow it) is kept on the same page with the paragraph. Is a nice example on how powerful is a combination of XSL a...
by Dan
Wed Oct 07, 2020 8:57 am
Forum: Feature Request
Topic: Using a more recent PDF version for PDF production
Replies: 13
Views: 6401

Re: Using a more recent PDF version for PDF production

We will look into this, thank you for letting us know.
Dan
by Dan
Tue Sep 29, 2020 9:17 am
Forum: Common Problems
Topic: DITA-OT HTML5 processing in PDF Chemistry
Replies: 6
Views: 4103

Re: DITA-OT HTML5 processing in PDF Chemistry

Such a complex situation... Glad you work it out!
by Dan
Thu Sep 24, 2020 12:53 pm
Forum: Common Problems
Topic: DITA-OT HTML5 processing in PDF Chemistry
Replies: 6
Views: 4103

Re: DITA-OT HTML5 processing in PDF Chemistry

I am not sure why this happens. You can try debugging the XSLT transformation with oXygen - it is a bit complicated to setup this, but here is how it may be done: The file you need to debug is: DITA-OT/plugins/com.oxygenxml.pdf.css/xsl/merged2merged/merged.xsl First, make a DITA transformation with ...
by Dan
Thu Sep 24, 2020 11:52 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Failed to run pipline
Replies: 3
Views: 1377

Re: Failed to run pipline

I am glad it worked! There are some ideas about updating specializations here: https://www.oxygenxml.com/dita/1.3/specs/non-normative/migration-to-new-version.html If you need a DITA professional advice for this, please direct your questions to the dita-user mailing list. If you have other questions...
by Dan
Mon Sep 21, 2020 12:23 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Failed to run pipline
Replies: 3
Views: 1377

Re: Failed to run pipline

Hello, We implemented a restriction in the catalog resolver to avoid security issues like the transformation process reading files unrelated to the transformation. This is useful when you are using a DITA-OT in a context where the content may come from outside organization contributors. You can disa...
by Dan
Mon Sep 14, 2020 4:27 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Prevent blank pages before chapters in PDF output
Replies: 3
Views: 2725

Re: Prevent blank pages before chapters in PDF output

What PDF transformation are you using, the one based on XSL-FO or HTML5+CSS? For the later, please see the page breaking documentation topic: https://www.oxygenxml.com/doc/versions/ ... e_breaking
by Dan
Tue Sep 08, 2020 9:18 am
Forum: Common Problems
Topic: Chapter title numbering, counting sections from zero in a specific chapter
Replies: 5
Views: 4008

Re: Chapter title numbering

For the TOC you should see how the counters toc-section1 and toc-chapter-and-sections are used in the p-numbering-deep.css file (similar to section1 and chapter-and-section counters that are used for titles in the main content). The default numbering CSS file is located in: OXYGEN_INSTALL_DIR/DITApl...
by Dan
Sun Sep 06, 2020 9:39 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Want chapter numbering to continue through bibliolist and glossary
Replies: 7
Views: 2346

Re: Want chapter numbering to continue through bibliolist and glossary

Depending on the args.css numbering parameter, one of the CSSs is used: OXYGEN_INSTALL_DIR/DITA-OT3X/plugins/com.oxygenxml.pdf.css/css/print/p-numbering-shallow.css OXYGEN_INSTALL_DIR/DITA-OT3X/plugins/com.oxygenxml.pdf.css/css/print/p-numbering-deep.css Unfortunately, there are lots of CSS selector...
by Dan
Thu Sep 03, 2020 10:01 am
Forum: Common Problems
Topic: Chapter title numbering, counting sections from zero in a specific chapter
Replies: 5
Views: 4008

Re: Chapter title numbering

This is a very specific requirement. The solution is to reset the section1 counter to 0 by matching the topic chapter with a specific ID (or outputclass), or the first topic from that chapter. You need to do this in both the TOC and content counters, so you will need an outputclass set on the topicr...
by Dan
Fri Aug 28, 2020 9:53 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add image (company logo) in header section, while creating custom.css
Replies: 5
Views: 3105

Re: Add image (company logo) in header section, while creating custom.css

I see from the image properties screenshot that the image is a perfect square, while in the CSS you are using slightly different values for the width and for the height. To get perfect alignment of graphical elements in the page, we recommend using a single background image for the entire page, as i...
by Dan
Fri Jul 03, 2020 2:42 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom transformation parameters for css (background image for the title page)
Replies: 5
Views: 1851

Re: Custom transformation parameters for css

Please note that the image path should be given as an absolute URI, like: file:/C:/temp/example.svg. It works also with relative paths, but it will solve them relative to the XML location.
by Dan
Mon Jun 29, 2020 10:38 am
Forum: Common Problems
Topic: New URLDecoder Illegal Hex Error
Replies: 2
Views: 1234

Re: New URLDecoder Illegal Hex Error

There might be something that has changed in the DITA files (maybe something that is included from multiple maps). This is what you can try: 1. Copy your map and try to remove topic reference from it until this specific error disappears. Try to identify the specific topic that causes the problem. Cr...
by Dan
Thu Jun 04, 2020 8:50 am
Forum: Common Problems
Topic: Conditionalizing PDF output based on a map's @outputclass
Replies: 7
Views: 4536

Re: Conditionalizing PDF output based on a map's @outputclass

Please see: https://www.oxygenxml.com/doc/versions/22.1/ug-chemistry/topics/ch_pdf_output.html#ch_metadata__section_aqz_j2j_wz -oxy-pdf-meta-title It is used to extract the publication title. If this CSS selector matches multiple elements, only the first element in the document order will be used to...
by Dan
Wed Jun 03, 2020 1:07 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Space between the task steps
Replies: 3
Views: 1457

Re: Space between the task steps

One easy way to determine what causes the spacing and fix it in the CSS is to use the CSS inspector from the browser. The procedure is explained here: https://www.oxygenxml.com/doc/versions/22.1/ug-ope/topics/dcpp_debugging_the_css.html#dcpp_debugging_the_css If you still have problems please create...
by Dan
Wed Jun 03, 2020 10:45 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Space between the task steps
Replies: 3
Views: 1457

Re: Space between task steps

Hi, I cannot reproduce the problem. Please check your customization CSS, maybe you have set a min-height that matches the steps. To test this, please add some text to the first item in the second case, and see what happens when the text wraps on multiple lines. If the space disappears, then probably...
by Dan
Wed Jun 03, 2020 9:16 am
Forum: Common Problems
Topic: Conditionalizing PDF output based on a map's @outputclass
Replies: 7
Views: 4536

Re: Conditionalizing PDF output based on a map's @outputclass

We are not yet supporting the 'unset' CSS identifier. I added an issue, we will try to implement it. Until then, use an oxy_xpath as value for the default selectors: *[class ~= "front-page/front-page-title"] *[class ~= "topic/title"] { -oxy-pdf-meta-title: oxy_xpath(..); } *[clas...
by Dan
Mon May 11, 2020 4:14 pm
Forum: Common Problems
Topic: Glossary content control
Replies: 6
Views: 3412

Re: Glossary content control

Hello Duncan, I think the problem comes from the usage of "page-break-before:avoid" property on "glossentry/glossterm" elements. Do you have something like this in your customization CSS? Please note that "glossentry/glossterm" elements are also inheriting the "top...
by Dan
Thu May 07, 2020 12:21 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Paragraphs in table cells in PDF via XSL-FO output
Replies: 1
Views: 1542

Re: Paragraphs in table cells in PDF via XSL-FO output

Yes, the DITA-OT has an attribute set defined for the paragraphs and blocks, in the commons-attr.xsl: <!-- paragraph-like blocks --> <xsl:attribute-set name="common.block"> <xsl:attribute name="space-before">0.6em</xsl:attribute> <xsl:attribute name="space-after">0.6em<...
by Dan
Wed May 06, 2020 10:18 am
Forum: Feature Request
Topic: Placing table footnotes below table
Replies: 1
Views: 1848

Re: Placing table footnotes below table

The only area that can display the footnotes is at the end of the page, there is no support for footnotes under the tables.
Many regards,
Dan
by Dan
Mon Apr 06, 2020 8:49 am
Forum: Common Problems
Topic: Numbering single step procedures in task
Replies: 5
Views: 3524

Re: Numbering single step procedures in task

I recorded an improvement request for this.

Many regards,
Dan
by Dan
Wed Apr 01, 2020 11:36 am
Forum: Common Problems
Topic: Numbering single step procedures in task
Replies: 5
Views: 3524

Re: Numbering single step procedures in task

I checked the DITA-OT stylesheets. Indeed, the steps element that contains a single item is transformed in a structure like: <section> <div class="li step p"> <span class="ph cmd">This is a command</span> </div> </section> This was in fact an improvement request: https://github.c...
by Dan
Fri Mar 20, 2020 10:49 am
Forum: XSLT and FOP
Topic: How to include Legal page after cover Page ?
Replies: 3
Views: 1698

Re: How to include Legal page after cover Page ?

Hello, I see you are using the classical PDF transformation, based on XSL-FO, and you are trying to change the preface.xsl file from the DITA-OT PDF2 plugin. Here are some hints: - For complex documentation please use a bookmap instead of map. One way is to manually convert your maps to bookmaps, by...