HTML structure Caution & Danger
Post here questions and problems related to editing and publishing DITA content.
			- 
				Tristan
 - Posts: 30
 - Joined: Tue Jun 02, 2015 2:01 pm
 
HTML structure Caution & Danger
The dita toolbox delivered with oxygen 17 will convert most note types to the following structure in the HTML output:
However for the 'caution' and 'danger' type the structure in the HTML output differs:
Has this been done intentionally?
Having no parent container for caution and danger makes it a bit more tricky to style, but especially the different approach for those two types, seem to unnecessarily overcomplicate styling.
			
			
									
									
						Code: Select all
<div class="note warning">
   <span class="warningtitle">Warning:</span>
    This is a warning example text
</div>However for the 'caution' and 'danger' type the structure in the HTML output differs:
Code: Select all
<div class="cautiontitle">CAUTION:</div>
<div class="note caution">A caution type note text</div>Having no parent container for caution and danger makes it a bit more tricky to style, but especially the different approach for those two types, seem to unnecessarily overcomplicate styling.
- 
				radu_pisoi
 - Posts: 404
 - Joined: Thu Aug 21, 2003 11:36 am
 - Location: Craiova
 - Contact:
 
Re: HTML structure Caution & Danger
Post by radu_pisoi »
Hi,
This seems to be done intentionally, see the XSLT template that process caution note:
https://github.com/dita-ot/dita-ot/blob ... l.xsl#L666
I'm not sure if I entirely understand the reason why they are processed differently, so I have added an issue to the DITA-OT project:
https://github.com/dita-ot/dita-ot/issues/2100
			
			
									
									This seems to be done intentionally, see the XSLT template that process caution note:
https://github.com/dita-ot/dita-ot/blob ... l.xsl#L666
I'm not sure if I entirely understand the reason why they are processed differently, so I have added an issue to the DITA-OT project:
https://github.com/dita-ot/dita-ot/issues/2100
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
						<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
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)
 - ↳ 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