redefinition errors

I have an element <representation> with attribute "format" and want to force
inclusion of <representaion format='VLVF'> followed by zero or more further
<represenation> elements. To do this I defined a general
"anyRepresenationType" and use it to define a restricted
"vlvfRepresentationType" which has "format" with use='fixed' and
value='VLVF'.

Problem: XML Spy says its fine, but XSV warns about the redef when
validating the schema, and errors about it when validating the instance. (At
the second element def it complains "Error: illegal redeclaration of
{None}:representation").

The errors appear at this point...
 <complexType>
  <sequence>
   <element name='vlvfRepresentationType'/>
   <element name='anyRepresentationType' minOccurs='0'/>
  </sequence>
 <complexType>

Question:
1) Is XSV correct and XML Spy in error?
2) Assuming XSV is right, what is the best way to achieve this?...
    - Using an anonymous type for the first element? 
    - Is there a way to use elements of the same name but with different
types? 
    - Any other options?

Thanks

Mark
--
Mark Hughes
  Agile HTML Editor
    http://www.agilic.com

p.s. Henry - thanks for the earlier pointer/help re import/include

Received on Monday, 8 January 2001 12:50:08 UTC