|
top
|
 Subject: Type could not be found Author: (Deleted User) 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
|
|
|