[ 
http://issues.apache.org/jira/browse/XERCESC-1497?page=comments#action_12329397 
] 

Alberto Massari commented on XERCESC-1497:
------------------------------------------

1) what do you mean by "Xerces cannot tell me the problems with resource-list 
schema"; do you expect it to be invalid?
2) start by fixing the errors that Xerces reported
3) please attach the schemas, otherwise this bug is incomplete

> 2.6 & 2.7 don't support validate a xml with two or more schema files.
> ---------------------------------------------------------------------
>
>          Key: XERCESC-1497
>          URL: http://issues.apache.org/jira/browse/XERCESC-1497
>      Project: Xerces-C++
>         Type: Bug
>     Reporter: Savorjava

>
> I have tried to validate following xml with two schema files, one is 
> resource_list.xsd and another one is rls_services.xsd, I have place these 
> files on my local disk and made my own EntityResolver for them. when I run my 
> program, Xerces can tell me something wrong with rls-service schema, but 
> Xerces cannot tell me the problems with resource-list schema. but in the 
> following xml I have two elements come from resource-list schema: rl:entry 
> and rl:entry-ref.
> xml:
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?><rls-services 
> xmlns="urn:
> ietf:params:xml:ns:rls-services" 
> xmlns:rl="urn:ietf:params:xml:ns:resource-lists
> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="urn:
> ietf:params:xml:ns:resource-lists resource_lists.xsd 
> urn:ietf:params:xml:ns:rls-
> services rls_services.xsd http://www.w3.org/2001/xml.xsd xml.xsd">
>     <service uri="sip:[EMAIL PROTECTED]">
>      
> <resource-list>http://xcap.example.com/resource-lists/users/joe/index/~~/re
> source-lists/[EMAIL PROTECTED]</resource-list>
>      <packages>
>       <package>presence</package>
>      </packages>
>     </service>
>     <service uria="sip:[EMAIL PROTECTED]">
>       <list name="marketing">
>         <rl:entryabc uri="123"/>
>         <rl:entry-ref abc="sip:[EMAIL PROTECTED]"/>
>       </list>
>       <packages>
>         <package>presence</package>
>       </packages>
>     </service>
>    </rls-services>
> -----------------------------------------
> output info:
> Error at file E:\works\IMS\PS\XML/test.xml, line 4, char 231
>   Message: Complex type 'listType' violates the Unique Particle Attribution 
> rule
>  in its components '##other' and '##other'
> Error at file E:\works\IMS\PS\XML/test.xml, line 4, char 231
>   Message: Complex type '__AnonC3' violates the Unique Particle Attribution 
> rule
>  in its components '##other' and '##other'
> systemId: rls_services.xsd
> baseURI: E:\works\IMS\PS\XML/test.xml
> FileName: rls_services.xsd
> Error at file E:\works\IMS\PS\XML/rls_services.xsd, line 18, char 52
>   Message: Schema Representation Constraint: Namespace 
> 'urn:ietf:params:xml:ns:r
> esource-lists' is referenced without <import> declaration
> systemId: xml.xsd
> baseURI: E:\works\IMS\PS\XML/test.xml
> FileName: xml.xsd
> Error at file E:\works\IMS\PS\XML/test.xml, line 4, char 231
>   Message: Schema in xml.xsd has a different target namespace from the one 
> speci
> fied in the instance document http://www.w3.org/2001/xml.xsd.
> Error at file E:\works\IMS\PS\XML/test.xml, line 11, char 47
>   Message: Attribute 'uria' is not declared for element 'service'
> Error at file E:\works\IMS\PS\XML/test.xml, line 11, char 47
>   Message: Required attribute 'uri' was not provided

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to