Extra period with empty title - Figure 1. .
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Extra period with empty title - Figure 1. .
Post by msambasiva »
Hi,
DITA OT 2.0
Below are the different scenarios tested with/out title element under <fig>. We are getting extra period with empty title which we are not expecting. It would be great if you can suggest any clue on the issue to avoid extra period (i.e Figure 1..) with empty title(i.e<title/>).
Scenario 1: Without title element in the input file:
Input:
<fig>
<!--title/-->
<desc>The following figure shows the
steps for defining and implementing .....</desc>
Output:
<figure class="fig fignone">
<figcaption class="desc figdesc">The following figure shows the steps for defining and implementing .....</figcaption>
<img class="image" src="images/test.png" alt="This figure shows the steps to define and implement segment value security.">
</figure>
Scenario 2: With empty title element in the input file:
Input:
<fig>
<title/>
<desc>The following figure shows the steps for defining and implementing .....</desc>
Output:
<figure class="fig fignone">
<figcaption><span class="fig--title-label">Figure 1. </span>. <span class="desc figdesc">The following figure shows the steps for defining and implementing .....</span>
</figcaption>
<img class="image" src="images/test.png" alt="This figure shows the steps to define and implement segment value security.">
</figure>
Scenario 3: With title element (i.e TEST TITLE) in the input file:
Input:
<fig>
<title>TEST TITLE</title>
<desc>The following figure shows the steps for defining and implementing .....</desc>
Output:
<figure class="fig fignone">
<figcaption><span class="fig--title-label">Figure 1. </span>TEST TITLE. <span class="desc figdesc">The following figure shows the steps for defining and implementing .....</span></figcaption>
<img class="image" src="images/test.png" alt="This figure shows the steps to define and implement segment value security.">
</figure>
Thanks,
Samba.
DITA OT 2.0
Below are the different scenarios tested with/out title element under <fig>. We are getting extra period with empty title which we are not expecting. It would be great if you can suggest any clue on the issue to avoid extra period (i.e Figure 1..) with empty title(i.e<title/>).
Scenario 1: Without title element in the input file:
Input:
<fig>
<!--title/-->
<desc>The following figure shows the
steps for defining and implementing .....</desc>
Output:
<figure class="fig fignone">
<figcaption class="desc figdesc">The following figure shows the steps for defining and implementing .....</figcaption>
<img class="image" src="images/test.png" alt="This figure shows the steps to define and implement segment value security.">
</figure>
Scenario 2: With empty title element in the input file:
Input:
<fig>
<title/>
<desc>The following figure shows the steps for defining and implementing .....</desc>
Output:
<figure class="fig fignone">
<figcaption><span class="fig--title-label">Figure 1. </span>. <span class="desc figdesc">The following figure shows the steps for defining and implementing .....</span>
</figcaption>
<img class="image" src="images/test.png" alt="This figure shows the steps to define and implement segment value security.">
</figure>
Scenario 3: With title element (i.e TEST TITLE) in the input file:
Input:
<fig>
<title>TEST TITLE</title>
<desc>The following figure shows the steps for defining and implementing .....</desc>
Output:
<figure class="fig fignone">
<figcaption><span class="fig--title-label">Figure 1. </span>TEST TITLE. <span class="desc figdesc">The following figure shows the steps for defining and implementing .....</span></figcaption>
<img class="image" src="images/test.png" alt="This figure shows the steps to define and implement segment value security.">
</figure>
Thanks,
Samba.
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: Extra period with empty title - Figure 1. .
Post by sorin_carbunaru »
Hi Samba,
What kind of transformation are you performing? WebHelp? (X)HTML? Some other one?
Regards,
Sorin Carbunaru
Oxygen XML Editor
What kind of transformation are you performing? WebHelp? (X)HTML? Some other one?
Regards,
Sorin Carbunaru
Oxygen XML Editor
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Re: Extra period with empty title - Figure 1. .
Post by msambasiva »
We are performing HTML5 transformation (org.dita.html5).
Thanks,
Samba.
Thanks,
Samba.
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Re: Extra period with empty title - Figure 1. .
Post by msambasiva »
Can someone confirm if it is a known issue? i.e empty tile creates extra period (i.e Figure 1..)
Thanks,
Samba.
Thanks,
Samba.
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Extra period with empty title - Figure 1. .
Hi Samba,
Yes, this seems to be the case. But I do not understand the use case, why an empty title? You can remove it completely if you want. Or why don't you move the text from the "desc" in the "title" instead of leaving it empty?
Regards,
Radu
Yes, this seems to be the case. But I do not understand the use case, why an empty title? You can remove it completely if you want. Or why don't you move the text from the "desc" in the "title" instead of leaving it empty?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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