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
Firas KhasawnehSubject: Type could not be found
Author: Firas Khasawneh
Date: 27 Oct 2009 12:39 PM
Hi,

I am trying to create a mapping using the latest Stylus Studio but it is failing on loading an xsd file saying "type could not be found.." The type exists and the document is validating correctly in XML Spy but still XSD is not loading in Stylus Studio 2010.

Thanks,
Firas

Postnext
Alberto MassariSubject: Type could not be found
Author: Alberto Massari
Date: 27 Oct 2009 03:13 PM
Hi Firas,
I think you are hitting the same problem of http://www.stylusstudio.com/SSDN/default.asp?action=9&read=8802&fid=23

Alberto

Postnext
Keith LaceySubject: Type could not be found
Author: Keith Lacey
Date: 13 Nov 2009 05:09 AM
Originally Posted: 12 Nov 2009 12:27 PM
I have the same problem and looking at the second link that its hitting at I also tried 2009 and get the same problem

Some examples of the errors:
file:////ServerNAME/root/public/Schema/AML/Winxp/developerCommand.xsd:21,41: type 'http://schemas.microsoft.com/maml/2004/10:title' not found
file:////ServerNAME/root/public/Schema/AML/Winxp/developer.xsd:21,41: referenced element 'maml:title' not found
file:////ServerNAME/root/public/Schema/AML/Winxp/developerCommand.xsd:22,48: type 'http://schemas.microsoft.com/maml/2004/10:introduction' not found
file:////ServerNAME/root/public/Schema/AML/Winxp/developer.xsd:22,48: referenced element 'maml:introduction' not found

Any ideas?

Postnext
Alberto MassariSubject: Type could not be found
Author: Alberto Massari
Date: 12 Nov 2009 12:48 PM
Hi Keith,
could you post the XML Schema?

Thanks,
Alberto

Postnext
Keith LaceySubject: Type could not be found
Author: Keith Lacey
Date: 13 Nov 2009 05:08 AM
Originally Posted: 13 Nov 2009 05:06 AM
Can I send you a private email as this is highly sensitive stuff from MS - all I want to be able to do is get it to Validate correctly.

Postnext
Alberto MassariSubject: Type could not be found
Author: Alberto Massari
Date: 13 Nov 2009 06:08 AM
Sure; you can send it to stylus-field-report@progress.com

Alberto

Posttop
Alberto MassariSubject: Type could not be found
Author: Alberto Massari
Date: 18 Nov 2009 05:17 AM
Hi Keith,
thank you for the sample XML; it looks that the particular structure of the XML Schema is not fully compatible with the pattern used by Xerces-C, that is, that a single schema file should be responsible for each namespace (also Saxon complains that a few schema files appear to recursively include themselves).
A quick workaround for this issue is to ensure that developer.xsd is loaded before maml.xsd, as this path leads to loading all the parts in the correct order: to do that, change the root element of the payload file to contain this attribute

xsi:schemaLocation="http://schemas.microsoft.com/maml/dev/2004/10 developer.xsd http://schemas.microsoft.com/maml/2004/10 Maml.xsd"

If you are not allowed to change the XML file, an alternative approach involves the usage of a project file.

1) create a folder in the current (or a new) project file by right clicking on the root node and choosing New Project Folder
2) add your XML files to this folder, either by right clicking on the project folder and choosing Add File to Project, or by drag & drop from the Other Documents top level folder (if the file is already open in Stylus Studio) or by drag & drop from a Windows Explorer window to the project folder
3) right click on the project folder and choose Associate Schema to Folder; in the dialog, click on the New Schema button and pick the developer.xsd file from its folder, then press OK

At this point validating the document will be preceded by a message "Loading schema developer.xsd" and validation should succeed

Hope this helps,
Alberto

 
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.