dita-ot | DITA Open Toolkit — the open-source publishing engine | Content Management System library
kandi X-RAY | dita-ot Summary
kandi X-RAY | dita-ot Summary
DITA Open Toolkit — the open-source publishing engine for content authored in the Darwin Information Typing Architecture.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle an end element
- Serialize a DOM Node to a SAX stream
- Write linktext element
- Write alt element
- Process an XML start element
- Create topicmeta node
- Generate output file name
- Searches for a specific subtree
- Writes the XML to a file
- Returns the filters for processing
- Compiles the stylesheet
- Log a message based on priority
- Process a single file
- Process an start element
- Execute the move links module
- Synchronized
- Process an XML start tag
- Load variable files
- Write DITA document to a file
- Handle a start element
- Performs rewrite
- Get processing filters for a given file
- Entry point for keyref module
- Entry point for merging
- Entry point
- Process start element
dita-ot Key Features
dita-ot Examples and Code Snippets
Community Discussions
Trending Discussions on dita-ot
QUESTION
I am trying to customize the PDF2 plugin in DITA-OT. I want to apply small caps to the string "Chapter" and chapter number that appear at the start of every chapter.
What I did so farIn my custom plugin, I modified the following the __chapter__frontmatter__name__container
attribute-set in the static-content-attr.xsl file to include small-caps
:
ANSWER
Answered 2021-Feb-05 at 15:34Your syntax is correct (rather, it will be correct in the result tree). See https://www.w3.org/TR/xsl11/#font-variant
However, FOP does not support font-variant
. See https://xmlgraphics.apache.org/fop/compliance.html#fo-property-font-variant
You may be able to get small caps if you use a small caps-only font. The FOP font page at https://xmlgraphics.apache.org/fop/2.6/fonts.html notes that OpenType includes small caps but then notes that FOP doesn't support OpenType features.
There are other formatters that do support small caps and that work with the DITA-OT.
QUESTION
I have a topic, which only contains some metadata (childs of prolog and some custom elements too) of the documentation. The contents of these elements is displayed in headers and footers in the acutal PDF output.
My problem: now the referred topic itself included in the pdf as an empty chapter.
Setting the processing-role to resource-only or filtering the topic does not solve the problem, as the content of the elements is needed in the further steps of the transformation (headers, footerst ect..)
My best guess is to somehow exclude this one topic and the needless page sequence based on its ID with..
.. adding some attributes in a custom xsl template?
.. modification of topic processing?
.. an obvious method that didn’t occur to me?
but I’m a beginner, so a little guidance would be nice.
Currently using: DITA-OT 2.1; Oxygen 17.1; Bookmap spec.; XSL FO based transformations;
Thanks in advance!
...ANSWER
Answered 2021-Jan-12 at 15:20Maybe instead of keeping that content inside the topic, you could keep it inside the main DITA Map, maybe using some DITA "data" elements like:
QUESTION
I'm generating a PDF using DITA-OT. I'd like to add labels to topic titles such as "Exercise 1:". I know that we can do this by adding variables to the en.xml
file for section titles, chapter titles, etc. How can we extend this functionality to topic titles?
More specifically, I want to add "Exercise: #" and "Task: #" to Heading level 1 and Heading level 2 topic titles.
...ANSWER
Answered 2021-Jan-08 at 13:29In the XSLT stylesheet "dita-ot/plugins/org.dita.pdf2/xsl/fo/topic.xsl" there is a template which matches the topic title:
QUESTION
I am using VS Code and the "XML Language Support by Red Hat". I am pointing to the catalog file inside the DITA OT directory dita-ot-3.3.3\catalog-dita.xml
. My DITA file looks like this:
ANSWER
Answered 2020-Nov-11 at 14:31Edit settings.json
to validate against DTD using catalog file as follows:
You must set "xml.catalogs
","xml.javahome
", "xml.validation.resolveExternalEntities
" respectively.
Then you can get the succeeded validation result:
By the way, your DITA file is originally not valid against DITA DTD.
QUESTION
Is there a method when creating dita-ot 2.1 pipeline to only output the topic.fo and not go on to create the PDF?
Regards Conteh
...ANSWER
Answered 2020-Apr-14 at 08:26As far as I know there is no such a parameter available by default. If you look in the ANT build file "DITA-OT/plugins/org.dita.pdf2/build.xml" there is a "transform.fo2pdf" target. I guess you could manually make changes to the build file in order to avoid calling this target from the "transform.topic2pdf" target.
Change:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dita-ot
You can use dita-ot like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the dita-ot component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page