HTML generated even for non referenced topic
Post here questions and problems related to editing and publishing DITA content.
HTML generated even for non referenced topic
<oXygen/> XML Editor 24.1, build 2022030807
DITA Map WebHelp Responsive
Hello everyone,
While delivering a documentation package, I accidentally noticed that some topics were published even though they were not referenced in the mother ditamap...
For some of them, I understood that, in a topic to be published, I was going to look for an image in this topic. But for some I really don't understand why.
We have the same tree structure for two different products and we don't want some HTML pages to be seen by customers who don't have this machine. Everything is handled with product flags.
Is it possible that I have forgotten a compiler option? Is it possible to not generate HTML files for topics not referenced in the ditamap in question?
Even if they do not appear in the menu, they are present in the search module and physically on the disk.
To clarify what I'm saying, I've made a quick diagram (attached to this ticket).
I have three documents A, B and C. When I deliver my document package for product A, pages B1, B2, C1 and C2 should not be generated. And by deduction that they do not appear in the search module.
My question is a bit complex, especially without having the sources. I have added a screenshot of the compilation options and the associated ditaval.
I hope you can help me, deleting each unwanted HTML by hand would take me days
Good evening,
ML
DITA Map WebHelp Responsive
Hello everyone,
While delivering a documentation package, I accidentally noticed that some topics were published even though they were not referenced in the mother ditamap...
For some of them, I understood that, in a topic to be published, I was going to look for an image in this topic. But for some I really don't understand why.
We have the same tree structure for two different products and we don't want some HTML pages to be seen by customers who don't have this machine. Everything is handled with product flags.
Is it possible that I have forgotten a compiler option? Is it possible to not generate HTML files for topics not referenced in the ditamap in question?
Even if they do not appear in the menu, they are present in the search module and physically on the disk.
To clarify what I'm saying, I've made a quick diagram (attached to this ticket).
I have three documents A, B and C. When I deliver my document package for product A, pages B1, B2, C1 and C2 should not be generated. And by deduction that they do not appear in the search module.
My question is a bit complex, especially without having the sources. I have added a screenshot of the compilation options and the associated ditaval.
I hope you can help me, deleting each unwanted HTML by hand would take me days
Good evening,
ML
- Attachments
-
- BugHTML.png (13.47 KiB) Viewed 1350 times
-
- BugHTML02.png (15.01 KiB) Viewed 1350 times
-
- BugHTML01.png (74.29 KiB) Viewed 1350 times
Re: HTML generated even for non referenced topic
Perhaps another example to clarify my request:
- If I search for one topic for Product A in the top of the mother ditamap, it found the ditamap(s) where it is referenced
- If I search for one topic for Product B in the top of the mother ditamap, it does not found anything
- But both topics are generated in HTML format
- If I search for one topic for Product A in the top of the mother ditamap, it found the ditamap(s) where it is referenced
- If I search for one topic for Product B in the top of the mother ditamap, it does not found anything
- But both topics are generated in HTML format
- BugHTML03.png (85.79 KiB) Viewed 1349 times
-
- Posts: 918
- Joined: Thu May 02, 2019 2:32 pm
Re: HTML generated even for non referenced topic
Post by chrispitude »
Hi LASSE_MLE,
This is sometimes not an easy issue to figure out.
If you have an accidental <xref href="..."/> into an unwanted topic file, the DITA-OT will include that topic in the publishing output. It will also include any further topic files referenced by that one, and so on. This can create "unwanted inclusion regions" when there is an accidental reference into an unwanted book. This file inclusion happens only with @href references, not @keyref references.
There are also some DITA-OT issues related to duplicate and unexpected topics in the output directory. Any of these might be your issue, but they might not be.
You could create a copy of your DITA, pick a single unwanted topic in the output, then keep reducing the testcase in ways that continue to reproduce the issue. Eventually you should be able to narrow it down to a single root cause, and it will probably be easier to figure out what to do at that point.
This is sometimes not an easy issue to figure out.
If you have an accidental <xref href="..."/> into an unwanted topic file, the DITA-OT will include that topic in the publishing output. It will also include any further topic files referenced by that one, and so on. This can create "unwanted inclusion regions" when there is an accidental reference into an unwanted book. This file inclusion happens only with @href references, not @keyref references.
There are also some DITA-OT issues related to duplicate and unexpected topics in the output directory. Any of these might be your issue, but they might not be.
You could create a copy of your DITA, pick a single unwanted topic in the output, then keep reducing the testcase in ways that continue to reproduce the issue. Eventually you should be able to narrow it down to a single root cause, and it will probably be easier to figure out what to do at that point.
Re: HTML generated even for non referenced topic
Hello all,
I've isolated one topic for a deep analysis.
And I still do not understand what's happening...
Can you please just confirm that:
- When I code
- With a ditaval excluding ProdB
- The FileB.dita will not be generated ?
I've checked and there is no other reference to this FileB anywhere.
Thanks by advance for your help....
BR
ML
I've isolated one topic for a deep analysis.
And I still do not understand what's happening...
Can you please just confirm that:
- When I code
Code: Select all
<ul>
<li product="ProdA"><xref href="FileA.dita"></li>
<li product="ProdB"><xref href="FileB.dita"></li>
</ul>
Code: Select all
<val>
<prop action="include" att="product" val="ProbA"/>
<prop action="exclude" att="product" val="ProbB"/>
I've checked and there is no other reference to this FileB anywhere.
Thanks by advance for your help....
BR
ML
-
- Posts: 918
- Joined: Thu May 02, 2019 2:32 pm
Re: HTML generated even for non referenced topic
Post by chrispitude »
Hi ML,
If this is reduced down to just a few files, can you post the testcase archive so we can take a look?
If this is reduced down to just a few files, can you post the testcase archive so we can take a look?
-
- Posts: 141
- Joined: Mon Jun 12, 2017 10:50 am
Re: HTML generated even for non referenced topic
Post by cosmin_andrei »
Hi LASSE_MLE,
To be sure that everything is fine you can try to edit the WebHelp transformation scenario and set clean.output parameter to "yes" (make sure you create a backup of the output folder before setting this parameter just to be safe in case you might need some of the previous resources). This way you can be sure that in the output there are not any files from the previous transformation.
To be sure that everything is fine you can try to edit the WebHelp transformation scenario and set clean.output parameter to "yes" (make sure you create a backup of the output folder before setting this parameter just to be safe in case you might need some of the previous resources). This way you can be sure that in the output there are not any files from the previous transformation.
Regards,
Cosmin
--
Cosmin Andrei
oXygen XML Editor and Author Support
Cosmin
--
Cosmin Andrei
oXygen XML Editor and Author Support
Re: HTML generated even for non referenced topic
Thank you all for your help, but I finally succeed!
Many modifications of issues due to my beginner level in DITA coding (mainly content reuse wrongly implemented and unthinking part of code written when we have only one product).
After double check, I'm now only with the html I wanted!
#savedfortoday
Thanks for putting me on the right track
BR
ML
Many modifications of issues due to my beginner level in DITA coding (mainly content reuse wrongly implemented and unthinking part of code written when we have only one product).
After double check, I'm now only with the html I wanted!
#savedfortoday
Thanks for putting me on the right track
BR
ML
Re: HTML generated even for non referenced topic
Hi Andrei,cosmin_andrei wrote: ↑Tue May 02, 2023 4:52 pm Hi LASSE_MLE,
To be sure that everything is fine you can try to edit the WebHelp transformation scenario and set clean.output parameter to "yes" (make sure you create a backup of the output folder before setting this parameter just to be safe in case you might need some of the previous resources). This way you can be sure that in the output there are not any files from the previous transformation.
I used to do it manually! I am glad to hear that it is possible to do it automatically!
Thanks!
-
- Posts: 918
- Joined: Thu May 02, 2019 2:32 pm
Re: HTML generated even for non referenced topic
Post by chrispitude »
Hi ML,
Great work figuring out your issue!
And Cosmin's suggestion for enabling the output directory cleanup parameter was also a good best practice for WebHelp.
Great work figuring out your issue!
And Cosmin's suggestion for enabling the output directory cleanup parameter was also a good best practice for WebHelp.
Return to “DITA (Editing and Publishing DITA Content)”
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