extrait du fichier phr_sis_header.xsd
Code :
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified">
- <xs:include schemaLocation="phr_sis_type.xsd"/>
- <xs:simpleType name="SCHEMA_VERSION">
- <xs:annotation>
- <xs:documentation>File version and revision in use (Ex : 1.0)</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:minLength value="0"/>
- <xs:maxLength value="4"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="SCHEMA_NAME">
- <xs:annotation>
- <xs:documentation>XSD File Name including extension</xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:enumeration value="phr_sis_1553_acquisition.xsd"/>
- <xs:enumeration value="phr_sis_1553_commande.xsd"/>
- <xs:enumeration value="phr_sis_1553_slot.xsd"/>
- <xs:enumeration value="phr_sis_1553_tc.xsd"/>
- <xs:enumeration value="phr_sis_codage.xsd"/>
- <xs:enumeration value="phr_sis_configuration_satellite.xsd"/>
- <xs:enumeration value="phr_sis_evenement_bord.xsd"/>
- <xs:enumeration value="phr_sis_fonction_transfert.xsd"/>
- <xs:enumeration value="phr_sis_obcd.xsd"/>
- <xs:enumeration value="phr_sis_paquet_tm.xsd"/>
- <xs:enumeration value="phr_sis_parametre_systeme.xsd"/>
- <xs:enumeration value="phr_sis_surveillance_fonctionnelle.xsd"/>
- <xs:enumeration value="phr_sis_surveillance_standard.xsd"/>
- <xs:enumeration value="phr_sis_tc_parametre.xsd"/>
- <xs:enumeration value="phr_sis_tcd.xsd"/>
- <xs:enumeration value="phr_sis_tch.xsd"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:complexType name="IF_REF">
- <xs:sequence>
- <xs:element name="ID" type="IF_NAME"/>
- <xs:element name="VERSION" type="IF_VERSION"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TEST">
- <xs:sequence>
- <xs:element name="NAME" type="SCHEMA_NAME"/>
- <xs:element name="VERSION" type="SCHEMA_VERSION"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="HEADER">
- <xs:annotation>
- <xs:documentation>PHR Header for SIS interface</xs:documentation>
- </xs:annotation>
- <xs:sequence>
- <xs:element name="SATELLITE" type="SATELLITE"/>
- <xs:element name="CONFIDENTIALITY" type="CONFIDENTIALITY"/>
- <xs:element name="PROVIDER" type="PROVIDER"/>
- <xs:element name="SCHEMA_REF" type="TEST"/>
- <xs:element name="IF_REF" type="IF_REF"/>
- </xs:sequence>
- </xs:complexType>
|
mon 2eme fichier de schéma qui bug
Code :
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified">
- <xs:include schemaLocation="phr_sis_header.xsd"/>
- <xs:include schemaLocation="phr_sis_specific_header.xsd"/>
- <xs:include schemaLocation="phr_sis_type.xsd"/>
- <xs:element name="SIS_1553_ACQUISITION">
- <xs:annotation>
- <xs:documentation>1553</xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:sequence>
- <xs:element name="HEADER">
- <xs:complexType>
- <xs:complexContent>
- <xs:restriction base="HEADER">
- <xs:sequence>
- <xs:element name="SATELLITE" type="SATELLITE"/>
- <xs:element name="CONFIDENTIALITY" type="CONFIDENTIALITY"/>
- <xs:element name="PROVIDER" type="PROVIDER"/>
- <xs:element name="SCHEMA_REF">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="NAME">
- <xs:simpleType>
- <xs:restriction base="SCHEMA_NAME">
- <xs:enumeration value="phr_sis_1553_acquisition.xsd"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- <xs:element name="VERSION">
- <xs:simpleType>
- <xs:restriction base="SCHEMA_VERSION">
- <xs:enumeration value="1.1"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="IF_REF" type="IF_REF"/>
- </xs:sequence>
- </xs:restriction>
- </xs:complexContent>
- </xs:complexType>
- </xs:element>
|
Mon problème est le suivant lorsque je veux valider le fichier ci dessus avec XmlSpy, j'ai l'erreur suivante que je ne comprend et donc que je n'arrive pas résoudre, merci de votre aide.
erreur : Type anonymous is not a valid restriction of type HEADER
Message édité par sbucci2 le 21-08-2006 à 14:38:34