|
A website dedicated to promoting the widespread deployment of W3C technologies. A website designed to propagate information on the future of the Web. A website ideally suited for discussions and the exchange of relevant information. |
|
���ģ� |
XML��Ϣ���������İ棨http://www.w3china.org/translation/infoset2ed.htm�� |
|
���� |
XML Infomation Set��http://www.w3.org/TR/2004/REC-xml-infoset-20040204/�� |
|
˵���� |
<![if !supportLists]>l <![endif]>���ĵ��Ǹ���2004��2��4�շ�����XML Information Set ( Second Edition ) Recommendation���з���ġ� <![if !supportLists]>l <![endif]>���ĵ���Ӣ�İ���Ψһ����ʽ�汾�� <![if !supportLists]>l <![endif]>��������׼ȷ�ط���Ô�ģ������ⲻ�㡣��Ó����ָ���� <![if !supportLists]>l <![endif]>��ע�������Ƿ���ʽ�ģ����������߸��˹۵㡣 <![if !supportLists]>l <![endif]>����Ȩ����λ�ڣ�http://www.w3.org/Consortium/Legal/copyright-documents.html Copyright © 1998 W3C® (MIT, INRIA, Keio ), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. |
|
���ߣ� |
||
ʱ�䣺 |
�״η�����2004��9��24��/��������2004��9��24�� |
|
|
||
��ǰ�汾��
http://www.w3.org/TR/2004/REC-xml-infoset-20040204
���°汾��
http://www.w3.org/TR/xml-infoset
��һ�汾��
http://www.w3.org/TR/2003/PER-xml-infoset-20031210
���ߣ�
John Cowan, [email protected]
Richard Tobin, [email protected]
���淶Ϊ��Щ��Ҫ����XML�ĵ��е���Ϣ�Ĺ淶�ṩ��һ�鶨�塣
��һ���������˱��ĵ��ڷ���ʱ��״̬�����ĵ����ܻᱻ�����ĵ���ȡ������ǰ�ѷ�����W3C�ĵ��б������°汾�ļ���������Դ�λ�� http://www.w3.org/TR/ ��W3C��������������á�
���ĵ���W3C���Ƽ���׼��Recommendation�������Ѿ���W3C��Ա��������ط��棨interested parties�������ģ����ѱ�W3C�ܼࣨDirector����׼ΪW3C�Ƽ���׼��W3C Recommendation�������ĵ����ȶ��ģ�stable��������ζ�ű��ĵ��ɱ������ο����ϻ������ĵ��Ĺ淶�����ף�normative reference����W3C �ƶ��Ƽ���׼��������ʹ֮�ܵ���ע������ʹ�䱻�㷺ʹ�á��⽫��ǿWeb�Ĺ����ԣ�functionality���뻥�����ԣ�interoperablity����
���ĵ��Ƕ��ϸ���Ϣ���Ƽ���׼�ĸ��£�������XML 1.1��Namespaces 1.1�����ݡ�������ijЩ�������Ч�÷�����������һЩ���ִ������ĵ���W3C XML �ж�����W3C XML Activity���Ĺ����ɹ������ĵ���Ӣ�İ���Ψһ�Ĺ淶�԰汾�����ĵ��������б�λ�� http://www.w3.org/2003/03/Translations/byTechnology?technology=xml-infoset��
���Ƽ���׼�����漰����֪ʶ��Ȩ��¼���ڹ�����Ĺ���IPR����ҳ�����ҵ���
������ֱ��ĵ�[��ע//ָӢ��Ôʼ�ĵ�]�Ĵ����뷢�ʹ��󱨸���[email protected]�����������������ĵ�����֪�����б�λ�ڣ�http://www.w3.org/2001/10/02/xml-infoset-errata.html��
1. ����
2.3. ������Ϣ��
2.4. PI��Ϣ��
2.5. δչ��ʵ��������Ϣ��
2.8. �ĵ�����������Ϣ��
2.9. �ǽ���ʵ����Ϣ��
2.10. ��ʽ��Ϣ��
2.11. �����ռ���Ϣ��
��¼ A: �ο�����
��¼ B: XMLͨ�����󣨲ο��Եģ�
��¼ C: ʾ�����ο��Եģ�
��¼ D: XML��Ϣ������������Ϣ
��¼ E: RDF Schema���ο��Եģ�
���淶������һ����ΪXML��Ϣ����XML Information Set������XML Infoset���ij������ݼ��ϡ�������;��Ϊ��Щ��Ҫ����XML�ĵ�[XML]�е���Ϣ�Ĺ淶�ṩһ��һ�µĶ���[��ע//SOAP 1.2��OWL���ĵ����õ���XML��Ϣ��]��
���淶������ͼ����������©��һ����Ϣ�information item����һ�����ԣ�property���Ƿ񱻰������ڣ���Ҫȡ��������δ���淶�е��ô������淶��û�й涨XML��������XML processor�����뷵�ص���Ϣ��
���һ��XML�ĵ��������ģ�well-formed�����������������ռ䷽�������������������������������ô���XML�ĵ���һ����Ӧ����Ϣ����information set����ע�⣺����ֻ����Ч�ģ�valid��XML�ĵ�������Ϣ����
��Ϣ���Ĵ�������ͨ������XML�ĵ��ķ�ʽ�����У�Ҳ����ͨ�����÷����ķ�ʽ�����У����淶û���������ַ��������μ�
����Ҫ���ܵ��ϳɵ���Ϣ����
һ��XML�ĵ�����Ϣ����������Ϣ�information item����ɣ�����Щ��Ϣ���б�Ȼ����һ���ĵ���Ϣ���ͼ�����������Ϣ���Ϣ����XML�ĵ���ij�����ֵij���������ÿ����Ϣ���һ����Ӧ�����ԣ�property�����ڱ��淶�У���Щ���Ե����ƽ��÷����������������磺[������]������Ϣ������ͽ����ڶ�����������
XML��Ϣ��û�й涨��������ʹ��ij����ijһ��ӿڡ����淶ʹ�ñ����ε�����modified tree��������XML��Ϣ���dz��ڼ򵥺����˵Ŀ��ǣ�������ʾһ��Ҫ�����ṹ������XML��Ϣ�����������͵Ľӿڣ����磨���������ڣ������¼��ģ�event-based������ڲ�ѯ�ģ�query-based���ӿڶ��������ձ��淶���ṩXML�ĵ��е���Ϣ��
���ڡ���Ϣ����information set�����͡���Ϣ�information item����������������ǵĺ���������ͨ����˵�ġ�����tree�����͡���㣨node������������ˣ����淶���Խ�ʹ��ǰ����������Ա���������һЩ����ģ�ͣ�data model��������ע�⣺��Ϣ����DOM�еĽ�㣨node����XPath����ģ���е�����tree���ͽ�㣨node��û��һһ��Ӧ�Ĺ�ϵ��
�ڱ��淶�У���must������should���͡�may���ȴʵĺ������[RFC2119]�еĹ涨��ֻ��û���ô�д��ĸ����д��Щ���ʡ�[��ע//RFC2119Ҫ��ʹ�ô�д��ĸ����д��Щ�ʣ���ʹ��Щ����������ͨ�������ʡ�]
��ͬ�汾��XML�淶���ܻ�涨��ͬ�Ľ�������һ��XML�ĵ�����Ϣ��������Ϊ�ɸ��ĵ�����Ӧ��XML�汾�涨�Ĺ�������õ�����Ϣ��������ĵ�û��ָ��XML�汾�ţ�����Ϊ����1.0�����һ��XML�������յ���һ��XML�ĵ��������ĵ��İ汾��������ʶ����ô�������δ����������ȷ����Ϣ����
ֻҪһ��XML�ĵ�������[Namespaces]�����ͱ���Ϊû���κ����������Ϣ������ʹ����һ�������ģ�well-formed���ĵ���Ҳ����˵�������ij��XML�ĵ���Ԫ�������������У�ð�ŵ�ʹ�ò�����[Namespaces]�еĹ涨���򱾹淶��Ϊ��XML�ĵ�������Ϣ����
���⣬������Щ�������ռ�������namaspace declarations����ʹ�������URI���ã�relative URI reference��[��ע//URI���ã�����μ�RFC 2396����URI������Ҫ������URI���ܱ�ʶһ����Դ����URI������һ������ΪURI��������ԣ�ͨ����˵�����URIʵ����ָ�������URI���ã������֮�֣����뽫���URI���ý���Ϊ����URI���ò��ܱ�ʶ��Դ�����⣬��RFC 2396�У�Ƭ�α�ʶ����fragment identifier������Ϊ��URI���õ�һ���֣�������URI��һ���֡�����δ����RFC�У�Ƭ�α�ʶ�����ܻᱻ��Ϊ��URI��һ���֡�]��XML�ĵ������淶Ҳ��Ϊ���Ƕ�����Ϣ��������W3C XML Plenary Interest Group��[Relative Namespace URI References]�еľ�����һ�µġ�
[namespace name]���Ե�ֵ�ǹ�񻯺��ֵ�������������������κ�������URIת�������
��Ϣ�����������Ե�ֵ��Ҫ����[XML] �е�2.11��End-of-Line Handling��������β�Ĺ�񻯴�����
��Щ��Ϣ����[base URI]��[declaration base URI]���ԡ���Щ���Ե�ֵ�Ǹ���[XML Base][��ע//XML Base��Unicode�������İ�λ�ڣ�http://xmlbase.w3china.org/]����õ��ġ�ע�⣺�ڻ�ȡ��Դ�Ĺ����п��ܻ��ڽ�����������������¼��������ض��򣨱��磬��һ��ʵ��������У�������������£���׼URI�Ǿ��������ض���֮������������ȡ��Դ���Ǹ�URI��
��Щ���Ե�ֵ����ӳΪ��ȡ��Դ��������Ҫ��URIת����������������������������Щ���Կ��ܻ����ת�崦������ַ�����1����Щ�ַ������ĵ���ָ���ģ���2����Щ�ַ��Ƿ��������ض���ʱ���صġ�
��ijЩ����£�������ַ�����ܵ��ж������ĵ�����[XML Base]�еĹ�����ܻ����һ��������Ӧ�ó���Ļ�׼URI����ʱ��[base URI]���Ժ�[declaration base URI]���Ե�ֵ�ڱ��淶��û�ж��塣
�ڽ������URIʱ��[base URI]���ԣ�property��Ӧ������xml:base���ԣ�attribute����ʹ�á���Ϊ�ںϳɵ���Ϣ����Synthetic Infosets���У����ǿ��ܻ᲻һ�¡�
��Щ������ʱ����ȡֵno value��unknown[��ע//ע�⣺�����no value��unknown����ʾ����ĺ��壬������ʾʵ�ʵ�����ֵ�����ַ�����no value����unknown������ʵ��Ӧ����������������������ֵ��������Ϣ���ӿڣ�interface���йأ���ͬ����Ϣ���ӿڿ��ܻ��ȡ��ͬ�ķ�ʽ������������ֵ]�����Ƿֱ��ʾ�����Ե�ֵδ֪�������û��ֵ��������ֵ���໥����ģ�����������ֵҲ������ͬ��Ҫ�ر�ע����ǣ�������ֵ����ַ�����empty string�����ռ���empty set���Լ����б���empty list���Dz�ͬ�ģ������߽���ʾû�г�Ա�������淶û��ʹ��null��Ϊ����ֵ����Ϊ����ijЩ��������null����������ĺ��壬����Щ���岻�����������Ҫ��
��ǰ�����ᵽ�ģ�һ��������Ч�ģ�valid��XML�ĵ�Ҳ����ӵ����Ϣ�������ǣ�ijЩ�������Ч�÷���Ӱ��ָ����ijЩ���Ե�ֵ��ʵ�壨entities������ʽ��notations����Ԫ�أ�elements�������ԣ�attribute��������δ�����ġ���ʽ��Ԫ�ؿ����DZ���������ģ������������ʵ�����������Ч�ģ���һ��ID������δ������ζ���ġ���Щ�����������������Ϣ����ж���ʱ����˵����
���淶������ͨ������XML�ĵ��ķ�ʽ�õ���XML��Ϣ����XML��Ϣ��Ҳ����ͨ��������ʽ�����죨����ʹ����DOM������API��������е���Ϣ�������޸ģ���
��Ӧ��һ����ʵXML�ĵ�����Ϣ����Ȼ�ڶദ����һ�¡����磬ij��Ԫ�ص�[in-scope namespace]���Ա�Ȼ���Ԫ���Լ���Ԫ�ص����ȵ�[namespace attributes]����һ�¡�������ʹ�������������������Ϣ������һ��δ�س���������������£�����Ϣ��û����Ӧ��XML�ĵ�����ˣ���Ҫ�������л���serialize�����ͱ�������Щ��һ�£��������������Ԫ�ط�Χ����Ч�������ռ����������
һ����Ϣ�����԰������11�ֲ�ͬ���͵���Ϣ����潫���н��ܣ���ÿ����Ϣ����������ԣ�properties����Ϊ�����÷��㣬ÿ�����Զ�������һ�����ơ��ڱ��淶�У����������÷�����������������[������]�������ڽ��ܸ���Ϣ��ʱ�����������ǵĶ�Ӧ������XML 1.0�Ƽ���׼[XML]�еĶ����/���﷨�����ӡ�
XML����: document (Section 2, Documents)
XML�﷨: [1] Document (Section 2.1, Well-Formed XML Documents)
ÿ����Ϣ�����ҽ���һ���ĵ���Ϣ�document information item������Ϣ���е�����������Ϣ����Դ��ĵ���Ϣ��������Լ����Ե����Եȵ�����á�
�ĵ���Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]> [children] һ������Ϣ�child information items���������б������������ĵ��еij��ִ���Ϊ�򣩡��������б�����һ��Ԫ����Ϣ����element information item��������λ���ĵ�Ԫ�أ�document element���ⲿ�Ĵ���ָ�processing instruction�����PI���ڱ������б��ж���һ����Ӧ��PI��Ϣ����processing instruction information item��������λ���ĵ�Ԫ���ⲿ��ע�ͣ�comment���ڱ������б��ж���һ����Ӧע����Ϣ����comment information item������λ��DTD�е�PI��ע���ڱ������б�����û����Ӧ����Ϣ����XML�ĵ����ĵ�����������document type declaration�����������б�����һ���ĵ�����������Ϣ����document type declaration information item����
<![if !supportLists]>2. <![endif]>[document element] ��Ӧ���ĵ�Ԫ�ص�Ԫ����Ϣ����
<![if !supportLists]>3. <![endif]>[notations] һ����ʽ��Ϣ����notation information items�������򼯡�������DTD�������ĸ�ʽ��notation���ڱ������ж���һ����Ӧ�ĸ�ʽ��Ϣ�������ڱ���������ĸ�ʽ��notation�����������û��ֵ��
<![if !supportLists]>4. <![endif]>[unparsed entities] һ���ǽ���ʵ����Ϣ����unparsed entity information items�������򼯡�������DTD�������ķǽ���ʵ���ڱ������ж���һ���ǽ���ʵ����Ϣ�
<![if !supportLists]>5. <![endif]>[base URI] �ĵ�ʵ��Ļ�׼URI��
<![if !supportLists]>6. <![endif]>[character encoding scheme] �ĵ�ʵ�壨document entity�����õ��ַ����뷽�������ơ�
<![if !supportLists]>7. <![endif]>[standalone] �����Ա���XML�ĵ��Ƿ���һ�������ĵ���standalone document��������ֵ�Ǹ���XML������λ���ĵ�ʵ����ײ����еĶ����ĵ���������XML�������ǿ�ѡ�ģ����趨�ġ����û�ж����ĵ��������������û��ֵ��no value����
<![if !supportLists]>8. <![endif]>[version] һ���ַ����������ĵ���ӵ�XML�汾�š������Ե�ֵ�Ǹ���XML������λ���ĵ�ʵ����ײ�����ѡ�ģ��еİ汾��Ϣ���趨�ġ����û��XML������������û��ֵ��no value����
<![if !supportLists]>9. <![endif]>[all declarations processed] �ϸ��˵�������Բ������ĵ���Ϣ����һ���֣���������XML�������Ƿ��Ѿ�����������DTD�������Ե�ֵ��һ���������������ܻ�Ӱ����Ϣ���е�ijЩ�������ԣ��ڽ�����Щ����ʱ������˵������ȡֵ����������Ե�ֵΪfalse�������ǵ�ֵΪδ֪��unknown������������Ե�ֵΪtrue�������ǵ�ֵһ����δ֪��unknown�������ֵ��
XML���壺element (Section 3, Logical Structures)
XML�﷨��[39] Element (Section 3, Logical Structures)
���ڳ�����XML�ĵ��е�ÿ��Ԫ�أ�element��������Ϣ���ж���һ����Ӧ��Ԫ����Ϣ�element information item���������е�Ԫ����Ϣ���У�����һ�����ĵ���Ϣ���[document element]���Ե�ֵ�����Ԫ����Ϣ���Ӧ��Ԫ�����ṹ�ĸ����Ը�Ԫ����Ϣ��Ϊ��㣬�ݹ�ط���[children]���ԣ���ɻ�����������Ԫ����Ϣ�
Ԫ����Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[namespace name] Ԫ������[��ע//�����Ԫ��ָ������XML�ĵ����뱾��Ϣ���Ӧ���Ǹ�Ԫ�أ���ͬ��]�������ռ�����namespace name��������еĻ��������Ԫ�ز������κ������ռ䣬������û��ֵ��no value����
<![if !supportLists]>2. <![endif]>[local name] Ԫ����������element-type name�����ڲ�����local part���������Բ����������ռ�ǰ׺��namespace prefix����ð�š�
<![if !supportLists]>3. <![endif]>[prefix] Ԫ���������������ռ�ǰ׺��namespace prefix�������Ԫ��������û��ǰ׺��������û��ֵ��no value����ע�⣺֧�������ռ��Ӧ�ó���Ӧʹ�������ռ�����namespace name�������������ռ�ǰ׺��namespace prefix������ʶԪ��[��ע//�����ռ���Ψһ�ر�ʶһ�������ռ䣬�������ռ�ǰ׺��һ������Ϊ��ͬ�������ռ�ǰ׺���ܶ�Ӧ��ͬһ�������ռ�����]��
<![if !supportLists]>4. <![endif]>[children] һ������Ϣ��������б����������б�����Ԫ����Ϣ����PI��Ϣ����δչ��ʵ��������Ϣ�����ַ���Ϣ���Լ�ע����Ϣ�������ڳ����ڵ�ǰԪ���е�ÿ��Ԫ�ء�����ָ�PI������δչ���ⲿʵ������á������ַ���ע�ͣ��ڱ������б��ж���һ����Ӧ���͵���Ϣ����ڿ�Ԫ�أ�empty element�����������б�Ϊ�ա�
<![if !supportLists]>5. <![endif]>[attributes] һ��������Ϣ�������򼯡�����Ԫ�ص�ÿ�����ԣ������DZ���ʽָ������ֵ�����Ǹ���DTD�õ�ȱʡ����ֵ�����ڱ������ж���һ����Ӧ��������Ϣ���Ԫ�ص������ռ�������namespace declaration�����������ڱ�������[��ע//�����ռ�������������namespace attributes������]�����Ԫ��û�����ԣ�������Ϊ�ռ���
<![if !supportLists]>6. <![endif]>[namespace attributes] һ��������Ϣ�������򼯡�����Ԫ�ص�ÿ�������ռ������������DZ���ʽָ������ֵ�����Ǹ���DTD�õ�ȱʡ����ֵ�����ڸ������ж���һ����Ӧ��������Ϣ�ȡ��ȱʡ�����ռ����������xmlns=��������ȡ��ǰ׺����������xmlns:name=""��Ҳ����Ϊ��һ�������ռ�������ǰ׺��ȡ�������ѱ�����Namespaces in XML 1.1�����ݶ��壬���е������ռ����ԣ�������ָ��ֵ��xmlns������[prefix]����û��ֵ������һ�������ռ�URI��http://www.w3.org/2000/xmlns/�����Ԫ��û�������ռ��������������Ϊ�ռ���
<![if !supportLists]>7. <![endif]>[in-scope namespaces] һ�������ռ���Ϣ������򼯡�������Ԫ�ط�Χ����Ч��ÿ�������ռ䣬�ڱ������ж���һ����Ӧ�������ռ���Ϣ��������ܺ���һ��[prefix]����ֵΪ��xml���������ռ���Ϣ������ռ�ǰ׺xml����ʽ�ذ󶨵������ռ���http://www.w3.org/XML/1998/namespace�ϡ������򼯲�����[prefix]����ֵΪ��xmlns�����������������ռ���������������ռ���Ϣ���ΪӦ�ó�����������������ռ�ǰ׺Ϊ��xmlns����Ԫ�ػ����ԡ������򼯰���[namespace attributes]�����е����������ռ���Ϣ�������Щ����xmlns=""��xmlns:name=""�������ռ���Ϣ���Ϊ����û�����������ռ䣬����ȡ������ȱʡ�����ռ�������ռ�ǰ׺���� ��Ϊ��xmlns=�������ԣ�����û�����������ռ䡣�෴����������ֻ��ȡ������ʹ��Ч��ȱʡ�����ռ䡣�ڽ������޶����ƣ�qualified name���������ռ�ǰ׺ʱ��������Ӧ������[namespace attributes]���Ա�ʹ�á���Ϊ������ϳɵ���Ϣ����Synthetic Infoset�������������Կ��ܻ᲻һ�¡�
<![if !supportLists]>8. <![endif]>[base URI] Ԫ�صĻ�׼URI��
<![if !supportLists]>9. <![endif]>[parent] �����Ե�ֵΪһ���ĵ���Ϣ���Ԫ����Ϣ�����[children]���԰�������Ϣ�
XML���壺attribute (Section 3.1, Start-Tags, End-Tags, and Empty-Element Tags)
XML�﷨: [41] Attribute (Section 3.1, Start-Tags, End-Tags, and Empty-Element Tags)
����Ԫ�ص�ÿ�������������DZ���ʽָ������ֵ�����Ǹ���DTD�õ�ȱʡ����ֵ�������������ռ�����������һ����Ӧ��������Ϣ�attribute information item����һ�����Զ�Ӧ��������Ϣ�������Ԫ����Ϣ���[attribute]�����У��������ռ�������Ӧ��������Ϣ�������Ԫ�ص�[namespace attributes]�����С�
��û��ȱʡֵ��û����ʹ��ʱ����ʽָ������ֵ������û����Ӧ��������Ϣ�
������Ϣ������������ԣ�property��[��ע//ע������attribute��property]��
<![if !supportLists]>1. <![endif]>[namespace name] ���ԣ�attribute��[��ע//���뱾��Ϣ���Ӧ�����ԣ���ͬ��]�������ռ���������еĻ��������ڲ������κ������ռ�����ԣ�attribute���������ԣ�property��û��ֵ��no value����
<![if !supportLists]>2. <![endif]>[local name] ���������ڲ�����local part���������ԣ�property�����������ռ�ǰ׺��ð�š�
<![if !supportLists]>3. <![endif]>[prefix] ��������attribute name���������ռ�ǰ׺�����ڲ����������ռ�ǰ׺����������attribute name���������ԣ�property��û��ֵ��no value����ע�⣺֧�������ռ��Ӧ�ó���Ӧʹ�������ռ��������������ռ�ǰ׺����ʶ���ԡ�
<![if !supportLists]>4. <![endif]>[normalized value] ��񻯺������ֵ��attribute value�����μ�3.3.3 Attribute-Value Normalization [XML]����
<![if !supportLists]>5. <![endif]>[specified] �����ԣ�property��Ϊһ����ǣ�flag��������ʾ����ֵ��attribute value������Ԫ�ص��ױ�ǩ�б���ʽָ���ģ�����ȡ��DTD�е�ȱʡֵ��
<![if !supportLists]>6. <![endif]>[attribute type] ���ԣ�attribute�������͡������ԣ�property���ĺϷ�ֵ������ID��IDREF��IDREFS��ENTITY��ENTITIES��NMTOKEN��NMTOKENS��NOTATION��CDATA��ENUMERATION������û��������Ԫ�أ�������û��ֵ��no value���������δ���������������ĵ���Ϣ���[all declarations processed]����Ϊfalse�������ܻ���δ�������������������Ե�ֵΪδ֪��unknown����Ӧ�ó���Ӧ��û��ֵ��no value����δ֪��unknown����ΪCDATAֵ���Դ��������ԣ�property����ֵ��������ֵ��attribute value����Ч�Ե�Ӱ�졣
<![if !supportLists]>7. <![endif]>[references] ���[attribute type]���Ե�ֵΪID��NMTOKEN��NMTOKENS��CDATA��ENUMERATION��������û��ֵ��no value�������[attribute type]���Ե�ֵΪδ֪��unknown���������Ե�ֵҲΪδ֪��unknown��������Ҳ����˵�������������ΪIDREF��IDREFS��ENTITY��ENTITIES��NOTATION���������Ե�ֵ��һ�������б����������б���������ֵ��attribute value�����õ���Ԫ����Ϣ�����ǽ���ʵ����Ϣ������ʽ��Ϣ���������ǵij��ִ���Ϊ�򣩡��������ֵ��attribute value�����﷨��Ч�������ԣ�property��û��ֵ��no value������������������±����ԣ�property��û��ֵ��no value��������ֵ��property��Ϊδ֪��unknown��������ȡ��һ��ֵҪ���ĵ���Ϣ���[all declarations processed]������true����false����[attribute type]���Ե�ֵΪIDREF��IDREFS������ij�������õ�IDû����ID���ԣ�ID attribute��ֵ�У��ڵ�ǰ�ĵ���Χ�ڣ����ֹ���[attribute type]���Ե�ֵΪENTITY��ENTITIES��NOTATION������û�ж�����Щʵ����ʽ��notation�������������[attribute type]���Ե�ֵ��IDREF��IDREFS������ij�������õ�ID�ڶ��ID����ֵ���ڵ�ǰ�ĵ���Χ�ڣ��г��֣�����[attribute type]���Ե�ֵ��NOTATION�����Ҹñ�ǣ�notation�������������������û��ֵ��no value����
<![if !supportLists]>8. <![endif]>[owner element] �����Ե�ֵΪһ��Ԫ����Ϣ�����[attribute]���԰�������Ϣ�
XML����: processing instruction (Section 2.6, Processing Instructions)
XML�﷨: [16] PI (Section 2.6, Processing Instructions)
�ĵ��е�ÿ������ָ�processing instruction�����PI������һ����Ӧ��PI��Ϣ�processing instruction inforamiton item����ע�⣺XML������XML declaration�����ı�������text declaration���������ⲿ�ѽ���ʵ�壩�����ڴ���ָ�PI�����롣
PI��Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[target] �����Ե�ֵΪһ���ַ�������ʾPI��Ŀ�꣨PI Target����
<![if !supportLists]>2. <![endif]>[content] �����Ե�ֵΪһ���ַ�������ʾPI�����ݣ�������PIĿ���PIĿ���Ŀհף������PIû�����ݣ������Ե�ֵΪһ�����ַ�����empty string����
<![if !supportLists]>3. <![endif]>[base URI] PI�Ļ�׼URI��ע�⣺�ڽ�һ����Ϣ�����л�Ϊһ��XML�ĵ�ʱ��Ô��λ����߲��ⲿʵ���е���ЩPI�Ļ�׼URI�޷��õ���������Ϊû���������﷨��
<![if !supportLists]>4. <![endif]>[notation] �����Ե�ֵΪһ����ʽ��Ϣ����notation information item��������[name]����ֵ�뱾��Ϣ���[target]����ֵ��ͬ������ø�ʽ��notation��δ�������򱻶��������������û��ֵ��no value���������δ���������������ĵ���Ϣ���[all declarations processed]����Ϊfalse�������ܻ���δ�������������������Ե�ֵΪδ֪��unknown����
<![if !supportLists]>5. <![endif]>[parent] �����Ե�ֵΪһ���ĵ���Ϣ�Ԫ����Ϣ����ĵ�����������Ϣ�����[children]���԰�������Ϣ�
XML����: Section 4.4.3, Included If Validating
XML������ͨ������һ��δչ��ʵ��������Ϣ�unexpanded entity reference information item����������������û��չ��ij���ⲿ�ѽ���ʵ�壨external parsed entity����������Ԫ�������г��ֵ�ÿ����δչ���Ķ��ⲿһ��ʵ������ã���һ����Ӧ��δչ��ʵ��������Ϣ�����Ҫ��ȡ�����ⲿһ��ʵ���XML������������������֤�Ļ�������֤�ģ�������Ϊ��Ч���ĵ���valid document����������Ϣ�
δչ��ʵ��������Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[name] ������ʵ������ơ�
<![if !supportLists]>2. <![endif]>[system identifier] ʵ���ϵͳ��ʶ����system identifier���������ϵͳ��ʶ������ʵ�������и�����ϵͳ��ʶ����һ���ģ�XML������δ��������URIת�崦�������û�й��ڸ�ʵ���������������û��ֵ��no value���������δ���������������ĵ���Ϣ���[all declarations processed]����Ϊfalse�������ܻ���δ�������������������Ե�ֵΪδ֪��unknown����
<![if !supportLists]>3. <![endif]>[public identifier] ��񻯣�����4.2.2 External Entities [XML]�еĹ���[��ע//���õ����ո��ַ���#x20���滻���еĿհ״�����ȥ������ǰ���հ׺���β�հ�]�����ʵ��Ĺ�����ʶ����public identifier�������û�й��ڸ�ʵ���������������ʵ����������ʵ��������û�й�����ʶ����������û��ֵ��no value���������δ���������������ĵ���Ϣ���[all declarations processed]����Ϊfalse�������ܻ���δ�������������������Ե�ֵΪδ֪��unknown����
<![if !supportLists]>4. <![endif]>[declaration base URI] �ڽ���ϵͳ��ʶ����system identifier��ʱӦ�����Ļ�׼URI��Ҳ���ǰ�����ʵ�����������Դ�Ļ�׼URI�������[system identifier]����û��ֵ��no value��������ֵΪδ֪��unknown����������Ҳû��ֵ��no value��������ֵΪδ֪��unknown����
<![if !supportLists]>5. <![endif]>[parent] ��������ֵΪһ��Ԫ����Ϣ�����[children]���԰�������Ϣ�
XML�﷨: [2] Char (Section 2.2, Characters)
�ĵ��г��ֵ�ÿ�������ַ���data character�����������ַ����û���CDATA���е��ַ�������һ����Ӧ���ַ���Ϣ�character information item����
ÿ���ַ����߼��϶��Ƿֿ�����Ϣ���XMLӦ�ó�����Ը�����Ҫ���ɵؽ��ַ���֯�ɸ���Ŀ顣
�ַ���Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[character code] �ַ���Ӧ��ISO 10646�ַ����루��Χ��0��#x10FFFF�����������Χ�ڵ�ֵ�������ǺϷ���XML�ַ���������
<![if !supportLists]>2. <![endif]>[element content whitespace] �����Ե�ֵΪһ����������������һ���ַ��Ƿ���Ԫ�����ݣ��μ�[XML]��2.10 "White Space Handling"���еĿհף�white space����ע�⣺����֤��XML��������validating XML processor�������ṩ�����Ϣ�����������Ԫ��δ��������������Σ�������û��ֵ��no value���������δ���������������ĵ���Ϣ���[all declarations processed]����Ϊfalse�������ܻ���δ�������������������Ե�ֵΪδ֪��unknown�������ַ����ǿհ׵�����£���������Ϊfalse��
<![if !supportLists]>3. <![endif]>[parent] ��������ֵΪһ��Ԫ����Ϣ�����[children]���԰�������Ϣ�
XML����: comment (Section 2.5, Comments)
XML�﷨: [15] Comment (Section 2.5, Comments)
Ôʼ�ĵ��е�ÿ��������DTD�еģ�XMLע�Ͷ���һ����Ӧ��ע����Ϣ�comemnt information item����
ע����Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[content] �����Ե�ֵΪһ���ַ���������ʾע�͵����ݡ�
<![if !supportLists]>2. <![endif]>[parent] �����Ե�ֵΪһ���ĵ���Ϣ���Ԫ����Ϣ�����[children]���԰�������Ϣ�
XML����: document type declaration (section 2.8, Prolog and Document Type Declaration)
XML�﷨: [28] doctypedecl (section 2.8, Prolog and Document Type Declaration)
���XML�ĵ����ĵ�����������document type declaration��������Ϣ���а���һ���ĵ�����������Ϣ�document type declaration information item����ע�⣺ʵ��͸�ʽ��notation�����ĵ���Ϣ������ԣ��������ĵ�����������Ϣ������ԡ�
�ĵ�����������Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[system identifier] �ⲿ�Ӽ���ϵͳ��ʶ����system identifier���������ϵͳ��ʶ������DOCTYPE�����и�����ϵͳ��ʶ����һ���ģ�XML������δ��������URIת�崦�������û���ⲿ�Ӽ���������û��ֵ��no value����
<![if !supportLists]>2. <![endif]>[public identifier] ��񻯣�����4.2.2 External Entities [XML]�еĹ���������ⲿʵ��Ĺ�����ʶ����public identifier�������û���ⲿʵ�壬�������ⲿʵ�嵫û�й�����ʶ����������û��ֵ��no value����
<![if !supportLists]>3. <![endif]>[children] һ��PI��Ϣ���������б����������б��������г�����DTD�е�PI����������Ôʼ�ĵ��еij��ִ���Ϊ�ò£©¡ï¿½ï¿½Ú²ï¿½ï¿½Ó¼ï¿½ï¿½Ðµï¿½PI��ʾ��ǰ�棬�ⲿ�Ӽ��е�PI��ʾ�ĺ��档
<![if !supportLists]>4. <![endif]>[parent] �����Ե�ֵΪ�ĵ���Ϣ�
XML����: entity (section 4, Physical Structures)
XML�﷨: [71] GEDecl (section 4.2, Entities)
��DTD��������ÿ���ǽ���һ��ʵ�壨unparsed general entity��[��ע//�ǽ���ʵ��ֻ��һ�֣����ⲿ�ǽ���һ��ʵ�壨external unparsed general entity��]����һ���ǽ���ʵ����Ϣ�Unparsed Entity Information Item����
�ǽ���ʵ����Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[name] ʵ������ơ�
<![if !supportLists]>2. <![endif]>[system identifier] ʵ���ϵͳ��ʶ���������ϵͳ��ʶ������ʵ�������и�����ϵͳ��ʶ����һ���ģ�XML������δ��������URIת�崦����
<![if !supportLists]>3. <![endif]>[public identifier] ��񻯣�����4.2.2 External Entities [XML]�еĹ��������ʵ��Ĺ�����ʶ�������ʵ��û�й�����ʶ����������û��ֵ��no value����
<![if !supportLists]>4. <![endif]>[declaration base URI] �ڽ���ϵͳ��ʶ��ʱӦ���յĻ�׼URI��Ҳ���ǰ�����ʵ�����������Դ�Ļ�׼URI����
<![if !supportLists]>5. <![endif]>[notation name] ʵ���Ӧ�ĸ�ʽ���ƣ�notation name����
<![if !supportLists]>6. <![endif]>[notation] �����Ե�ֵΪһ����ʽ��Ϣ��������[name]����ֵ�ͱ���Ϣ���[notation name]����ֵ��ͬ���������ʽ��notation��δ��������������Σ�������û��ֵ��no value���������δ�������������ĵ���Ϣ���[all declarations processed]����Ϊfalse�������ܻ���δ�������������������Ե�ֵΪδ֪��unknown����
XML����: notation (section 4.7, Notations)
XML�﷨: [82] NotationDecl (section 4.7, Notations)
��DTD��������ÿ����ʽ��notation������һ����ʽ��Ϣ�notation information item����
��ʽ��Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[name] ��ʽ�����ơ�
<![if !supportLists]>2. <![endif]>[system identifier] ��ʽ��ϵͳ��ʶ����system identifier���������ϵͳ��ʶ�����ڸ�ʽ�����и�����ϵͳ��ʶ����һ���ģ�XML������δ��������URIת�崦�������û�и�����ʽ��ϵͳ��ʶ����������û��ֵ��no value����
<![if !supportLists]>3. <![endif]>[public identifier] ��񻯣�����4.2.2 External Entities [XML]�еĹ�������ĸ�ʽ�Ĺ�����ʶ����public identifier���������ʽû�й�����ʶ����������û��ֵ��no value����
<![if !supportLists]>4. <![endif]>[declaration base URI] �ڽ���ϵͳ��ʶ����system identifier��ʱӦ���յĻ�׼URI��Ҳ���ǰ����ø�ʽ����������Դ�Ļ�׼URI����
ÿ��Ԫ�ض�Ӧ��Ԫ����Ϣ���һ��[in-scope namespaces]���ԣ������ڸ�Ԫ�ط�Χ����Ч��ÿ�������ռ�����������ж���һ����Ӧ�������ռ���Ϣ�namespace information item��[��ע//ע�⣺�������ڸ�Ԫ�ط�Χ����Ч��ÿ�������ռ䶼��ֻ��һ�������ռ���Ϣ����磬����ڸ�Ԫ�ط�Χ����������ͬ�������ռ�ǰ׺�󶨵�ͬһ�������ռ��ϣ��������������ռ���Ϣ����Ƿֱ��Ӧ���������󶨡���ˣ��ϸ��˵���Ǹ�Ԫ�ط�Χ����Ч��ÿ�������ռ����Ӧһ�������ռ���Ϣ�]��
�����ռ���Ϣ������������ԣ�
<![if !supportLists]>1. <![endif]>[prefix] �����ռ��ǰ׺�����﷨��˵�������ԣ�property����ֵΪ��������attribute name��[��ע//�������������ռ���Ǹ����Ե�������]��λ��ǰ׺��xmlns:����IJ��֡����������Ϊ��xmlns����������ȱʡ�����ռ䣩��������û��ֵ��no value����
<![if !supportLists]>2. <![endif]>[namespace name] �����ռ�ǰ׺��Ӧ�������ռ�����namespace name����
��Ϣ������;�����ṩһ�鶨�壬��ˣ�һ�����Ƕ���Щʹ������Щ����Ĺ淶[��ע//����SOAP��OWL��]���Եģ������Ƕ���Щ�淶��ʵ�ֶ��Եġ�
������XML��Ϣ���Ĺ淶���룺
<![if !supportLists]>�� <![endif]>ָ����Щ��Ϣ������Զ���ʵ�ָù淶�DZ���ġ�����һ���ӵض���Щʵ�ָù淶�Ĵ�����ʩ����һ��������
<![if !supportLists]>�� <![endif]>ָ����δ�����Щ�DZ������Ϣ������ԣ����磬���Խ�����Ô�ⲻ���ش�������һ�����׶Σ���
<![if !supportLists]>�� <![endif]>��¼����Ҫ��XML�ĵ��ṩ������Ϣ��û�ж������Ϣ��
<![if !supportLists]>�� <![endif]>��¼��Щ�÷�����Ϣ���Ķ��岻ͬ���������Ӧ������ģ���
���ij���淶��������һ�����ڲ�һ�µ���Ϣ�����μ��ϳɵ���Ϣ�����֣���������������ν����Щ��һ�£����������л���Ϣ��ʱ����ȥ����
ISO (International Organization for Standardization). ISO/IEC 10646-1993 (E). Information technology -- Universal Multiple-Octet Coded Character Set (UCS) -- Part 1: Architecture and Basic Multilingual Plane. [Geneva]: International Organization for Standardization, 1993 (plus amendments AM 1 through AM 7).
Namespaces in XML, W3C, eds. Tim
Bray, Dave Hollander, Andrew Layman. 14 January 1999. Available at http://www.w3.org/TR/REC-xml-names/
.
Namespaces in XML 1.1, W3C, eds. Tim Bray, Dave Hollander, Andrew Layman, Richard Tobin. 4
February 2004. Available at http://www.w3.org/TR/xml-names11
.
Key words for use in RFCs to Indicate Requirement Levels, ed. S. Bradner. March 1997. Available at http://www.ietf.org/rfc/rfc2119.txt
.
Extensible Markup Language (XML) 1.0 (Second Edition), W3C, eds. Tim Bray, Jean Paoli, C.M. Sperberg-McQueen,
Eve Maler. 6 October 2000. Available at http://www.w3.org/TR/REC-xml
.
Extensible Markup Language (XML) 1.1, W3C, eds. Tim Bray, Jean Paoli, C.M. Sperberg-McQueen, Eve Maler, John
Cowan, François Yergeau. 4 February 2004. Available at http://www.w3.org/TR/xml11
.
XML Base, W3C,
ed. Jonathan Marsh. February 2000. Available at http://www.w3.org/TR/xmlbase
.
Document Object Model (DOM) Level 1 Specification, W3C, eds. Vidur Apparao, Steve Byrne, Mike Champion, et
al. 1 October 1998. Available at http://www.w3.org/TR/REC-DOM-Level-1/
.
XPointer-Information Set Liaison Statement, W3C, ed. Steven J. DeRose. 24 February 1999. Available at http://www.w3.org/TR/NOTE-xptr-infoset-liaison
.
Results of W3C XML Plenary Ballot on relative URI References in namespace
declarations, 3-17 July 2000, W3C, eds.
Dave Hollander, C. M. Sperberg-McQueen. 6 September 2000. Available at http://www.w3.org/2000/09/xppa
.
RDF Schema for the XML Information Set, W3C, ed. Richard Tobin. 6 April 2001. Available at http://www.w3.org/TR/xml-infoset-rdfs
.
����XML�Ƽ���׼[XML]��Ҫ���ĵ���XML���﷨������Ҳ��XML��������XML Processor������һЩ�����ͨ������reporting requirements����
ͨ��������������������ڱ��淶�����۷�Χ�����ĵ���Ϣ��XML���ĵ���Ϣͨ�������������ѱ��ۺϵ����淶�С������е����ֱ�ʾ������XML 1.0�Ƽ���׼�е����ڶ��䣨section����
<![if !supportLists]>1. <![endif]>XML������������Ӧ�ó����ṩ�ĵ������зDZ�ǣ�markup�����ֵ��ַ�(2.10)��
<![if !supportLists]>2. <![endif]>����֤��XML������������Ӧ�ó���ͨ���ĵ�����Щ�ַ������dz�����Ԫ�������еĿհ�(2.10)��
<![if !supportLists]>3. <![endif]>XML�����������ڽ��н�������line-ends�����ݸ�Ӧ�ó���֮ǰ�����ǹ��ΪLF��2.11����
<![if !supportLists]>4. <![endif]>XML�����������ڽ�����ֵ���ݸ�Ӧ�ó���֮ǰ����3.3.3���еĹ�������ǽ��й�񻯡�
<![if !supportLists]>5. <![endif]>XML���������뽫�������ĸ�ʽ�����ƺ��ⲿ��ʶ����ϵͳ��ʶ����������ʶ�������ߣ����ݸ�Ӧ�ó���(4.7)��
<![if !supportLists]>6. <![endif]>��һ���ǽ���ʵ������Ƴ�����ENTITY��ENTITIES����ֵ�У������DZ���ʽָ�����ǻ��ȱʡֵ����XML������������Ӧ�ó����ṩ���ʵ����Լ����ĸ�ʽ��notation�������ơ�ϵͳ��ʶ���͹�����ʶ��������еĻ�����4.6��4.7����
<![if !supportLists]>7. <![endif]>XML���������뽫����PI���ݸ�Ӧ�ó���2.6����
<![if !supportLists]>8. <![endif]>���һ��XML������������֤�ģ�û�а�����include���ⲿ�ѽ���ʵ����滻�ı������滻ʵ�����ã�������������Ӧ�ó���ͨ������ʶ��û�ж�ȡ���ʵ�壨4.4.3����
<![if !supportLists]>9. <![endif]>����֤��XML���������������include��ʵ����滻�ı������滻ʵ�����ã���5.2����
<![if !supportLists]>10. <![endif]>���ij��Ԫ�����͵�һ��������ȱʡֵ�������ڸ�Ԫ�ص��ױ�ǩ��û��Ϊ���������ʽ��ָ������ֵ����XML����������Ϊ��������ṩȱʡֵ��
�������ʾ��XML�ĵ���
<?xml version="1.0"?>
<msg:message doc:date="19990421"
xmlns:doc=http://doc.example.org/namespaces/doc
xmlns:msg=http://message.example.org/
>Phone home!</msg:message>
���XML�ĵ�����Ϣ������������Ϣ�
<![if !supportLists]>�� <![endif]>һ���ĵ���Ϣ����
<![if !supportLists]>��
<![endif]>һ��Ԫ����Ϣ��������[namespace name]����Ϊ"http://message.example.org/"��[local part]����Ϊ"message"��[prefix]����Ϊ"msg
"��
<![if !supportLists]>��
<![endif]>һ��������Ϣ��������[namespace name]����Ϊ"
http://doc.example.org/namespaces/doc
"��[local part]����Ϊ"date
"��[prefix]����Ϊ"doc
"��
<![if !supportLists]>��
<![endif]>���������ռ���Ϣ�������Ƿֱ��Ӧ�������ռ�http://www.w3.org/XML/1998/namespace
��http://doc.example.org/namespaces/doc��http://message.example.org/
namespaces��
<![if !supportLists]>�� <![endif]>����������Ϣ�������Ƿֱ��Ӧ�����������ռ����ԡ�
<![if !supportLists]>�� <![endif]>ʮһ���ַ���Ϣ�������Ƿֱ��Ӧ���ַ����ݣ���Phone home!�����е�ʮһ���ַ���
��ǰ�汾��XML��Ϣ��������������Ϣ�����б�������ͼ����������©����
<![if !supportLists]>1. <![endif]>��DTD��ELEMENT�����ж����Ԫ������ģ�ͣ�content model����
<![if !supportLists]>2. <![endif]>ATTLIST���������������ķ���ʹ���
<![if !supportLists]>3. <![endif]>�ĵ����͵����ơ�
<![if !supportLists]>4. <![endif]>�ĵ�Ԫ������Ŀհף�white space����
<![if !supportLists]>5. <![endif]>����PIĿ������target name����Ŀհס�
<![if !supportLists]>6. <![endif]>�ַ��Ƿ������ַ����ã�character reference������ʽ���ֵġ�
<![if !supportLists]>7. <![endif]>��Ԫ�ص�������ʽ����<foo/>��<foo></foo> [��ע//����foo�ĵ���뺬�壬��μ�RFC 3092]��֮�������
<![if !supportLists]>8. <![endif]>�ױ�ǩ��start-tag����β��ǩ��end-tag��֮��Ŀհף�����ֵ���������Ŀհ׳��⣩��
<![if !supportLists]>9. <![endif]>����ֹ��CR��CR-LF��LF֮�������
<![if !supportLists]>10. <![endif]>�ױ�ǩ�����Եij��ִ���
<![if !supportLists]>11. <![endif]>DTD�������ij��ִ���
<![if !supportLists]>12. <![endif]>DTD�������Σ�conditional sections���ı߽磨boundaries��[��ע//��һ��DTDƬ���Ƿ����������Σ�conditional section��]��
<![if !supportLists]>13. <![endif]>DTD�в���ʵ��ı߽硣
<![if !supportLists]>14. <![endif]>DTD�е�ע�ͣ�comment����
<![if !supportLists]>15. <![endif]>������λ�ã��ڲ�ʵ�塢�ⲿʵ�廹�Dz���ʵ�壩��
<![if !supportLists]>16. <![endif]>���б����Ե�������������Щ��IGNORE��������ģ����Լ���Ϊ��ǰ����ͬ���������������Ե�ʵ�������������
<![if !supportLists]>17. <![endif]>��������ֵ�������ǵ����Ż���˫���š�
<![if !supportLists]>18. <![endif]>һ���ѽ���ʵ�壨general parsed entity���ı߽���
<![if !supportLists]>19. <![endif]>CDATA�εı߽���
<![if !supportLists]>20. <![endif]>��DTD��Ϊ����������ȱʡֵ��
��ҪXML��Ϣ������ʽ����������μ�RDF Schema for the XML Information Set��