Questions tagged [dita-ot]

Questions about the DITA Open Toolkit, an open-source reference implementation of transformations from DITA XML to various end-user deliverables, including HTML and PDF.

The DITA Open Toolkit (sometimes shortened to DITA-OT or toolkit) is used by many other tools as the basis for building deliverables from DITA source files. It assembles the source files as specified in a DITA map file, implements flagging and filtering as specified by an optional DITAVAL file, and uses XSLT to create end-user deliverables.

DITA Open Toolkit is run in Java, and build parameters can be passed to the toolkit either by creating an Ant build file (preferred) or directly to the Java process.

In the case of PDF output, the XSLT generates an XSL-FO object that is then transformed by an FO rendering engine. The DITA Open Toolkit includes the open-source Apache FOP engine, but third-party engines can be used with the toolkit as well.

More information about the DITA Open Toolkit is available dita-ot.org

148 questions
1
vote
1 answer

Why does this xpath match this text node?

Why does this xpath from dita-ot "*[contains(@class, ' topic/topic ')]/*[contains(@class, ' topic/title ')] match the text node "Getting started"?
conteh
  • 1,544
  • 1
  • 17
  • 39
1
vote
1 answer

How to call a variable value from one template to another template using xslt

Hi I need to call a variable value from one template to another template in an xsl file of dita ot plugin: My Ditamap file:
User515
  • 186
  • 12
1
vote
1 answer

How can I override default css in html5 converting with DITA-OT 3.0.4?

I'm using DITA-OT 3.0.4. I'm trying to convert my markdown file to html5 with the following command. dita --input="note.ditamap" --output="out" --format=html5 --args.css=style.css --args.cssroot=metadata --args.copycss=yes --args.csspath=css And I…
tkhm
  • 860
  • 2
  • 10
  • 30
1
vote
2 answers

DITA OT: Missing conditional text from PDF output

I'm migrating a custom PDF plugin from DITA OT 2.4.4 to 2.5.4. It worked fine in DITA 2.4.4, but in 2.5.4, some elements are missing from the output. I've been able to work around this by adding templates for the missing elements to the custom…
1
vote
1 answer

Need to right to left align using DITA-OT for arabic language

I'm converting DITA to PDF using DITA-OT 1.8.5 for the arabic input file. After I got convert I'm getting the left to right align view for the PDF output. I need the right to left alignment with the right indent, Please suggest me the coding from…
User501
  • 319
  • 1
  • 14
1
vote
1 answer

Guide lines for chunk="to-content"

I am using chunk="to-content" in topichead tag like below to generate merged topic html file using DITA OT 1.8.5 Plugin org.dita4publishers.html2 plugin then its generating Chunk363995000.html output My ditamap…
User515
  • 186
  • 12
1
vote
2 answers

Merging all concepts , chapters and tpoicref's in to single into a single html using org.dita4publishers.html2 plugin

Is it possible to get the all topicref's concept's, chapter's in to single html file using org.dita4publishers.html2 plugin My ditamap or xml file is like this <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/dita" class="post-tag grid--cell" title="show questions tagged 'dita'" rel="tag">dita</a> <a href="../../questions/tagged/dita-ot" class="post-tag grid--cell" title="show questions tagged 'dita-ot'" rel="tag">dita-ot</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 10 '17 at 09:25">asked Mar 10 '17 at 09:25</time> <a href="../../users/7188054/user515" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/7188054.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="User515" /> </a> <div class="s-user-card--info"> <a href="../../users/7188054/user515" class="s-user-card--link">User515</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">186</li> <li class="s-award-bling s-award-bling__bronze" title="12 bronze badges">12</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-42550299"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/42550299/is-it-possible-to-capture-id-from-top-element-of-a-dita-file-and-adding-it-int" class="question-hyperlink">Is it possible to capture id from top element of a dita file and adding it into toc.js using org.dita4publishers.html2 plugin</a></h3> <div class="excerpt">To fetch id from dita file to add it in toc.js into html2 plugin: My input dita file <?xml version="1.0" encoding="UTF-8"?> <task id="info"> <title class="- topic/title ">Info
User515
  • 186
  • 12
1
vote
1 answer

DITA to DOCX using plugin com.elovirta.ooxml in DITA OT 1.8.5

