You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems, there is no way to customize the Confluence to DITA import.
Maybe it would be possible to pass more information to the DITA output.
This would help to develop custom XSLT post processing.
Todo
Pass div elements from HTML to DITA.
Translate span elements into e.g. data or unknown elements
Transform @Class attributes into e.g. @base in DITA.
Here is an example of a Confluence export HTML fragment containig a notice block:
<div class="confluence-information-macro confluence-information-macro-note">
<span class="aui-icon aui-icon-small aui-iconfont-warning confluence-information-macro-icon"></span>
<div class="confluence-information-macro-body">
<p>Service may only be carried out by technicians trained by manufacturer!</p>
</div>
</div>
the current generated DITA output looks like this
<p>Service may only be carried out by technicians trained by manufacturer!</p>
if the importer would keep as much information, structure and metadata as possible like the following...
<div base="confluence-information-macro confluence-information-macro-note">
<unknown base="aui-icon aui-icon-small aui-iconfont-warning confluence-information-macro-icon"></unknown>
<div base="confluence-information-macro-body">
<p>Service may only be carried out by technicians trained by manufacturer!</p>
</div>
</div>
... the customer has all information required to build a individual XSLT post processing output like this:
<note type="warning">
<p>Service may only be carried out by technicians trained by manufacturer!</p>
</note>
The text was updated successfully, but these errors were encountered:
Hi,
Thank you for your feedback.
I registered an internal issue for adding an option for controlling the preservation of information from the class attribute.
I will update this thread when we manage to implement this in a future release.
It seems, there is no way to customize the Confluence to DITA import.
Maybe it would be possible to pass more information to the DITA output.
This would help to develop custom XSLT post processing.
Todo
Here is an example of a Confluence export HTML fragment containig a notice block:
the current generated DITA output looks like this
if the importer would keep as much information, structure and metadata as possible like the following...
... the customer has all information required to build a individual XSLT post processing output like this:
The text was updated successfully, but these errors were encountered: