Home › Forums › General XMetaL Discussion › f9/xmetal Validator › Reply To: f9/xmetal Validator
Reply to: f9/xmetal ValidatorFebruary 25, 2013 at 6:25 pm
If you want XMetaL Author (or XMAX) to consider your document invalid (even though it is valid according to the DTD) you will need to add a custom error message(s) to the Validation Log. You cannot do that inside this event. There are two different events provided for this purpose.
If your code adds a message to the Validation Log (inside these two other events) then it will be displayed and the document will be considered invalid.
Please have a look at the Journalist demo. The MCR file is here:
Search for “On_Check_Element_SimpleContent” and “On_Check_Attribute_Value”.
Please also read my other message in response to your earlier question, which sounds almost identical: http://forums.xmetal.com/index.php/topic,2992.0.html.