Issue Details (XML | Word | Printable)

Key: XERCESC-1544
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Jerry Carter
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Xerces-C++

xsd:redefine recently broken

Created: 29/Dec/05 08:43 PM   Updated: 18/Nov/09 08:01 AM
Return to search
Component/s: Validating Parser (XML Schema)
Affects Version/s: 3.1.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
XML File redefine1.xsd 2006-01-17 10:56 PM Alberto Massari 0.2 kB
XML File redefine2.xsd 2006-01-17 10:56 PM Alberto Massari 0.4 kB
XML File redefine3.xml 2006-01-17 10:56 PM Alberto Massari 0.1 kB
XML File redefine3.xsd 2006-01-17 10:56 PM Alberto Massari 0.4 kB
Environment: MacOS X, g++ build


 Description  « Hide
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>




 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alberto Massari added a comment - 17/Jan/06 10:55 PM
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

Alberto Massari made changes - 17/Jan/06 10:56 PM
Field Original Value New Value
Attachment redefine1.xsd [ 12322018 ]
Alberto Massari made changes - 17/Jan/06 10:56 PM
Attachment redefine2.xsd [ 12322019 ]
Alberto Massari made changes - 17/Jan/06 10:56 PM
Attachment redefine3.xsd [ 12322020 ]
Alberto Massari made changes - 17/Jan/06 10:56 PM
Attachment redefine3.xml [ 12322021 ]
Boris Kolpackov added a comment - 18/Nov/09 08:01 AM
Still present in the 3.1.0 codebase.

Boris Kolpackov made changes - 18/Nov/09 08:01 AM
Affects Version/s 2.7.0 [ 12310263 ]
Affects Version/s 3.1.0 [ 12313294 ]