validate and check ... also scans non dita files
Post here questions and problems related to editing and publishing DITA content.
			- 
				pmac
 - Posts: 9
 - Joined: Fri Mar 23, 2012 4:00 am
 
validate and check ... also scans non dita files
i have a project with a directory full of text files (*.txt) which are code snippets.
When i try "validate and check" i get loads of errors because these text files are not xml. It should be able to better guess the file types, yes? I don't see anywhere i can control it.
There are actually 2 checks it could do better on:
1. Problem parsing "file:/xxx/foo.txt" as DITA content.
Cause:Content is not allowed in prolog
2. Topic referenced in other topics but not in DITA Map :"file:/xxx/foo.txt"
Of course text files won't be referenced in the map.
The volume of these makes real interesting warnings / errors hard to see
thanks
PMac
			
			
									
									
						When i try "validate and check" i get loads of errors because these text files are not xml. It should be able to better guess the file types, yes? I don't see anywhere i can control it.
There are actually 2 checks it could do better on:
1. Problem parsing "file:/xxx/foo.txt" as DITA content.
Cause:Content is not allowed in prolog
2. Topic referenced in other topics but not in DITA Map :"file:/xxx/foo.txt"
Of course text files won't be referenced in the map.
The volume of these makes real interesting warnings / errors hard to see
thanks
PMac
- 
				Radu
 - Posts: 9548
 - Joined: Fri Jul 09, 2004 5:18 pm
 
Re: validate and check ... also scans non dita files
Hi,
How exactly are the text files referenced in the DITA topics?
Could you give me a sample XML code for it?
Regards,
Radu
			
			
									
									How exactly are the text files referenced in the DITA topics?
Could you give me a sample XML code for it?
Regards,
Radu
Radu Coravu 
<oXygen/> XML Editor
http://www.oxygenxml.com
						<oXygen/> XML Editor
http://www.oxygenxml.com
- 
				Radu
 - Posts: 9548
 - Joined: Fri Jul 09, 2004 5:18 pm
 
Re: validate and check ... also scans non dita files
Hi,
You are right.
I consider this a bug in Oxygen which right now treats coderef more like an xref instead of treating it as a reference to a non-DITA resource.
We will probably fix this in the upcoming Oxygen 14, in a couple of months.
Regards,
Radu
			
			
									
									You are right.
I consider this a bug in Oxygen which right now treats coderef more like an xref instead of treating it as a reference to a non-DITA resource.
We will probably fix this in the upcoming Oxygen 14, in a couple of months.
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)
 - ↳ 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