Extension of xsd:element.

I'm wondering whether I'd be able to (validly) use the following schema:

<?xml version="1.0" encoding="UTF-8"?> 
<xsd:schema targetNamespace="http://www.baan.com/xyz" 
            xmlns:xyz="http://www.baan.com/xyz" 
            xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"> 


    <!-- Extend the default element with an 'x' attribute --> 
    <xsd:complexType name="element"> 
        <xsd:complexContent> 
             <xsd:extension base="xsd:element"> 
                  <xsd:attribute name="x" type="xsd:boolean" use="default"
value="false"/> 
             </xsd:extension> 
        </xsd:complexContent> 
    </xsd:complexType> 
</xsd:schema> 



I was hoping that this would allow me to write something like this in
another schema: 

 . 
  . 
   . 
 <xsd:sequence> 
     <xyz:element name="..." x="true"/> 
 <xsd:sequence> 
   .
  .

Regards,
Reinier Bos.

Received on Wednesday, 15 November 2000 09:08:15 UTC