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
Robert LeifSubject: Stylus Studio 10 does not validate
Author: Robert Leif
Date: 24 Oct 2009 01:48 PM
Originally Posted: 24 Oct 2009 01:45 PM
Bob Leif
Ver. 2010, Build 1540. I cannot get schemas that were validate with 2009 and XMLSpy to validate.
Validating acquisition.xsd...
file:///f:/CytometryML/ACS/acquisition.xsd:40,38: base type 'nums:Int32_Type' not found
file:///f:/CytometryML/ACS/acquisition.xsd:55,39: base type 'nums:PInt32_Type' not found

The XML document acquisition.xsd is NOT valid (2 errors)
I have attached the files needed to run acquisition. The rest of the CytometryML schemas are located in a zip file at
http://www.newportinstruments.com/cytometryml/cytometryml.htm

Parenthetically, you should make it possible to copy the version and build from your Help About screen. This screen should include the upload control.
Thank you.
Robert C. Leif, Ph.D.


Unknownabout.xsd
Header for all schemas

Unknowndicom.xsd
DICOM Data-Types

Unknownperson_name.xsd
Person Name data-types

Unknownnum_types.xsd
Numeric types from ECMA

Unknownacquisition.xsd
Describes data acquisition. Main schema

Postnext
Alberto MassariSubject: Stylus Studio 10 does not validate
Author: Alberto Massari
Date: 27 Oct 2009 03:11 PM
Hi Robert,
what you are hitting is indeed a bug present in the latest version of Xerces-C, occurring when a complex type derives from a simple type coming from a different schema.
We are working on a fix, but in the meanwhile you can workaround the issue by importing the simple type in the schema where the derived type resides, i.e.

<simpleType name="xxx">
<restriction base="nums:Int32_Type"/>
</simpleType>
<complexType name="Acquisition_Number_Type">
<simpleContent>
<extension base="acquisition:xxx">
<attribute name="Tag" type="dicom:Tag_Type"
use="prohibited" fixed="00200012"/>
<attribute name="VR" type="dicom:VR_Type"
use="prohibited" fixed="IS"/>
</extension>
</simpleContent>
</complexType>

Hope this helps,
Alberto

Posttop
Robert LeifSubject: Stylus Studio 10 does not validate
Author: Robert Leif
Date: 27 Oct 2009 07:27 PM
Hi Alberto,
Since I use this idiom many times in CytometryML, I will continue to use the previous edition (2009)of Stylus Studio. While the parser is being fixed to permit "a simple type coming from a different schema", please have them test that complexTypes can be imported, and please have the ban on restricting imported complexTypes lifted. It appears to be lifted in XSDL 1.1. This is critical because presently one can not restrict (instantiate) templates-generics in a second schema.
Thank you.
Bob Leif

P.S. The design of this page should be augmented to facilitate reading and copying from the previous posting by presenting both the old and new on the same page.

 
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.