6
क्या कोई मुझे इस स्कीमा फ़ाइल (मालिक के अंग्रेजी नाम के लिए) पर प्रतिबंध जोड़ने में मदद कर सकता है? मुझे पता है कि इसे एक सरल प्रकार के साथ कैसे किया जाए, जबकि एक पूर्णता में मुझे नहीं पता कि यह कैसे करना है। क्या कोई मदद कर सकता है?मैं एक्सएमएल (एक्सएसडी) स्कीमा में एक पूर्णता में प्रतिबंध कैसे जोड़ सकता हूं?
बहुत बहुत धन्यवाद।
मूल एक्सएमएल:
<PACIDemoSignedDoc PaciSDocID="HouseOwnerSignedEndorsement">
<OwnerEnglishName OENID="Name"></OwnerEnglishName>
</PACIDemoSignedDoc>
स्कीमा (प्रतिबंध के बिना):
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="PACIDemoSignedDoc" type="PACIDemoSignedDocType" />
<xs:complexType name="PACIDemoSignedDocType">
<xs:sequence>
<xs:element name="OwnerEnglishName" type="OwnerEnglishNameType" />
</xs:sequence>
<xs:attribute name="PaciSDocID" type="xs:string" />
</xs:complexType>
<xs:complexType name="OwnerEnglishNameType">
<xs:attribute name="OENID" type="xs:string" />
</xs:complexType>
</xs:schema>
प्रतिबंध कोड:
<xs:restriction base="xs:string">
<xs:minLength value="5"/>
<xs:maxLength value="100"/>
</xs:restriction>