Append HTML content
See original GitHub issueDescription
I would like to append/embed the content of one HTML file to my PDF or HTML. Is this posible through DITA-OT?
I am using this link as a reference: https://www.oxygenxml.com/dita/styleguide/webhelp-feedback/Artefact/Maps/c_Non-DITA_Topic_References.html
But I am unable to make it work.
I have tried with below ditamap, but even when scope=local, the content of the HTML is not appended.
...
<appendix navtitle="Report">
<topicref format="html" href="content.html" locktitle="yes" navtitle="Report" scope="peer"/>
</appendix>
<backmatter>
....
Environment: MacOs DITA-OT 3.3
Thank you!
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Element.append() - Web APIs - MDN Web Docs
The Element.append() method inserts a set of Node objects or string objects after the last child of the Element. String objects are inserted ......
Read more >How to append HTML code to a div using JavaScript
To append using the innerHTML attribute, first select the element (div) where you want to append the code. Then, add the code enclosed...
Read more >.append() | jQuery API Documentation
A function that returns an HTML string, DOM element(s), text node(s), or jQuery object to insert at the end of each element in...
Read more >jQuery append() Method
The append() method inserts specified content at the end of the selected elements. Tip: To insert content at the beginning of the selected...
Read more >How to append text to a `<div>`? - javascript
If you are using jQuery you can use $('#mydiv').append('html content') and it will keep the existing content. http://api.jquery.com/append/.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@cinthyargc thanks for documenting your experience with this. I added a documentation task so that maybe the docs could explain better the limitations of the conversion.
Hi Radu,
I just wanted to share, that I updated to latest version of DITA-OT, and I am now able to add html content into my HTML and PDF, I was missing the fix for #2947.
Important Note: I had to re-formart my HTML, to match HTML 5, and use article tags, otherwise, HTML body was not being added to PDF or HTML.
To anyone reaching this point, use HTML 5 tags and DITA-OT >= 3.3.2. Below a sample code: