Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
-
MacOS X, g++ build
Description
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>