[oXygen-user] validation bug?

George Cristian Bina
Thu Jul 7 01:43:11 CDT 2005


Hi,

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

http://www.w3.org/TR/xmlschema-2/#cos-applicable-facets

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 
totalDidits?

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
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


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"/>
>         </xs:restriction>
>     </xs:simpleType>
> </xs:schema>
> 
> 
> I get a validation error saying "maxLength not allowed for type 
> LimitedDecimal"
> 
> 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
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user



More information about the oXygen-user mailing list