Is it possible to convert DITA to DOCX using plugin com.elovirta.ooxml in DITA OT 1.8.5 input dita map file: This is a test…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/dita" class="post-tag grid--cell" title="show questions tagged 'dita'" rel="tag">dita</a> <a href="../../questions/tagged/oxygenxml" class="post-tag grid--cell" title="show questions tagged 'oxygenxml'" rel="tag">oxygenxml</a> <a href="../../questions/tagged/dita-ot" class="post-tag grid--cell" title="show questions tagged 'dita-ot'" rel="tag">dita-ot</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 17 '17 at 07:22">asked Jan 17 '17 at 07:22</time> <a href="../../users/7188054/user515" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/7188054.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="User515" /> </a> <div class="s-user-card--info"> <a href="../../users/7188054/user515" class="s-user-card--link">User515</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">186</li> <li class="s-award-bling s-award-bling__bronze" title="12 bronze badges">12</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-41602311"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/41602311/keep-together-on-topic-level" class="question-hyperlink">Keep-together on topic level</a></h3> <div class="excerpt">I am customizing the pdf2 plugin for dita-ot 2.4. My formatter is FOP. I want to make my plugin prefer page breaks between topics. Hence, I tried adding the following attributes in the "topic" attribute set; "keep-together.within-page" with a value…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xsl-fo" class="post-tag grid--cell" title="show questions tagged 'xsl-fo'" rel="tag">xsl-fo</a> <a href="../../questions/tagged/dita-ot" class="post-tag grid--cell" title="show questions tagged 'dita-ot'" rel="tag">dita-ot</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 11 '17 at 23:01">asked Jan 11 '17 at 23:01</time> <a href="../../users/3958843/fredrik" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3958843.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Fredrik" /> </a> <div class="s-user-card--info"> <a href="../../users/3958843/fredrik" class="s-user-card--link">Fredrik</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">598</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="5 silver badge">5</li> <li class="s-award-bling s-award-bling__bronze" title="22 bronze badge">22</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-41439316"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/41439316/i-need-steps-how-to-convert-dita-to-word-using-dita-ot-plugin-named-com-elovir" class="question-hyperlink">I need steps how to convert dita to word using DITA OT plugin named com.elovirta.ooxml in oxygen</a></h3> <div class="excerpt">I need steps to convert DITA to word process in oxygen by using the plugin name called com.elovirta.ooxml using this link, Input Dita xml file is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topic PUBLIC "urn:pubid:doctypes:dita:topic"…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/docx" class="post-tag grid--cell" title="show questions tagged 'docx'" rel="tag">docx</a> <a href="../../questions/tagged/dita" class="post-tag grid--cell" title="show questions tagged 'dita'" rel="tag">dita</a> <a href="../../questions/tagged/oxygenxml" class="post-tag grid--cell" title="show questions tagged 'oxygenxml'" rel="tag">oxygenxml</a> <a href="../../questions/tagged/dita-ot" class="post-tag grid--cell" title="show questions tagged 'dita-ot'" rel="tag">dita-ot</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 03 '17 at 08:31">asked Jan 03 '17 at 08:31</time> <a href="../../users/7188054/user515" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/7188054.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="User515" /> </a> <div class="s-user-card--info"> <a href="../../users/7188054/user515" class="s-user-card--link">User515</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">186</li> <li class="s-award-bling s-award-bling__bronze" title="12 bronze badges">12</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-41390942"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/41390942/is-this-possible-to-convert-dita-to-word-process-using-oxygen" class="question-hyperlink">Is this possible to convert DITA to Word process using Oxygen</a></h3> <div class="excerpt">I'm trying to convert DITA to word process in oxygen by using the plugin name called com.elovirta.ooxml through this link, My Input Dita xml file is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topic PUBLIC "urn:pubid:doctypes:dita:topic"…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/docx" class="post-tag grid--cell" title="show questions tagged 'docx'" rel="tag">docx</a> <a href="../../questions/tagged/dita" class="post-tag grid--cell" title="show questions tagged 'dita'" rel="tag">dita</a> <a href="../../questions/tagged/oxygenxml" class="post-tag grid--cell" title="show questions tagged 'oxygenxml'" rel="tag">oxygenxml</a> <a href="../../questions/tagged/dita-ot" class="post-tag grid--cell" title="show questions tagged 'dita-ot'" rel="tag">dita-ot</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Dec 30 '16 at 05:11">asked Dec 30 '16 at 05:11</time> <a href="../../users/7124772/user501" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/7124772.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="User501" /> </a> <div class="s-user-card--info"> <a href="../../users/7124772/user501" class="s-user-card--link">User501</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">319</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="14 bronze badges">14</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-40636792"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/40636792/strip-whitespace-in-fop-inline-element" class="question-hyperlink">Strip whitespace in FOP inline element</a></h3> <div class="excerpt">I fail stripping whitespaces inside of inline elements in FOP with DITA-OT PDF2. This is my code snippet: <p>1 BEFORE <uicontrol>test</uicontrol> AFTER</p> <p>2 BEFORE <uicontrol> test</uicontrol> AFTER</p> <p>3 BEFORE <uicontrol>test </uicontrol>…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/apache-fop" class="post-tag grid--cell" title="show questions tagged 'apache-fop'" rel="tag">apache-fop</a> <a href="../../questions/tagged/dita" class="post-tag grid--cell" title="show questions tagged 'dita'" rel="tag">dita</a> <a href="../../questions/tagged/dita-ot" class="post-tag grid--cell" title="show questions tagged 'dita-ot'" rel="tag">dita-ot</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Nov 16 '16 at 16:06">asked Nov 16 '16 at 16:06</time> <a href="../../users/3604444/stefan-jung" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3604444.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Stefan Jung" /> </a> <div class="s-user-card--info"> <a href="../../users/3604444/stefan-jung" class="s-user-card--link">Stefan Jung</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,209</li> <li class="s-award-bling s-award-bling__silver" title="11 silver badges">11</li> <li class="s-award-bling s-award-bling__bronze" title="20 bronze badges">20</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-36301495"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/36301495/xsl-if-that-depends-on-a-child-node" class="question-hyperlink">xsl:if that depends on a child node</a></h3> <div class="excerpt">I have this bookmap: <?xml version="1.0" encoding="utf-8"?> <bookmap> <part> <chapter/> <chapter/> <chapter/> </part> <part/> <part/> <part/> <part/> <appendix/> </bookmap> I would like to place inside templates, xsl:if commands that…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xslt" class="post-tag grid--cell" title="show questions tagged 'xslt'" rel="tag">xslt</a> <a href="../../questions/tagged/xsl-fo" class="post-tag grid--cell" title="show questions tagged 'xsl-fo'" rel="tag">xsl-fo</a> <a href="../../questions/tagged/dita" class="post-tag grid--cell" title="show questions tagged 'dita'" rel="tag">dita</a> <a href="../../questions/tagged/oxygenxml" class="post-tag grid--cell" title="show questions tagged 'oxygenxml'" rel="tag">oxygenxml</a> <a href="../../questions/tagged/dita-ot" class="post-tag grid--cell" title="show questions tagged 'dita-ot'" rel="tag">dita-ot</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 30 '16 at 06:42">asked Mar 30 '16 at 06:42</time> <a href="../../users/6068246/jose-cotes" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/6068246.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jose Cotes" /> </a> <div class="s-user-card--info"> <a href="../../users/6068246/jose-cotes" class="s-user-card--link">Jose Cotes</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">31</li> <li class="s-award-bling s-award-bling__bronze" title="3 bronze badges">3</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-34766407"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/34766407/how-can-i-specialize-the-link-element-related-links" class="question-hyperlink">How can I specialize the link element (related-links)</a></h3> <div class="excerpt">i'd like to create new elements, based on the link element. This would be more comfortable for the author than using the role and otherrole attributes to specify the link role. Unfortunately the DITA-OT 2.2.1 fails with this message: Required…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/dita" class="post-tag grid--cell" title="show questions tagged 'dita'" rel="tag">dita</a> <a href="../../questions/tagged/dita-ot" class="post-tag grid--cell" title="show questions tagged 'dita-ot'" rel="tag">dita-ot</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 13 '16 at 12:12">asked Jan 13 '16 at 12:12</time> <a href="../../users/3604444/stefan-jung" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3604444.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Stefan Jung" /> </a> <div class="s-user-card--info"> <a href="../../users/3604444/stefan-jung" class="s-user-card--link">Stefan Jung</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,209</li> <li class="s-award-bling s-award-bling__silver" title="11 silver badges">11</li> <li class="s-award-bling s-award-bling__bronze" title="20 bronze badges">20</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/dita-ot_page=2" rel="prev" title="Go to page 2">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/dita-ot_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/dita-ot_page=2" rel="" title="Go to page 2">2</a> <div class="s-pagination--item is-selected">3</div> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/dita-ot_page=9" rel="" title="Go to page 9">9</a> <a class="s-pagination--item" href="../../questions/tagged/dita-ot_page=10" rel="" title="Go to page 10">10</a> <a class="s-pagination--item" href="../../questions/tagged/dita-ot_page=4" rel="next" title="Go to page 4"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>