Dear all,

I experienced the following problem with xerces-c-2_5_0 under SuSE Linux 9.0:

When trying to validate the attached CML ( Chemical Markup Language ) file 
against the schema, both SAX2Print and DOMPrint report the following error:

Error at file "/home/dimitarh/cml/cml_try12.xml", line 4, column 89
Message: Datatype error: Type:InvalidDatatypeValueException, Message:'-' is 
not a valid character range; use '\-' instead.

I went through the mailing list archives and through the API, but found 
nothing about this issue, so I will appreciate any help/comments.

The idType definition in the CML schema is the following ( full schemas 
available at http://cml.sourceforge.net/ ):

  <xsd:simpleType name="idType" id="st.idType">  
  <xsd:annotation>
    <xsd:documentation>
        <!-- ommited -->
      </xsd:documentation>
     </xsd:annotation>
   <xsd:restriction base="xsd:string">
     <xsd:pattern value="([A-Za-z][A-Za-z0-9_-]*:)?[A-Za-z]
[A-Za-z0-9_\-\.]*"/>
   </xsd:restriction>
</xsd:simpleType>

When I remove all ids from the attached file, the validation is OK. 
Any ideas are welcome,

thanks for your help,
kind regards,
Dimitar Hristozov




<?xml version="1.0" encoding="utf-8"?>
<cml:cml xmlns:cml="http://www.xml-cml.org/schema/cml2/core"; xmlns:stmml="http://www.xml-cml.org/schema/stmml"; xmlns:val="http://www.w3.org/1999/XSL/TransformX"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:moses="http:://www2.chemie.uni-erlangen.de/software/moses" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.xml-cml.org/schema/cml2/core cmlCore.xsd http://www.xml-cml.org/schema/stmml STMML.xsd">
	<stmml:dictionary dictRef="props">
		<stmml:entry id="" term="Identity, always 1" dataType="xsd:integer" units="arbitrary">
			<stmml:description>
				<moses:calculatorDescription name="CalcFormal" numberOfParams="0" version="1.0"/>
			</stmml:description>
		</stmml:entry>
	</stmml:dictionary>
	<cml:molecule id="mol1">
		<cml:atomArray>
			<cml:atom id="a1" elementType="O">
				<cml:scalar dictRef="props:A_A1">1</cml:scalar>
			</cml:atom>
			<cml:atom id="a2" elementType="C"/>
			<cml:atom id="a3" elementType="C"/>
			<cml:atom id="a4" elementType="C"/>
			<cml:atom id="a5" elementType="H"/>
			<cml:atom id="a6" elementType="H"/>
			<cml:atom id="a7" elementType="H"/>
			<cml:atom id="a8" elementType="H"/>
		</cml:atomArray>
		<cml:bondArray>
			<cml:bond id="s1" convention="moses:sigmaSys" atomRefs2="a1 a2" order="2"/>
			<cml:bond id="s2" convention="moses:sigmaSys" atomRefs2="a2 a3" order="1"/>
			<cml:bond id="s3" convention="moses:sigmaSys" atomRefs2="a2 a3" order="1"/>
			<cml:bond id="p4" convention="moses:piSys" atomRefs="a1 a2 a3 a4">
				<cml:electron bondRef="p4" count="4"/>
			</cml:bond>
			<cml:bond id="s5" convention="moses:sigmaSys" atomRefs2="a2 a5" order="1"/>
			<cml:bond id="s6" convention="moses:sigmaSys" atomRefs2="a3 a6" order="1"/>
			<cml:bond id="s7" convention="moses:sigmaSys" atomRefs2="a4 a7" order="1"/>
			<cml:bond id="s8" convention="moses:sigmaSys" atomRefs2="a4 a8" order="1"/>
		</cml:bondArray>
		<cml:electron id="PiSys9" atomRef="a1" count="2"/>
		<cml:electron id="PiSys10" atomRef="a1" count="2"/>
	</cml:molecule>
</cml:cml>

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

Reply via email to