Dear Gareth,



        <xsd:complexType name="ruleType">
                <xsd:sequence minOccurs="0" maxOccurs="unbounded">
                        <xsd:element ref="mathType" minOccurs="0"/>
                </xsd:sequence>
        </xsd:complexType>


You need to declare a prefix that binds to the uri for mathType and reference it via that.

The prefix has been declared:

xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://www.isis.vanderbilt.edu/2004/schemas/sbml";
xmlns:sbml="http://www.isis.vanderbilt.edu/2004/schemas/sbml";
xmlns:math="http://www.isis.vanderbilt.edu/2004/schemas/math";
elementFormDefault="qualified">


I have tried to reference it via the prefix 'math', too: <xsd:element ref="math:mathType" minOccurs="0"/>


But then the error is: C:\temp\zsolt\SBMLValidator>c:\MobiesTransition\Udm\3rdParty\xerces\xerces-c_2_5 _0-windows_nt-msvc_60\bin\PParse.exe -v=always -n -s -f test_sbml.xml

Error at file C:\temp\zsolt\SBMLValidator/test_sbml.xsd, line 384, char 52
Message: Type not found in http://www.isis.vanderbilt.edu/2004/schemas/math:ma
thType


Error at file C:\temp\zsolt\SBMLValidator/test_sbml.xsd, line 384, char 52
  Message: Ref element math:mathType not found in the Schema

Error at file C:\temp\zsolt\SBMLValidator/test_sbml.xml, line 12, char 6
  Message: No character data is allowed by content model


Even if the Math.xsd schema contains the mathType complextype:

<?xml version="1.0" encoding="UTF-8"?>
<?udm interface="SBML2" version="1.00"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://www.isis.vanderbilt.edu/2004/schemas/math";
xmlns:math="http://www.isis.vanderbilt.edu/2004/schemas/sbml";
elementFormDefault="qualified">
<!-- generated on Tue Nov 09 14:25:35 2004 -->
<xsd:complexType name="mathType">
<xsd:sequence>
<xsd:element name="times" type="timesType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="_id" type="xsd:ID"/>
<xsd:attribute name="_archetype" type="xsd:IDREF"/>
<xsd:attribute name="_derived" type="xsd:IDREFS"/>
<xsd:attribute name="_instances" type="xsd:IDREFS"/>
<xsd:attribute name="_desynched_atts" type="xsd:string"/>
<xsd:attribute name="_real_archetype" type="xsd:boolean"/>
<xsd:attribute name="_subtype" type="xsd:boolean"/>
</xsd:complexType>


        .....

What am I Missing?


Thank you for your help, Magyari Endre



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to