On 08/22/2012 12:50 PM, Yves Forkl wrote:
>
> I would like to customize XXE in order to change the priority of validity 
> states displayed in the status bar.
>

For now, this cannot be done.



> Specifically, how to give warnings or errors resulting from a Schematron 
> check (i.e. produced by a ValidateHook) higher priority than errors due to 
> unavailable IDs? (Of course, syntactic validity errors should keep their top 
> priority in our customization.)
>
> Most of the times, semantic issues are much more important for our users than 
> missing IDREF targets, but currently, the validity state icon only reveals 
> the existence of semantic problems when there are no IDREF targets missing 
> (which is not very frequent).
>

You are right in saying that there are cases where semantic issues are 
much more important than missing IDREF targets. That's why we have 
implemented what follows (available in XXE v5.4):

---
If set, system property XXE_SHOW_SEMANTIC_ERRORS allows to make 
cross-reference errors less important than semantic warnings and errors 
(which are typically reported by Schematron validation). This has an 
influence of the Validity icon found at the bottom left of the main 
window and on the contents of the Validity tool.

This system property is examined once and for all. Therefore it is best 
to specify it as a command-line argument (e.g. 
-DXXE_SHOW_SEMANTIC_ERRORS=1) or in a customize.xxe file (e.g. <property 
name="XXE_SHOW_SEMANTIC_ERRORS">1</property>). It may also be specified 
in a .xxe configuration file. However, in this case, you'll have to make 
sure that this configuration file is loaded before any other one.
---


> The only alternative, i.e. always bringing up the validity pane to obtain 
> this information, is quite tedious.
>

Not really if you check "Automatically show Validity tool" 
(Options|Preferences, Tools|Validate section). See 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/toolsOptions.html#validateOptions
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to