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

Alberto Massari commented on XERCESC-1544:
------------------------------------------

Here is a smaller test case: the error appears when schema A redefines 
something from schema B that redefines schema C, and then tries to access 
definitions from schema C

> xsd:redefine recently broken
> ----------------------------
>
>          Key: XERCESC-1544
>          URL: http://issues.apache.org/jira/browse/XERCESC-1544
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.7.0
>  Environment: MacOS X, g++ build
>     Reporter: Jerry Carter

>
> The W3C schema for VoiceXML is quite complex and makes a good test of Xerces. 
>  Previous versions worked well, but 2.7.0 has some problems.  In addition the 
> regexp issues (bug 1512), xsd:redefine is also broken.  This has worked in 
> previous versions (up through 2.6.0, I believe).
> The main VXML schema <http://www.w3.org/TR/voicexml21/vxml.xsd> eventually 
> includes <http://www.w3.org/TR/voicexml21/vxml-synthesis-extension.xsd>.  
> There, on line 28 is the problem statement:
> <xsd:redefine schemaLocation="vxml-synthesis-restriction.xsd">
> This generates two classes of error messages.
> 1: Message: Could not find a declaration in the schema to be redefined 
> corresponding to '...'
> 2: Message: Global complexType:'...' declared more than once or also declared 
> as simpleType
> --------------------------------------
> To reproduce, run the following lines through SAX2Print:
> <?xml version="1.0" encoding="UTF-8"?>
> <vxml version="2.1" xmlns="http://www.w3.org/2001/vxml";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>   xsi:schemaLocation="http://www.w3.org/2001/vxml 
>   http://www.w3.org/TR/voicexml21/vxml.xsd";>
> <form>
>   <block>
>     <exit/>
>   </block>
> </form>
> </vxml>
> xerces-c-src_2_7_0/bin: ./SAX2Print -v=always schema_issue.xml
> <?xml version="1.0" encoding="LATIN1"?>
> Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-restriction.xsd, 
> line 30, char 53
>   Message: Could not find a declaration in the schema to be redefined 
> corresponding to 'say-as'
> Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-restriction.xsd, 
> line 43, char 52
>   Message: Could not find a declaration in the schema to be redefined 
> corresponding to 'audio'
> Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-restriction.xsd, 
> line 55, char 38
>   Message: Could not find a declaration in the schema to be redefined 
> corresponding to 'mark'
> Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-extension.xsd, 
> line 30, char 53
>   Message: Global complexType:'say-as' declared more than once or also 
> declared as simpleType
> Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-extension.xsd, 
> line 43, char 52
>   Message: Global complexType:'audio' declared more than once or also 
> declared as simpleType
> Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-extension.xsd, 
> line 55, char 38
>   Message: Global complexType:'mark' declared more than once or also declared 
> as simpleType
> <vxml version="2.1" xsi:schemaLocation="http://www.w3.org/2001/vxml    
> http://www.w3.org/TR/voicexml21/vxml.xsd";>
> <form scope="dialog">
>   <block>
>     <exit></exit>
>   </block>
> </form>

-- 
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