XML Schema အကွက် Element
❮ XML Schema အကိုးအကားကို အပြီးသတ်ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အကွက်ဒြပ်စင်သည် အထောက်အထား ကန့်သတ်ချက်တစ်ခုကို သတ်မှတ်ရန် အသုံးပြုသည့် တန်ဖိုးကို သတ်မှတ်သည့် XPath စကားရပ်ကို သတ်မှတ်သည်။
ဒြပ်စင်အချက်အလက်
- ပင်မ ဒြပ်စင်များ- သော့၊ keyref၊ ထူးခြားသည်။
အထားအသို
<field
id=ID
xpath=XPath expression
any attributes
>
(annotation?)
</field>
( ? နိမိတ်သည် အကွက်ဒြပ်စင်အတွင်း သုည သို့မဟုတ် တစ်ကြိမ် ဖြစ်ပေါ်နိုင်ကြောင်း ကြေငြာသည်)
Attribute | Description |
---|---|
id | Optional. Specifies a unique ID for the element |
xpath | Required. Identifies a single element or attribute whose content or value is used for the constraint |
any attributes | Optional. Specifies any other attributes with non-schema namespace |
ဥပမာ ၁
အောက်ဖော်ပြပါ ဥပမာသည် အထောက်အထား ကန့်သတ်ချက်အတွက် အသုံးပြုရန် အကွက်အဖြစ် "userID" ရည်ညွှန်းချက်ကို သတ်မှတ်သည့် အကွက်ဒြပ်စင်တစ်ခုကို ပြသသည်-
<xs:field xpath="@userID"/>
❮ XML Schema အကိုးအကားကို အပြီးသတ်ပါ။