gareth      2003/04/02 00:04:27

  Modified:    c/samples/data personal.xsd
  Log:
  Fix to personal.xsd to permit xml:base on on elements. Patch by Neil Graham.
  
  Revision  Changes    Path
  1.5       +31 -2     xml-xerces/c/samples/data/personal.xsd
  
  Index: personal.xsd
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/data/personal.xsd,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- personal.xsd      6 Dec 2001 17:45:01 -0000       1.4
  +++ personal.xsd      2 Apr 2003 08:04:27 -0000       1.5
  @@ -1,6 +1,17 @@
   <?xml version="1.0" encoding="UTF-8"?>
   <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
   
  + <xs:import namespace="http://www.w3.org/XML/1998/namespace";>
  +   <xs:annotation>
  +     <xs:documentation>
  +        The schemaLocation of the relevant file is
  +        "http://www.w3.org/2001/xml.xsd";; however,
  +        we don't want to assume people are always
  +        connected to the 'net when playing with this file.
  +     </xs:documentation>
  +   </xs:annotation>
  + </xs:import>
  +
    <xs:element name="personnel">
     <xs:complexType>
      <xs:sequence>
  @@ -43,6 +54,7 @@
       </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="salary" type="xs:integer"/>
  +   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"/>
     </xs:complexType>
    </xs:element>
   
  @@ -52,12 +64,29 @@
       <xs:element ref="family"/>
       <xs:element ref="given"/>
      </xs:all>
  +   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"/>
     </xs:complexType>
    </xs:element>
   
  - <xs:element name="family" type='xs:string'/>
  + <xs:element name="family">
  +   <xs:complexType>
  +     <xs:simpleContent>
  +       <xs:extension base='xs:string'>
  +          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"/>
  +        </xs:extension>
  +     </xs:simpleContent>
  +   </xs:complexType>
  + </xs:element>
   
  - <xs:element name="given" type='xs:string'/>
  + <xs:element name="given" >
  +   <xs:complexType>
  +     <xs:simpleContent>
  +       <xs:extension base='xs:string'>
  +          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"/>
  +        </xs:extension>
  +     </xs:simpleContent>
  +   </xs:complexType>
  + </xs:element>
   
    <xs:element name="email" type='xs:string'/>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to