XML Schema field element

Definition and usage

The field element of XML Schema specifies the XPath expression, which specifies the value (or one of the values) used to define the identifier constraint (unique, key, and keyref elements).

element information

occurrence times once
parent element key、keyref、unique
content annotation

grammar

<field
id=ID 
xpath=XPath expression
any attributes
>
(annotation?)
</field>
অতিবিশেষিত বর্ণনা
id বাধ্যতামূলক।এই ইলেকট্রনের একক ID নির্দিষ্ট করে
xpath বাধ্যতামূলক।তার বিষয় বা মূল্যকে সীমাবদ্ধতা চিহ্নিত করে, যদি এই এক্সপ্রেসন একটি ইলেকট্রনকে চিহ্নিত করে, তবে তা সাধারণ টাইপ হতে পারেনা。
xml:lang বাধ্যতামূলক।ব্যবহৃত ভাষা নির্দিষ্ট করে

(? সংকেতটি field ইলেকট্রনের মধ্যে ঘোষিত হয়, যা শুধুমাত্র শূন্য বা একবার উপস্থিত হতে পারে。)

প্রতিদর্শন

উদাহরণ 1

নিচের উদাহরণটি একটি field ইলেকট্রনকে দেখায়, যা "userID" অতিবিশেষিত হিসাবে ব্যবহার করে যা সীমাবদ্ধতা চিহ্নিত করে:

<xs:field xpath="@userID"/>