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 "Khaled Noaman (JIRA)" <xe...@xml.apache.org> on 2010/05/25 15:46:25 UTC

[jira] Resolved: (XERCESJ-1439) XML Schema 1.1: Failed to report IDREF binding error.

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

Khaled Noaman resolved XERCESJ-1439.
------------------------------------

    Fix Version/s: 2.10.0
       Resolution: Fixed

Fix checked in.

> XML Schema 1.1: Failed to report IDREF binding error. 
> ------------------------------------------------------
>
>                 Key: XERCESJ-1439
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1439
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.1 Structures
>    Affects Versions: 2.9.1
>            Reporter: Kun Xu
>            Assignee: Khaled Noaman
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: IDIDREF_patch.txt
>
>
> Failed to report IDREF binding error. 
> Example
> XSD:
> <?xml version="1.0"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 	<xs:complexType name="ids">			
> 		<xs:attribute name="id_attr" type="xs:ID" default="zxc"/>		
> 		<xs:attribute name="idref_attr" type="xs:IDREF" default="zxc"/>			
> 		<xs:assert test="//@id_attr = 'abc'"/>
> 		<xs:assert test="//@idref_attr = 'zxc'"/>
> 	</xs:complexType>
> 	<xs:element name="root" type="ids"/>
> </xs:schema>
> XML:
> <?xml version="1.0"?>
> <root xsi:noNamespaceSchemaLocation="test_idref.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id_attr="abc"/>	
> Suggestion:
> Should checks IDREF binding before we applies default attribute.   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