[ 
https://issues.apache.org/jira/browse/XERCESJ-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Glavassevich reassigned XERCESJ-1438:
---------------------------------------------

    Assignee: Khaled Noaman

> should not accept "fractionDigits" as a valid facet for precisionDecimal.
> -------------------------------------------------------------------------
>
>                 Key: XERCESJ-1438
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1438
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.1 Datatypes
>    Affects Versions: 2.9.1
>            Reporter: Kun Xu
>            Assignee: Khaled Noaman
>            Priority: Minor
>         Attachments: TypeValidatorHelper_patch.txt
>
>
> "fractionDigits" should not be a valid facet for precisionDecimal.
> Example
> XSD:
> <?xml version="1.0"?>
> <schema xmlns="http://www.w3.org/2001/XMLSchema";
>       targetNamespace="http://www.schemaTest.org/schema11";
>       xmlns:si="http://www.schemaTest.org/schema11";>
> <simpleType name="decDigits">
>       <restriction base="precisionDecimal">
>               <fractionDigits value="6"/>
>       </restriction>  
> </simpleType>
> <element name="root">
>       <complexType>
>               <sequence>
>                       <element name="elDigits" type="si:decDigits"/>
>               </sequence>
>       </complexType>
> </element>    
> </schema>  
> XML:
> <?xml version="1.0" encoding="UTF-8"?>
> <insi:root xmlns:insi="http://www.schemaTest.org/schema11";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://www.schemaTest.org/schema11
>       test_fractiondigits.xsd">
>       
>       <elDigits>1.23456</elDigits>
> </insi:root>
> Suggestion.
> Add verification when we apply facet.  Please verify the attached patch. 
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to