[xsde-users] how to handle xsd:include?
Gennady Khokhorin
gok at aerometric-ak.com
Tue Feb 12 16:22:55 EST 2008
Hello, all.
Have a complex metadata xsd with include statement:
main.xsd:
<xsd:include schemaLocation="sect01.xsd"/>
XSD.exe generated classes for main.xsd fine and in .hxx it includes
additional schemas like that:
#include "sect01.hxx"
As I'm guessing I have run now XSD.exe on sect01.xsd but got an errors
about types declared in main.xsd:
Unknown base type myType for type <...>
where myType declared in main.xsd like that:
main.xsd:
<xsd:simpleType name="myType">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\s*\S(.|\n|\r)*"/>
</xsd:restriction>
</xsd:simpleType>
Does somebody knows how to handle included xsd and global types in
XSD.exe?
Thanks in advance for respond.
Gennady
More information about the xsde-users
mailing list