For faster navigation, this Iframe is preloading the Wikiwand page for XML信息集.

XML信息集

XML訊息集XML Information Set,縮寫XML Infoset)是W3C規範(specification),該規範使用一套訊息項(information item)來描述XML文檔的一個抽象的資料模型。[1] XML訊息集這個規範意圖用於其他規範中以引用良好建構的XML文檔英语Well-formed XML document中的訊息。

一個XML文檔,只要是良好建構的並且滿足XML命名空間的約束,就存在有訊息集。一個XML文檔存在訊息集並不需要該XML文檔有效。

訊息集可以包含的總共11種不同類型的訊息項。

  1. 文檔訊息項 (總是存在)Document Information Item
  2. 元素訊息項(Element Information Item)
  3. 屬性訊息項(Attribute Information Item)
  4. PI訊息項(Processing Instruction Information Item)
  5. 未擴展實體引用訊息項(Unexpanded Entity Reference Information Item)
  6. 字元訊息項(Character Information Item)
  7. 注釋訊息項(Comment Information Item)
  8. 文檔型別宣告訊息項(The Document Type Declaration Information Item)
  9. 非解析實體訊息項(Unparsed Entity Information Item)
  10. 格式訊息項(Notation Information Item)
  11. 命名空間訊息項(Namespace Information Item)

訊息集推薦標準第二版於2004年2月4日被採納。

信息集补充(Infoset Augmentation)

[编辑]

信息集补充或信息集修改是指在Schema合法性检查期间对信息集的修改的过程,例如,添加缺省的属性。补充后的信息集被称为post-schema-validation infoset(简称PSVI)。[2]

信息集补充是存在争议的,有人认为它破坏了模块化,并容易导致互操作性问题。这是由于是否进行了信息集补充,会使应用程序得到不同的信息。 [3]

XML Schema支持信息集补充,而RELAX NG并不支持信息集补充。

参见

[编辑]

XML信息集的实例包括:

参考文献

[编辑]
  1. ^ W3C XML Infoset
  2. ^ XML Schema 1.1 Part 1: Structures. [2009-11-10]. (原始内容存档于2022-05-14). 
  3. ^ RELAX NG and W3C XML Schema页面存档备份,存于互联网档案馆), James Clark, 4 Jun 2002

外部链接

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
XML信息集
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?