custom error msg for XSD assert
Posted: Tue Mar 31, 2015 2:13 pm
(I debated with myself whether to post here or in the XML Schema forum, but since this seems to be a nonstandard, Oxygen-specific feature I put it here.)
I'm trying to produce an easier to read error message for an XSD assertion that I have in place for an XML schema of mine. I found in the Oxygen manual that this is possible using a validator-specific feature (http://www.oxygenxml.com/doc/ug-editor/ ... sages.html).
As is mentioned in the manual, I have imported the Xerces namespace and have put a message attribute in my assertion:
But the message never shows up, only the default technical one. Is this feature supported anymore?
I'm trying to produce an easier to read error message for an XSD assertion that I have in place for an XML schema of mine. I found in the Oxygen manual that this is possible using a validator-specific feature (http://www.oxygenxml.com/doc/ug-editor/ ... sages.html).
As is mentioned in the manual, I have imported the Xerces namespace and have put a message attribute in my assertion:
Code: Select all
<assert test="someTest" xerces:message="Custom error message"/>