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

Boris Kolpackov updated XERCESC-1544:
-------------------------------------

    Affects Version/s:     (was: 2.7.0)
                       3.1.0

Still present in the 3.1.0 codebase.

> xsd:redefine recently broken
> ----------------------------
>
>                 Key: XERCESC-1544
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1544
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 3.1.0
>         Environment: MacOS X, g++ build
>            Reporter: Jerry Carter
>         Attachments: redefine1.xsd, redefine2.xsd, redefine3.xml, 
> redefine3.xsd
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to