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 "Radu Coravu (JIRA)" <xe...@xml.apache.org> on 2014/10/22 09:08:33 UTC

[jira] [Commented] (XERCESJ-1648) Value of ID-type attribute not properly validated with respect to XML Schema 1.1 specification

    [ https://issues.apache.org/jira/browse/XERCESJ-1648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14179663#comment-14179663 ] 

Radu Coravu commented on XERCESJ-1648:
--------------------------------------

One more thing, in the XML Schema 1.0 specification indeed the allowed values for xs:ID were more restrictive because the specs is pointing to an XML working draft:

http://www.w3.org/TR/xmlschema-2/#ID
http://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-TokenizedType

> 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
>            Reporter: Radu Coravu
>             Fix For: 2.11.0
>
>   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-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org