XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Charles ComroeSubject: 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.

Postnext
Ivan PedruzziSubject: Crashes when validating
Author: Ivan Pedruzzi
Date: 30 Jul 2005 03:08 PM
Charlie,

Most likely your schema defines one or more maxOccurs with large values.

Would be possible to send the schema to stylus-field-report@progress.com?


Thank You
Ivan Pedruzzi
Stylus Studio Team

Postnext
Charles ComroeSubject: Crashes when validating
Author: Charles Comroe
Date: 01 Aug 2005 01:32 PM
Thanks Ivan, big max occurs would be it. Is there a work-around? Is it also a problem in the Professional version?

Postnext
Ivan PedruzziSubject: Crashes when validating
Author: Ivan Pedruzzi
Date: 01 Aug 2005 01:45 PM

use maxOccurs="unbounded"


Ivan Pedruzzi
Stylus Studio Team

Postnext
Minollo I.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.

Hope this helps,
Minollo

Postnext
Charles ComroeSubject: Crashes when validating
Author: Charles Comroe
Date: 01 Aug 2005 02:34 PM
Is that the same for Professional? What's the largest allowable maxOccur?

Postnext
Charles ComroeSubject: Crashes when validating
Author: Charles Comroe
Date: 01 Aug 2005 03:51 PM
Is that the same for Professional? What's the largest allowable maxOccur?

Postnext
Charles ComroeSubject: Crashes when validating
Author: Charles Comroe
Date: 01 Aug 2005 02:31 PM
Thanks Ivan, big max occurs would be it. Is there a work-around? Is it also a problem in the Professional version?

Postnext
Tony LavinioSubject: 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.

Posttop
Charles ComroeSubject: 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.

Thanks again,

Charles

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.