XML Schema anyAttribute তত্ত্ব
সংজ্ঞা ও ব্যবহার
anyAttribute তত্ত্ব প্রস্তুতকারককে স্কেমা দ্বারা নির্দিষ্ট না হওয়া বৈশিষ্ট্য দ্বারা XML নথিতে সম্প্রসারণ করতে দেয়।
তত্ত্ব তথ্য
প্রকল্প | ব্যাখ্যা |
---|---|
উপস্থিতির প্রক্রিয়া | বিনম্র |
পিতৃ তত্ত্ব | complexType, restriction (simpleContent), extension (simpleContent), restriction (complexContent), extension (complexContent), attributeGroup |
বিষয় | annotation |
বিন্যাস
<anyAttribute id=ID namespace=namespace processContents=lax|skip|strict অন্য বৈশিষ্ট্য > (annotation?) </anyAttribute>
(? symbol indicates that the element can appear zero or one time within the anyAttribute element.)
বৈশিষ্ট্য
id
বাধ্যতামূলক নয়। এই ইলেকট্রনের অভিনন্দন আইডি নির্দিষ্ট করুন。
namespace
বাধ্যতামূলক নয়। ব্যবহারযোগ্য ইলেকট্রনগুলোর নামকরণ জায়গাকে নির্দিষ্ট করুন। যদি নামকরণ নির্দিষ্ট না হয়, তবুও default ##any-এর জন্য নির্দিষ্ট করা হবে। যদি নামকরণ নির্দিষ্ট করা হয়, তবুও নিম্নলিখিত মানগুলোর একটি হতে হবে。
- ##any - Elements from any namespace can appear (default).
- ##other - Elements from any namespace other than the target namespace of the parent element of this element can appear.
- ##local - Elements not qualified by a namespace can appear.
- ##targetNamespace - Elements from the target namespace of the parent element containing this element can appear.
- {URI references of namespaces, ##targetNamespace, ##local} list - Elements from the namespace list separated by spaces can appear. This list can contain the following: URI references of namespaces ##targetNamespace and ##local.
processContents
বাধ্যতামূলক নয়। একটি ইনডিকেটর, যা নির্দেশ করে যে, অ্যাপ্লিকেশন বা XML প্রক্রিয়াকরণ কিভাবে XML ডকুমেন্টটিকে পরীক্ষা করা উচিত, যা এই any ইলেকট্রন দ্বারা নির্দিষ্ট হয়। যদি processContents বৈশিষ্ট্য নির্দিষ্ট না হয়, তবুও default strict-এর জন্য নির্দিষ্ট করা হবে। processContents নির্দিষ্ট করা হলে, এটি নিম্নলিখিত মানগুলোর একটি হতে হবে。
- strict - XML প্রক্রিয়াকরণ ইলেকট্রনটি প্রয়োজনীয় নামকরণ জায়গার স্কেমা পাওয়া তোলা দরকার, এবং এই নামকরণ জায়গার সকল ইলেকট্রনকে পরীক্ষা করা দরকার।(ডিফল্ট)
- ল্যাক্স - strict-এর মতো; কিন্তু, যদি স্কেমা পাওয়া যায় না, তবুও কোনও ত্রুটি ঘটবে না。
- সাইপ - XML প্রক্রিয়াকরণ ইলেকট্রনগুলোকে নির্দিষ্ট নামকরণ জায়গার সকল ইলেকট্রনকে পরীক্ষা করে না。
অন্য বৈশিষ্ট্য
বাধ্যতামূলক নয়। নন-স্কেমা নামকরণ জায়গার অন্য কোনও বৈশিষ্ট্যকে নির্দিষ্ট করুন。
উদাহরণ
এই উদাহরণটি "person" ইলেকট্রনের জন্য একটি ঘোষণা দেখায়।<anyAttribute> ইলেকট্রন ব্যবহার করে, নির্মাতা যে কোনও স্কেমা নামকরণ জায়গার কোনও অতিরিক্ত বৈশিষ্ট্য যোগ করতে পারে:
<xs:element name="person"> <xs:complexType> <xs:sequence> <xs:element name="firstname" type="xs:string"/> <xs:element name="lastname" type="xs:string"/> </xs:sequence> <xs:anyAttribute/> </xs:complexType> </xs:element>