You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Kun Xu (JIRA)" <xe...@xml.apache.org> on 2010/03/31 15:40:27 UTC

[jira] Updated: (XERCESJ-1438) should not accept "fractionDigits" as a valid facet for precisionDecimal.

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

Kun Xu updated XERCESJ-1438:
----------------------------

    Attachment: TypeValidatorHelper_patch.txt

> 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
>            Priority: Minor
>             Fix For: 2.10.0
>
>         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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org