[oXygen-user] validation bug?
Thu Jul 7 10:46:40 CDT 2005
Ah, yes, I see. A combination of my misreading my XML Schema book, and a somewhat
misleading tool-tip for totalDigits (that says "Specifies the exact number of digits
allowed. Must be greater than zero." instead of "Specifies the maximum number of digits
I like that info link. I had not noticed that before.
George Cristian Bina wrote:
> Oxygen has a very nice feature when it comes to reporting XML schema
> related error messages. In most cases it will show a book like icon in
> the Info column and if you click on that you will get your browser
> opened at the exact place in the XML Schema specification that is
> related with that error. In your case that will be
> Here you will see that the allowed facets for xs:decimal are:
> totalDigits, fractionDigits, pattern, whiteSpace, enumeration,
> maxInclusive, maxExclusive, minInclusive, minExclusive
> As you can see maxLength is not between them. Maybe you are looking for
> The content completion offers valid proposals according with the schema
> for schemas but the rules for XML Schema validation are much more than
> what the schema for schemas can provide.
> Best Regards,
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> Linus Kamb wrote:
>> In the following schema:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>> <xs:simpleType name="LimitedDecimal">
>> <xs:restriction base="xs:decimal">
>> <xs:maxLength value="5"/>
>> I get a validation error saying "maxLength not allowed for type
>> The autoinclude lets me put it there, and I believe maxLength is a
>> valid facet for restricting decimal.
>> What's up?
>> oXygen-user mailing list
More information about the oXygen-user