Search found 501 matches

by Dan
Thu Nov 29, 2018 12:01 pm
Forum: Common Problems
Topic: Numbering problems
Replies: 12
Views: 7408

Re: Numbering problems

I see that the numbering of the chapter starts with 1. Do you refer to the page number of the first chapter?
From your message I understood that you have succeeded in resetting the page, but the sub-sections numbers were wrong (after the fix). Is this correct?
by Dan
Thu Nov 29, 2018 10:36 am
Forum: Common Problems
Topic: Numbering problems
Replies: 12
Views: 7408

Re: Numbering problems

Hello Stanislav, I think a counter-reset used to reset the page on the first chapter has overwritten other counter-reset properties that reset other counters as well. (The counter-reset property can affect multiple counters at once.) If you cannot detect the problem, please send us your CSS using th...
by Dan
Wed Nov 28, 2018 4:11 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points
Replies: 8
Views: 3193

Re: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points

My mistake, please add a mode="#current" on the apply-templates: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"...
by Dan
Wed Nov 28, 2018 3:44 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Frontmatter and Backmatter with Chemistry
Replies: 1
Views: 1258

Re: Frontmatter and Backmatter with Chemistry

I think you should use the outputclass="before-toc" attribute on the topic refs in the DITA Map that you want them to move before the TOC, plus the @toc="no" for the topics you want excluded from the TOC. Have you tried this?

Many regards,
Dan
by Dan
Tue Nov 27, 2018 12:01 pm
Forum: Feature Request
Topic: CSS to PDF Transform -- Prompt for File
Replies: 6
Views: 6168

Re: CSS to PDF Transform -- Prompt for File

Looking closer in the pugin source, I found an hidden parameter that can be used for the purpose. You should set it manually, as it is not shown in the list of parameters in the transformation scenario dialog: outputFile: ${ask('Enter the full path for the pdf:')} Be aware that oXygen will not open ...
by Dan
Tue Nov 27, 2018 11:03 am
Forum: Feature Request
Topic: CSS to PDF Transform -- Prompt for File
Replies: 6
Views: 6168

Re: CSS to PDF Transform -- Prompt for File

Hello, I checked the plugin. In PDF2 (the DITA-OT default plugin for PDF) there is an args.output.base parameter that lets you specify the name of the file without extension. I added an issue for that, we should add support for this parameter in the CSS to PDF based transformation as well. Many rega...
by Dan
Tue Nov 27, 2018 10:36 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points
Replies: 8
Views: 3193

Re: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points

Yes, the "copy" element will simply copy the oxy: element from the merged map to the HTML output. You should replace it by a div or other element: <xsl:template match="*[contains(@class, ' front-page/front-page-title ')]" mode="#all"> <div class="doctype">Data...
by Dan
Mon Nov 26, 2018 4:51 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points
Replies: 8
Views: 3193

Re: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points

Let the XSL extend the merged2html5 extesion point. Try adding a mode="#all" on the template. <xsl:template match="*[contains(@class, ' front-page/front-page-title ')]" mode="#all"> <div class="doctype">Datasheet</div> <xsl:copy> <xsl:copy-of select="@*&q...
by Dan
Mon Nov 26, 2018 2:44 pm
Forum: Feature Request
Topic: CSS to PDF Transform -- Prompt for File
Replies: 6
Views: 6168

Re: CSS to PDF Transform -- Prompt for File

Thank you for the details!
We will check if it is possible to change the name of the output file.

Many regards,
Dan
by Dan
Mon Nov 26, 2018 2:43 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points
Replies: 8
Views: 3193

Re: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points

The extension should be bound to the last transformation, the merge2html5. it is currenlty bound to merged2merged in your publishing template, so please correct to: <xslt> <extension id="com.oxygenxml.pdf.css.xsl.merged2html5" file="xslt/document-type.xsl"/> </xslt> In this way t...
by Dan
Fri Nov 23, 2018 1:10 pm
Forum: Feature Request
Topic: CSS to PDF Transform -- Prompt for File
Replies: 6
Views: 6168

Re: CSS to PDF Transform -- Prompt for File

If you need to transform multiple documents (the JIRA output for each product version) to PDF, I recommend creating a script that invokes the DITA-OT multiple times. If you are using an oxygen publishing template to store the customization, you can use the pdf.publishing.template parameter to point ...
by Dan
Fri Nov 16, 2018 12:09 pm
Forum: Common Problems
Topic: Intermittent Lock after Transform to PDF
Replies: 17
Views: 10551

Re: Intermittent Lock after Transform to PDF

Maybe you take a look at the messages from the transformation console (Options/Preferences/DITA/Logging/Console). It might show up that the DITA-OT is processing more resources than expected.

Regards,
Dan
by Dan
Mon Nov 12, 2018 11:12 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF - Creating solid color headers
Replies: 1
Views: 1340

Re: CSS-Based PDF - Creating solid color headers

Hello, If you set the margins of a page size to zero, the page margin boxes from that side will not be visible. In general, if you want to style the header of the page, we recommend using a background image set on the entire page, as explained here: https://www.oxygenxml.com/doc/versions/20.1/ug-che...
by Dan
Thu Oct 25, 2018 9:06 am
Forum: XSLT and FOP
Topic: Link between SVG image and text in an XML document
Replies: 8
Views: 5843

Re: Link between SVG image and text in an XML document

