WebHelp: Unwanted <data-about> output
Post here questions and problems related to editing and publishing DITA content.
			- 
				Frank Ralf
 - Posts: 490
 - Joined: Thu Jan 23, 2014 2:29 pm
 - Location: Hamburg
 - Contact:
 
WebHelp: Unwanted <data-about> output
Post by Frank Ralf »
Hi,
I have a figure with an enclosed <data-about> section in my DITA files, like so:
This ends in the default WebHelp output as:
I've already read "Passing product attribute value to webhelp topics" and suppose I have to modify the [Oxygen-install-dir]\frameworks\dita\DITA-OT\xsl\xslhtml\dita2htmlImpl.xsl XSL file to get rid of this output? Or is this some default behavior I can suppress otherwise?
Kind regards,
Frank
			
			
									
									I have a figure with an enclosed <data-about> section in my DITA files, like so:
Code: Select all
<fig id="fig123" class="- topic/fig ">
  <title class="- topic/title ">Merging of text</title>
  <image href="../Figures/MergingText.png"/>
  <data-about type="image" scope="local" class="- topic/data-about ">
    <data name="xoffset" value="1.000pt"/>
    <data name="yoffset" value="1.000pt"/>
  </data-about>
</fig>
Code: Select all
<span style="background-color: yellow;">
<span style="font-weight: bold">[/topic/body/fig/data-about {"- topic/data-about "}) </span>
Kind regards,
Frank
Frank Ralf
parson AG
www.parson-europe.com
						parson AG
www.parson-europe.com
- 
				sorin_ristache
 - Posts: 4141
 - Joined: Fri Mar 28, 2003 2:12 pm
 
Re: WebHelp: Unwanted <data-about> output
Post by sorin_ristache »
Hi Frank,
The extra text comes from a bug in the DITA-OT toolkit which you can also experience in the DITA Map XHTML transformation. I will come up shortly with a workaround, or better with a fix for this DITA-OT issue, and I will update this topic as soon as I have the solution.
			
			
									
									The extra text comes from a bug in the DITA-OT toolkit which you can also experience in the DITA Map XHTML transformation. I will come up shortly with a workaround, or better with a fix for this DITA-OT issue, and I will update this topic as soon as I have the solution.
Regards,
Sorin
<oXygen/> XML Editor Support
						Sorin
<oXygen/> XML Editor Support
- 
				Frank Ralf
 - Posts: 490
 - Joined: Thu Jan 23, 2014 2:29 pm
 - Location: Hamburg
 - Contact:
 
Re: WebHelp: Unwanted <data-about> output
Post by Frank Ralf »
Hi Sorin,
Thanks for your quick reply and this information.
			
			
									
									Thanks for your quick reply and this information.
Frank Ralf
parson AG
www.parson-europe.com
						parson AG
www.parson-europe.com
- 
				sorin_ristache
 - Posts: 4141
 - Joined: Fri Mar 28, 2003 2:12 pm
 
Re: WebHelp: Unwanted <data-about> output
Post by sorin_ristache »
Hi Frank,
I have a quick fix for you: please add the following XSLT template
at the end of the following XSLT stylesheet (before the </xsl:stylesheet> closing tag, of course):
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\desktop\fixup.xsl
			
			
									
									I have a quick fix for you: please add the following XSLT template
Code: Select all
  <xsl:template match="*[contains(@class,' topic/data-about ')]"/>
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\desktop\fixup.xsl
Regards,
Sorin
<oXygen/> XML Editor Support
						Sorin
<oXygen/> XML Editor Support
- 
				Frank Ralf
 - Posts: 490
 - Joined: Thu Jan 23, 2014 2:29 pm
 - Location: Hamburg
 - Contact:
 
Re: WebHelp: Unwanted <data-about> output
Post by Frank Ralf »
Hi Sorin,
Thanks for this quick fix. And thanks for getting this fixed in the DITA Open Toolkit
img/data-about element should not be rendered in XHTML output page
Frank
			
			
									
									Thanks for this quick fix. And thanks for getting this fixed in the DITA Open Toolkit
img/data-about element should not be rendered in XHTML output page
Frank
Frank Ralf
parson AG
www.parson-europe.com
						parson AG
www.parson-europe.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)
 - ↳ Artificial Intelligence (AI Positron Assistant add-on)
 - ↳ 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