XML Schema annotation ÔªËØ
¶¨ÒåºÍÓ÷¨
annotation ÔªËØÊÇÒ»¸ö¶¥²ãÔªËØ£¬¹æ¶¨ schema µÄ×¢ÊÍ¡£
×¢ÊÍ£º¿ÉÒÔ°üº¬ appinfo ÔªËØ£¨ÓÉÓ¦ÓóÌÐòʹÓõÄÐÅÏ¢£©ºÍ documentation ÔªËØ£¨ÓÉÓû§¶ÁÈ¡»òʹÓõÄ×¢ÊÍ»òÎı¾£©¡£
ÔªËØÐÅÏ¢
ÏîÄ¿ | ˵Ã÷ |
---|---|
³öÏÖ´ÎÊý | ÔÚ¸¸ÔªËØÖÐÒ»´Î¡£ |
¸¸ÔªËØ | ÈκÎÔªËØ |
ÄÚÈÝ | appinfo¡¢documentation |
Óï·¨
<annotation id=ID any attributes > (appinfo|documentation)* </annotation>
£¨* ·ûºÅÉùÃ÷¸ÃÔªËØ¿ÉÔÚ annotation ÔªËØÖгöÏÖÁã´Î»ò¶à´Î¡££©
ÊôÐÔ | ÃèÊö |
---|---|
id | ¿ÉÑ¡¡£¸ÃÔªËØµÄΨһ±êʶ·û¡£ |
any attributes | ¿ÉÑ¡¡£¹æ¶¨´øÓÐ non-schema ÃüÃû¿Õ¼äµÄÈÎºÎÆäËûÊôÐÔ¡£ |
Àý×Ó 1
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:appInfo>W3School Note</xs:appInfo> <xs:documentation xml:lang="en"> This Schema defines a W3School note! </xs:documentation> </xs:annotation> . . . </xs:schema>