XSD'mi oluşturmaya çalışırken bu hatayla karşılaşıyorum ve ne yaptığımı anlayamıyorum; Benim kod şöyle görünür:geçersiz, yanlış yerleştirilmiş veya çok sık olarak ortaya çıkıyor
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"
xmlns="http://www.w3schools.com"
elementFormDefault="qualified">
<xs:element name="FICH">
<xs:complexType>
<xs:sequence>
<xs:element name="cabeza">
<xs:complexType>
<xs:sequence>
<xs:element name="VERSION_ORIG" type="Version"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DATA_MAJ">
<xs:complexType>
<xs:sequence>
<xs:element name="DATA1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="VERSION_SIT_NOM" type="Version"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:assert test="CABEZA/VERSION_ORIG = DATA_MAJ/VERSION_SIT_NOM"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="YYMM">
<xs:restriction base="xs:integer">
<xs:pattern value="[0-9]{2}[01|02|03|04|05|06|07|08|09|10|11|12]"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Version">
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{2}.[0-9]{2}.[0-9]{2}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="emptyString">
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
fikri CABEZA/VERSION_ORIG DATA_MAJ/VERSION_SIT_NOM eşit olması gerektiğini unsurdur. Bazı çözümler aradım ama her şey benim için uygun görünüyor.
Mesajda bulunan herkese merhaba derken, stackoverflow'un neden parçayı silmediğini bilmiyorum .. sadece hata, yan tümceler nedeniyle zıpladığını söyle –
Hoş Geldiniz; [Bu nasıl/neden] (http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts/93989#93989) selamlama kaldırılır . İşlerin SO üzerinde nasıl çalıştığıyla ilgili bilgi edinmeye değer. İyi bir sorunun ne olduğuna dair bazı ipuçları var; Daha önce gördüklerime dayanarak, reddedilmediğiniz için şanslı olduğunuzu söyleyebilirim ... Örneğin, hata mesajı almak için kullandığınız şey hakkında bir şey söylemezsiniz. –