Thanks Erik,


That solved my problem!


Endre.

On Mon, 15 Nov 2004 09:42:10 +0100, Erik Rydgren <[EMAIL PROTECTED]> wrote:

Well it looks to me that you are trying to reference a type. Try
referencing an element instead.

Declare a math element in your math scema and reference to it.

<?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>
<!--[stuff cutted] -->
        </xsd:complexType>
        <xsd:element name="math" type="mathtype"/>

and the reference should be

<xsd:element ref="math:math" minOccurs="0"/>

This should do the trick.

/ Erik

-----Original Message-----
From: Endre Magyari [mailto:[EMAIL PROTECTED]
Sent: den 15 november 2004 09:35
To: [EMAIL PROTECTED]
Subject: Re: validating against multiple XSD File

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\xerc
es
-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]


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




-- Endre Magyari Manager Executiv Internet Data Telefonie Nextra Telecom Membra a Grupului Astral Miercurea-Ciuc Tel: 0266 317500, 0366 100100 Fax: 0266 317515 www.nextra.ro/ntc

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



Reply via email to