On 11/11/2018 11:45 PM, Leif Halvard Silli wrote:
(XMLmind XML Editor related question.)
HDITA topic documents requires an <article> around the contens.
I have a not-generated-by-me XHTML file which lacks the article element,
which I would like to include as HDITA topic file.
To workaround the problem, I thought I could create a second "empty"
HDITA file, with an <article> element inside. I would then embed the
necessary content from the first file by way of <xi:include>.
Including the non-hdita content inside the <article> element of the
other file, was a piece of cake - it looked and behaved as expected
within XMLmind XML Editor.
However, when generating the PDF output - via ditac - the xincluded
content did not 'show up' - the particular topic was empty.
Does this not work?
This cannot work. ditac does not support XInclude.
Is it not supposed to work?
This is not supposed to work. ditac, a DITA processor, is not required
to support XInclude.
Is there a workaround?
For your (very specific) use case, the answer is probably no.
For the general "content reuse in HDITA" use case, you could have used
DITA conref in HDITA.
This is achieved by specifying HDITA attribute data-conref. You'll find
an example here:
"5.2.2 Example of an HDITA topic"
http://docs.oasis-open.org/dita/LwDITA/v1.0/cn01/LwDITA-v1.0-cn01.html#what-is-hdita
However please note that XMLmind XML Editor will not generate a
data-conref for you by using Copy As Reference/Paste (like it does it
for "plain DITA":
http://www.xmlmind.com/xmleditor/_distrib/doc/dita/conref.html#setconref).
You'll have to do this "by hand".
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support