ID attribute not imported from HTML to DocBook 4.5
Oxygen general issues.
-
- Posts: 1
- Joined: Wed Nov 29, 2023 6:21 pm
ID attribute not imported from HTML to DocBook 4.5
Hi Everyone,
I am new to Oxygen and would appreciate your help with the following question. I am importing an HTML file into DocBook 4.5 using batch converter. HTML page is a glossary and it has links between entries within the page. In HTML there is an id attribute on each element that can be linked to. The value of the id is referenced in links to that element elsewhere in the page. After conversion, links are still using the same values, but id attribute is no longer present resulting in broken links. Here's an example:
HTML <td class="c4" colspan="1" rowspan="1"><h5 class="c0 c13" id="h.m4zzvgkbjb7l"><span class="c5">Some text</span></h5></td>
is converted to
ML <entry>Some text</entry>
I can manually fix this using <entry id="h.m4zzvgkbjb7l">Some text</entry>, but is there a way to configure conversion to preserve id value in this situation?
Thank you in advance for your help.
I am new to Oxygen and would appreciate your help with the following question. I am importing an HTML file into DocBook 4.5 using batch converter. HTML page is a glossary and it has links between entries within the page. In HTML there is an id attribute on each element that can be linked to. The value of the id is referenced in links to that element elsewhere in the page. After conversion, links are still using the same values, but id attribute is no longer present resulting in broken links. Here's an example:
HTML <td class="c4" colspan="1" rowspan="1"><h5 class="c0 c13" id="h.m4zzvgkbjb7l"><span class="c5">Some text</span></h5></td>
is converted to
ML <entry>Some text</entry>
I can manually fix this using <entry id="h.m4zzvgkbjb7l">Some text</entry>, but is there a way to configure conversion to preserve id value in this situation?
Thank you in advance for your help.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ID attribute not imported from HTML to DocBook 4.5
Hi,
I consider this to be a bug in the converter, it should propagate in all cases IDs from the HTML document to the DocBook document.
I added an internal issue to look into fixing this, pasting the issue ID below for future reference:
EXM-53959 HTML to DocBook conversion loses ID attributes set on elements
If during the investigation we find some way you could make this work on your side, maybe by modifying one of the XSLT stylesheets involved in the conversion, we'll post it here.
Regards,
Radu
I consider this to be a bug in the converter, it should propagate in all cases IDs from the HTML document to the DocBook document.
I added an internal issue to look into fixing this, pasting the issue ID below for future reference:
EXM-53959 HTML to DocBook conversion loses ID attributes set on elements
If during the investigation we find some way you could make this work on your side, maybe by modifying one of the XSLT stylesheets involved in the conversion, we'll post it here.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service