- From: Mathieu Mangeot <Mathieu.Mangeot@xrce.xerox.com>
- Date: Tue, 10 Apr 2001 19:04:13 +0200
- To: xmlschema-dev@w3.org
- cc: Mathieu.Mangeot@xrce.xerox.com
Dear members,
I'm writing my Ph.D. on computer science.
I'm using a lot of XML schemas in my Ph.D. to describe
and demonstrate my ideas.
A month ago I started to try to validate some
XML documents with XML schemas.
I took an XML schemas validators list on the web &
tried them one by one but I couldn't succeed.
It is very important for me to be able to validate
my schemas so please could you help me ?
My XML document:
http://clips.imag.fr/geta/mathieu.mangeot/XSD/papillon.xml
My XML schema:
http://clips.imag.fr/geta/mathieu.mangeot/XSD/papillon.xsd
I produced this schema from this dtd:
http://clips.imag.fr/geta/mathieu.mangeot/XSD/papillon.dtd
using the dtd2xsd.pl tool from Mary Holstege.
The file is valid with respect to this DTD.
I take XML schemas validators list & give you my failures:
1. XSV (XML Schema Validator) from University of Edinburgh/W3C
1.1 web form
I tried to validate my document with the web form but
the validator did not seem to analyze my document.
Here is the answer:
-------------------------------------------------------------------
Schema validating with XSV 1.183/1.90 of 2001/04/07 11:19:51
Target: http://clips.imag.fr/geta/mathieu.mangeot/XSD/papillon.xml
(Real name: http://clips.imag.fr/geta/mathieu.mangeot/XSD/papillon.xml
Length: 6174 bytes
Last Modified: Tue, 10 Apr 2001 16:21:42 GMT
Server: Apache/1.3.9 (Unix))
docElt: {http://www-clips.imag.fr/geta/services/dml}dictionary
No declaration for document root found, validation was lax
schemaLocs:
The schema(s) used for schema-validation had no errors
No schema-validity problems were found in the target
Schema resources involved
Attempt to import a schema document from http://www-clips.imag.fr/geta/services/dml for
http://www-clips.imag.fr/geta/services/dml, failed
-------------------------------------------------------------------
Then I tried to validate the schema itself.
Here is the answer:
-------------------------------------------------------------------
chema validating with XSV 1.183/1.90 of 2001/04/07 11:19:51
Target: http://clips.imag.fr/geta/mathieu.mangeot/XSD/papillon.xsd
(Real name: http://clips.imag.fr/geta/mathieu.mangeot/XSD/papillon.xsd
Length: 5631 bytes
Last Modified: Tue, 10 Apr 2001 16:15:16 GMT
Server: Apache/1.3.9 (Unix))
docElt: {http://www.w3.org/1999/XMLSchema}schema
No declaration for document root found, validation was lax
schemaLocs:
The schema(s) used for schema-validation had no errors
No schema-validity problems were found in the target
Schema resources involved
Attempt to import a schema document from http://www.w3.org/1999/XMLSchema for http://www.w3.org/1999/XMLSchema, failed
-------------------------------------------------------------------
The validator does not seem to validate my document.
=> Could you tell me what's wrong in my schema or in my document ?
1.2 Windows installer
I'm not using Windows :(
=> forget it!
1.3 Python source code
I tried to install it on 3 different machines:
a) first one: python is not installed & I'm not
administrator => forget it!
b) second one: It is a PC with Linux Mandrake 7.2.
Python 2.0 cannot run on this PC.
Any running python program blocks the machine
Uninstallation of python 2.0 & reinstallation of
python 1.5
=> forget it!
c) third one:
I installed ltxml-1.2.2 successfully
I installed PyLTXML apparently successfully
I set PYTHONPATH to:
>setenv PYTHONPATH /opt/Misc/lib/python2.0:~/PyLTXML/:~/ltxml-1.2.2/XML/lib
But when I try
I obtain:
---------------------------------------------------------------------
>python applyschema.py
Traceback (innermost last):
File "applyschema.py", line 5, in ?
from PyLTXML import *
ImportError: No module named PyLTXML
---------------------------------------------------------------------
I probably did not installed correctly the generated modules.
I'm not an expert in python.
=> forget it!
2. Oracle XML Schema Processor for Java
I installed the XML schema processor and compiled
the classes.
I can parse the sample correctly but when I try to parse
my example, I obtain the following errors:
-----------------------------------------------------------
Parsing papillon.xml
<Line 52, Column 15>: XSD-2025: (Error) Invalid text ' [de ART ~]
' in element: 'reflexie'
<Line 76, Column 15>: XSD-2025: (Error) Invalid text ' j postpos
' in element: 'reflexie'
-----------------------------------------------------------
These errors are wrong and not well positionned.
=> Could you tell me what's wrong then ?
3. XML Spy Parser:
I don't have a PC
=> forget it!
4. TIBCO XML schema validator:
I don't have a PC
=> forget it!
5. Apache Project XML Schema validator: Xerces
I installed the xerces package sucessfully.
But I couldn't find any example written in java that implements
a schema validator.
My java skills are not sufficient enough for programming
a xml schema parser without a validator.
=> Could you give me an example of an XML Schema validator
written in xerces-j?
Thanks a lot and sorry to bother you.
Mathieu
--
Mathieu MANGEOT-LEREBOURS | Phone : +33 4 76 61 51 32
Xerox Research Centre Europe | Fax : +33 4 76 61 50 99
6 chemin de Maupertuis | E-mail: Mathieu.Mangeot@imag.fr
F-38240 Meylan FRANCE | http://www.xrce.xerox.com
Received on Tuesday, 10 April 2001 13:04:43 UTC