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

Michael Glavassevich updated XERCESJ-1648:
------------------------------------------
    Fix Version/s:     (was: 2.11.0)

> Value of ID-type attribute not properly validated with respect to XML Schema 
> 1.1 specification
> ----------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1648
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1648
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.1 Datatypes
>    Affects Versions: 2.11.0
>            Reporter: Radu Coravu
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Let's say I have an XML Schema 1.1:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
>     xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"; 
> elementFormDefault="qualified"
>     vc:minVersion="1.1"> 
>   <xs:element name="root">
>       <xs:complexType>
>           <xs:attribute name="aaa" type="xs:ID"/>
>       </xs:complexType>
>   </xs:element>
> </xs:schema>
> and I validate with XML Schema 1.1 features enabled an XML which refers to it:
> <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xsi:noNamespaceSchemaLocation="testxsd.xsd" aaa="ϛ"/>
> The validation reports that character "ϛ" is not valid according to the specs:
>  cvc-attribute.3: The value 'ϛ' of attribute 'aaa' on element 'root' is not 
> valid with respect to its type, 'ID'.
> But if you look at the definition in XML Schema 1.1 of the ID attribute type:
> http://www.w3.org/TR/xmlschema11-2/#ID
> it refers to:
> http://www.w3.org/TR/xml11/#NT-TokenizedType
> which eventually refers to a name start char production:
> http://www.w3.org/TR/xml11/#NT-NameStartChar
> which completely allows characters from this interval:
> [#x37F-#x1FFF]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to