Subject:Crashes when validating Author:Charles Comroe Date:29 Jul 2005 09:13 PM
I'm running the Home Edition Version 6 Release 3. When I try to validate an XML file against a schema, Stylus crashes exits immediately with no message and nothing in the Event Viewer.
Subject:Crashes when validating Author:Minollo I. Date:01 Aug 2005 02:08 PM
It may be worth noting that Stylus Studio is inheriting this issue from Apache Xerces C++, which is the default validation exposed by Stylus.
In addition to the workaround mentioned by Ivan, you may also decide to use a different validation engine, like XercesJ, MSXML, .NET or XSV; they are all bundled and supported in Stylus Studio: just click on the down arrow to the right of the validation button and choose the one you would like to invoke.
Subject:Crashes when validating Author:Tony Lavinio Date:02 Aug 2005 11:01 AM
The problem isn't specific to a edition of Stylus Studio.
It's specific to the Apache Xerces validator, which is
the default validator for all editions of Stylus Studio.
See Minollo's posting above for alternatives.
The problem is caused because large values of maxOccurs cause the
validator to try every permutation, and it eventually runs out of
memory. When the limit is set to "unbounded", it doesn't try
every permutation of schemas during the validation process.
When you validate a document, you can use the drop-down arrow next
to the green checkmark to choose another validator. Each has its
own strengths and weaknesses, which is why we supply a variety.
Unfortunately, not every validator works exactly the same way.
XML Schema is a complex specification, and has much subtlety.
Subject:Crashes when validating Author:Charles Comroe Date:02 Aug 2005 01:49 PM
Thanks Tony, Minollo, and Ivan. Yeah, it is unfortunate that the validators don't all function alike, but then again maybe that's a good thing in this case. I'm now able to validate my document.