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
Lee HumphriesSubject: SS4.6 103t: Crash - Validating XML Schema
Author: Lee Humphries
Date: 20 May 2003 01:50 AM
Take any XML Schema and set the maxOccurs attribute on any element or attribute to something like 200000 instead of just "unbounded" and validate the schema.
Or try validating an XML document against such a schema.

Stylus vanishes - no error log - no nothing!

Postnext
Alberto MassariSubject: Re: SS4.6 103t: Crash - Validating XML Schema
Author: Alberto Massari
Date: 20 May 2003 08:59 AM
Hi Lee,
the only event that can prevent Stylus from detecting a crash and writing
the log is a stack overflow.
Given the description you provided, you have just hit a known limitation of
the Xerces C++ parser, documented at http://xml.apache.org/xerces-c/schema.html

"Limitations:
....
- Due to the way in which the parser constructs content models for elements
with complex content, specifying large values for the minOccurs or
maxOccurs attributes may cause a stack overflow or very poor performance in
the parser. Large values for minOccurs should be avoided, and unbounded
should be used instead of a large value for maxOccurs
"

Hope this helps,

Alberto

Posttop
Lee HumphriesSubject: Re: SS4.6 103t: Crash - Validating XML Schema
Author: Lee Humphries
Date: 20 May 2003 06:32 PM
Hi Alberto,

>Given the description you provided, you
>have just hit a known limitation of the
>Xerces C++ parser, documented at
>http://xml.apache.org/xerces-c/schema.html

Which is a bit of a problem when the EDI transaction that I'm doing a custom schema for stipulates a limit of 200000 items.

Maybe some alert could be wrapped around the call to the Xerces validator to look for things like this that will cause Xerces to "spit the dummy".

 
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.