Dear List,
I am trying to validate an XML file using two namespaces, each having a separate XSD file.
I'd like to have stg like this in the XML file:
<sbml:listOfRules>
<sbml:rule>
<math:math>
<math:apply>
<math:times/>
</math:apply>
</sbml:math>
</sbml:rule>
The question is, how to define the sbml:ruleType complexType, defintion which should allow containg the math:mathType element.
I have tried to include math.xsd in sbml.xsd like this:
In <schema> element:
<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">
The import statement:
<!-- importing the math namespace -->
<xsd:import namespace="http://www.isis.vanderbilt.edu/2004/schemas/math" schemaLocation="math.xsd"/>
And an attempt to define ruleType:
<xsd:complexType name="ruleType"> <xsd:sequence minOccurs="0" maxOccurs="unbounded"> <xsd:element ref="mathType" minOccurs="0"/> </xsd:sequence> </xsd:complexType>
But unfortunatly the parsing fails:
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 47
Message: Schema Representation Constraint: Namespace '' is referenced without
<import> declaration
Error at file C:\temp\zsolt\SBMLValidator/test_sbml.xsd, line 384, char 47 Message: Ref element 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
Any thoughts?
Thanks, Magyari Endre
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]