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/04/15 20:34:49 UTC

[jira] Commented: (XERCESJ-1440) XML Schema 1.1: requires support for multiple IDs

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

Kun Xu commented on XERCESJ-1440:
---------------------------------

Hi Khaled.

I run the test for the new fix. It works fine. Thanks for your help. 

Regards,

Kun

> XML Schema 1.1: requires support for multiple IDs
> -------------------------------------------------
>
>                 Key: XERCESJ-1440
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1440
>             Project: Xerces2-J
>          Issue Type: Improvement
>          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: MULID_patch.txt
>
>
> Parser doesn't support multiple IDs.
> Example
> XSD:
> <?xml version="1.0"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> 	<xs:complexType name="ids">
> 		<xs:sequence>
> 			<xs:element name="idref" type="xs:IDREF" maxOccurs="unbounded"/>
> 		</xs:sequence>
> 		<xs:attribute name="id1" type="xs:ID"/>
> 		<xs:attribute name="id2" type="xs:ID"/>
> 		<xs:attribute name="id3" type="xs:ID"/>
> 	</xs:complexType>
> 	<xs:element name="root" type="ids"/>
> </xs:schema>
> XML:
> <?xml version="1.0"?>
> <root xsi:noNamespaceSchemaLocation="test_mulID.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	id1="asd87123_" id2="_d8732d" id3="aaaaaa">
> 	<idref>asd87123_</idref>
> 	<idref>_d8732d</idref>	
> 	<idref>aaaaaa</idref>	
> </root>
> Suggestion:
> Maybe we can simply add support for multiple IDs. Please verify the attached patch. Thanks:)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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