RelaxNG warnings
This should cover W3C XML Schema, Relax NG and DTD related problems.
RelaxNG warnings
Hi,
One of the features I like about the Oxygen xml editor is that it highlights errors and warnings with different colours. Is it possible to have a RelaxNG schema produce a warning (instead of just all errors) with the yellow indicator?
Despite numerous searches on Google, I have been unable to find anything relating to warnings in RelaxNG.
Many thanks,
Lea Hayes
One of the features I like about the Oxygen xml editor is that it highlights errors and warnings with different colours. Is it possible to have a RelaxNG schema produce a warning (instead of just all errors) with the yellow indicator?
Despite numerous searches on Google, I have been unable to find anything relating to warnings in RelaxNG.
Many thanks,
Lea Hayes
Re: RelaxNG warnings
Dear Lea,
If the processor used for validation reports a warning then oXygen renders that with yellow, if the processor reports an error then it renders that with red. For Relax NG oXygen uses Jing through oNVDL and I also cannot think of a case when the processor will report a warning but if you obtain a warning that will be surely rendered with yellow in the editor.
Do you have a case when an error reported for Relax NG should be in fact just a warning?
Best Regards,
George
If the processor used for validation reports a warning then oXygen renders that with yellow, if the processor reports an error then it renders that with red. For Relax NG oXygen uses Jing through oNVDL and I also cannot think of a case when the processor will report a warning but if you obtain a warning that will be surely rendered with yellow in the editor.
Do you have a case when an error reported for Relax NG should be in fact just a warning?
Best Regards,
George
George Cristian Bina
Re: RelaxNG warnings
Sorry for the delay in response.
Basically I wanted my own XML schema to indicate a warning instead of an error if the XML matches a certain criteria.
For example,
If an optional (but recommended) element is missing from an XML document I wanted to be able to display the warning indicator. Or if a value may not work correctly when transformed to a particular target. etc.
I have the error part working fine, and for the moment I am just allowing the "warning" cases, but somehow I want to utilize the yellow-marker for warnings (if of course this is possible with RelaxNG and Oxygen).
Thanks George!
Basically I wanted my own XML schema to indicate a warning instead of an error if the XML matches a certain criteria.
For example,
If an optional (but recommended) element is missing from an XML document I wanted to be able to display the warning indicator. Or if a value may not work correctly when transformed to a particular target. etc.
Code: Select all
<!-- Following would validate -->
<something>
<optional>Caption text...</optional>
<required>content</required>
</something>
<!-- Following would validate, but with 1 warning -->
<!-- Something like: It is recommended to include the "optional" element -->
<something>
<required>content</required>
</something>
<!-- Following would not validate with 1 error and 1 warning -->
<something>
</something>
Thanks George!
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