Get validation warning
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 47
- Joined: Thu Jun 19, 2014 3:55 pm
Get validation warning
Hi,
we are using eclipse oxygen author 17.1.
When I opening a dita topic, which contains a image it is yellow underlined with the message: "Validation: [REF] File not found: ...", but the image is displayed correctly.
I think the reason why I get the validation warning is the way how we set the image path to the href. The image path is not hard defined. We are using the StylesFilter to change the href attribute value dynamically. So the image is displayed after the StylesFilter alters the path, but the warning will not disappear.
Is there a way to hide the message?
Best regards
Denis
we are using eclipse oxygen author 17.1.
When I opening a dita topic, which contains a image it is yellow underlined with the message: "Validation: [REF] File not found: ...", but the image is displayed correctly.
I think the reason why I get the validation warning is the way how we set the image path to the href. The image path is not hard defined. We are using the StylesFilter to change the href attribute value dynamically. So the image is displayed after the StylesFilter alters the path, but the warning will not disappear.
Is there a way to hide the message?
Best regards
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
KGU Consulting GmbH
http://www.kgu-consulting.com
-
- Posts: 9473
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Get validation warning
Hi Denis,
If I understand this correctly, you should never modify an attribute on an element in a StylesFilter implementation. Such as implementation is meant to modify styles for a certain element and not to modify element attributes.
Again, whenever you modify an element's attributes you should do this via the AuthorDocumentController API. In this way, the application allows undoing the change and is properly notified of the change.
We have a filter which would allow you to ignore certain problems before they are displayed:
ro.sync.exml.workspace.api.editor.WSEditor.addValidationProblemsFilter(ValidationProblemsFilter)
but ideally you could tell me more about your use case and we'd find a better way to modify the image reference than the StylesFilter implementation.
Regards,
Radu
If I understand this correctly, you should never modify an attribute on an element in a StylesFilter implementation. Such as implementation is meant to modify styles for a certain element and not to modify element attributes.
Again, whenever you modify an element's attributes you should do this via the AuthorDocumentController API. In this way, the application allows undoing the change and is properly notified of the change.
We have a filter which would allow you to ignore certain problems before they are displayed:
ro.sync.exml.workspace.api.editor.WSEditor.addValidationProblemsFilter(ValidationProblemsFilter)
but ideally you could tell me more about your use case and we'd find a better way to modify the image reference than the StylesFilter implementation.
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