[xml] xmlSchema : problem with the 'token' datatype ?
- From: GUY Fabrice <fabrice guy gmail com>
- To: xml gnome org
- Subject: [xml] xmlSchema : problem with the 'token' datatype ?
- Date: Wed, 11 May 2005 13:31:33 +0200
Hi,
I have this schema :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="element" type="xsd:token"/>
</xsd:schema>
And for example the xml file :
<?xml version="1.0" encoding="ISO-8859-1"?>
<element> test</element>
And with xmllint (version 2.6.19) this document validates (although
the value of <element> begins with spaces).
It seems that the value of this 'token' element is corrected before
validating it (using xmlSchemaCollapseString). Is this behaviour
correct ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]