In theory this should work: .... <!-- Declare the ID as named destination --> <fox:destination internal-destination="circle"/> .... <fo:block color="green"> <fo:basic-link external-destination="#circle"> Go to circle. </fo:basic-link> </fo:block> ... In the SVG you shou...
by Dan
Wed Oct 24, 2018 5:32 pm
Forum: XSLT and FOP
Topic: Link between SVG image and text in an XML document
Replies: 8
Views: 5843

Re: Link between SVG image and text in an XML document

I have not tested it, but you can easily try the reverse.
In the SVG sample put an ID on the circle, then add an fo:external-link (or internal) in the FO document having the target that ID.

Many regards,
Dan
by Dan
Wed Oct 24, 2018 4:55 pm
Forum: XSLT and FOP
Topic: Link between SVG image and text in an XML document
Replies: 8
Views: 5843

Re: Link between SVG image and text in an XML document

Hello David, I set up an example, but it works with mixed results. Assuming that in the XSL FO you have a block with the id "my_block_id": <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgr...
by Dan
Wed Oct 24, 2018 4:25 pm
Forum: XSLT and FOP
Topic: How to publish a PDF Document with two flow data in parallel
Replies: 3
Views: 3004

Re: How to publish a PDF Document with two flow data in parallel

Hello David,

As far as I know, the XSL-FO supports only one flow declaration. Please try to contact a commercial XSL-FO processor vendor, like Antenna House or Xep, they may have the needed extensions and expertise.

Many regards,
Dan
by Dan
Tue Oct 16, 2018 10:39 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Adding page numbers to links in DITA PDFs generated with CSS?
Replies: 2
Views: 1686

Re: Adding page numbers to links in DITA PDFs generated with CSS?

When applying the DITA Map to PDF (WYSIWIG or HTML5 based) transformation scenario, (having Chemistry as CSS processor ) you should automatically get links with a "(on page NN)" text following them. Are the links working (i.e. are clickable and navigate correctly)? What oXygen version are ...
by Dan
Mon Oct 08, 2018 8:31 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF Table of Contents formatting
Replies: 3
Views: 1767

Re: PDF Table of Contents formatting

Hello Victoria,

What transformation scenario are you using? Is it based on XSL-FO or CSS?

Many Regards,
Dan
by Dan
Thu Oct 04, 2018 2:26 pm
Forum: Common Problems
Topic: HTML Styled Correctly But PDF Isn't
Replies: 2
Views: 1673

Re: HTML Styled Correctly But PDF Isn't

There are differences in the CSS support from Chemistry and a full Web Browser. For Chemistry, the column-count should be set on the @page, not on the matching element. Please use the following technique: 1. Define an outputclass on the topic root element. (as you already did) <topic outputclass=&qu...
by Dan
Thu Oct 04, 2018 12:19 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF: footnote
Replies: 3
Views: 1917

Re: CSS-Based PDF: footnote

The @footnote part of a @page declaration controls the style of the separator between the page content and the footnotes. As content you should set a leader. The leader uses a letter or a line style to fill the entire width of the page. @page { margin:0.5in; .... @footnote { content: leader(solid); ...
by Dan
Mon Sep 24, 2018 12:27 pm
Forum: Feature Request
Topic: support text rotation
Replies: 11
Views: 11560

Re: support text rotation

The recommended way is to set a width and optionally a height to rotated block. Negative paddings or margins should be used as last resort. If you are using the HTML based transformation try: *[outputclass ~= "rotated"] > *[class ~= "topic/p"] { display: block; transform: rotate(...
by Dan
Mon Sep 17, 2018 10:27 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Avoid Chapter numbering of some topics
Replies: 8
Views: 4723

Re: Avoid Chapter numbering of some topics

Can you send us your CSS to our support email address?
Thank you, Dan
by Dan
Fri Sep 14, 2018 3:18 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF question about footers
Replies: 1
Views: 1501

Re: CSS-Based PDF question about footers

Hello, This can be done using an SVG image that contains the text "Part Number" with a color, like this: <?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" width="60pt" height="10pt" font-size="10pt" al...
by Dan
Thu Sep 13, 2018 10:26 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hazard Statement Styling
Replies: 18
Views: 7756

Re: Hazard Statement Styling

You should save the image for notice next to the customization CSS file. After this, add in you CSS: *[class ~= "hazard-d/hazardstatement"][type = "notice"]:before { content: url("other_notice_icon.png") " NOTICE"; } In this way you are changing the icon and l...
by Dan
Wed Sep 12, 2018 11:53 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Avoid Chapter numbering of some topics
Replies: 8
Views: 4723

Re: Avoid Chapter numbering of some topics

Hello Stanislav,

Please check this topic from the urser-guide: https://www.oxygenxml.com/doc/versions/ ... ntent.html

Many regards,
Dan
by Dan
Wed Sep 12, 2018 11:50 am
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 3723

Re: merged2html5 -- Modifying xref elems

Maybe a CSS rule to hide the desc element could work as well.
I am glad you worked it out!

Best regards,
Dan
by Dan
Tue Sep 11, 2018 2:16 pm
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 3723

Re: merged2html5 -- Modifying xref elems

I do not understand exactly what happens, can you post here the fragments corresponding to the xref link as it appears in the .merged.xml and merged.html files from the output folder? Are you modifying the merged2merged or merged2html5 XSL processing? Let's take a look at how the plugin works: 1. A ...
by Dan
Mon Sep 10, 2018 2:54 pm
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 3723

Re: merged2html5 -- Modifying xref elems

Probably you need something like:

Code: Select all


<xsl:value-of select="node() except *[contains(@class, 'topic/shortdesc')]"/>
I have not tested it yet. Take a look at the merged file and modify the selector accordingly.

Many regards,
Dan