¥iÂX®i¼Ð°O»y¨¥¡]XML¡^1.0¡]²Ä¤Gª©¡^
W3C «Øij 2000¦~10¤ë6¤é
¡@
- ¥»ª©¥»:
- http://www.w3.org/TR/2000/REC-xml-20001006
¡]XHTML ®æ¦¡¡AXML ®æ¦¡¡APDF ®æ¦¡¡A¥Î¤£¦PÃC¦â¼Ð¥Ü¼W§R§ïªº
XHTML
¼f¾\ª©¡^
- ³Ì·sª©¥»:
- http://www.w3.org/TR/REC-xml
- ¥H«eª©¥»:
- http://www.w3.org/TR/2000/WD-xml-2e-20000814
-
- http://www.w3.org/TR/PR-xml-971208
- ½sªÌ:
- Tim Bray¡ATextuality and Netscape mailto:tbray@textuality.com
- Jean Paoli¡AMicrosoft mailto:jeanpa@microsoft.com
- C. M. Sperberg-McQueen¡AUniversity of Illinois at Chicago and Text Encoding
Initiative mailto:cmsmcq@uic.edu
- Eve Maler, Sun Microsystems, Inc. mailto:elm@east.sun.com - ²Ä¤Gª©
ºKn
¥»¤åÀɧ¹¾ã¦a´yz¤F¥iÂX®i¼Ð°O»y¨¥¡]Extensible Markup Language¡AXML¡^¡A¥¦¬O¼Ðã³q¥Î¼Ð°O»y¨¥¡]Standard Generic
Markup Language¡ASGML¡^ªº¤@Ó¤l¶°¡C¨ä¥Øªº¦b¤_¨Ï±o¦b Web ¤W¯à¥H²{¦³¶W¤å¥»¼Ð°O»y¨¥¡]Hypertext Markup
Language¡AHTML¡^ªº¨Ï¥Î¤è¦¡´£¨Ñ¡A±µ¦¬©M³B²z³q¥Îªº SGML ¦¨¬°¥i¯à¡CXML ªº³]p¬J¦Ò¼{¤F¹ê²{ªº¤è«K©Ê¡A¦P®É¤]ÅU¤Î¤FÉO SGML ©M HTML
ªº¤¬¾Þ§@©Ê¡C
¥»¤åÀɪºª¬ºA
¥»¤åÀɤw¥Ñ W3C ²Õ´¦¨û©M¨ä¥L¬ÛÃö¦U¤è¼f¾\¡A¦}¤w³Q²Õ´²z¨Æ§å㬰 W3C
«Øij¡C³o¬O¤@¥÷éwªº¤åÀÉ¡A¥i¥H¥Î§@°Ñ¦Ò§÷®Æ¡A¤]¥i¥H§@¬°¨ä¥L¤åÀɪº¥¿¦¡°Ñ¦Ò¤åÄm¡CW3C
¦b«Øij¨î©w¹Lµ{¤¤ªº§@¥Î¬O§l¤Þ¹ï¥»«Øijªºª`·N¦}«P¶i¥¦ªº¼sªx¨Ï¥Î¡C³o¯à¼W±jWebªº¥\¯à©M¤¬¾Þ§@©Ê¡C
¥»¤åÀɳW©w¤F¤@Ïú¥Î¤_ World Wide Web ªº»yªk¡A¦¹»yªk¬O³q¹L¨ú¤@Ó·~¤w¦s¦b¦}¤w¼sªx¨Ï¥Îªº¤å¥»³B²z°ê»Ú¼Ðã¡]¼Ðã³q¥Î¼Ð°O»y¨¥¡A¸g¼W¸É©M§ó¥¿ªº
ISO 8879:1986(E)¡^ªº¤l¶°¦Ó³Ð«Øªº¡C¥¦¬O W3C XML ¦æ°Ê²Õ¡]XML Activity¡^ªº¤u§@¦¨ªG¡AÃö¤_ XML ¦æ°Ê²Õªº¸Ô²Ó«H®§¥i¥H¦b http://www.w3.org/XML §ä¨ì¡C^¤åª©¬O°ß¤@ªº¥¿¦¡ª©¡C¥»¤åÀɪºÂ½Ä¶¨£ http://www.w3.org/XML/#trans¡C¦b http://www.w3.org/TR ¥i¥H§ä¨ì²{¦³ W3C
«Øij©M¨ä¥L§Þ³N¤åÀɪº¤@Ó¦Cªí¡C
XML 1.0 ²Ä¤Gª©¤£¬O XML ªº¤@Ó·sª©¥»¡]1998 ¦~ 2 ¤ë 10
¤éº¦¸µoªí¡^¡F¥¦¥u¬O¬°¤F¤è«KŪªÌ¡A¦}¤J¤F²Ä¤@ª©°É»~ªí¤¤«ü¥Xªº¿ù»~©Mקï¡]¦b http://www.w3.org/XML/xml-19980210-errata¡^¡C
¥»²Ä¤Gª©ªº°É»~ªí¦b http://www.w3.org/XML/xml-V10-2e-errata¡C
½Ð±N¥»¤åÀɤ¤ªº¿ù»~³ø§iµ¹ xml-editor@w3.org¡C¥i¥H¦b¦¹§ä¨ì¬ÛÃöªº¦sÀÉ¡C
ª`¡G
C. M. Sperberg-McQueen ¦b²Ä¤@ª©µoªí¤§¦Z¨Ñ¾¤§³B¤w¦³ÅܤơC¥L²{¦b¨Ñ¾¤_ W3C¡A¥i¥H³q¹L cmsmcq@w3.org ©M¥LÁp¨t¡C
¥iÂX®i¼Ð°O»y¨¥¡AÁY¼g¬° XML¡A´yz¤F¤@ÃþºÙ¬° XML
¤å¥óªº¼ÆÕu¹ï¶H¡A¦P®É¤]³¡¤À¦a´yz¤F³B²z³o¨Ç¼ÆÕu¹ï¶HªºpºâÉóµ{§Çªº°Ê§@¡CXML ¬O SGML¡]¼Ðã³q¥Î¼Ð°O»y¨¥ [ISO
8879]¡^°w¹ï¯S©wÀ³¥Î»â°ìªº¤@Ó¤l¶°¡A©ÎªÌ»¡¬O SGML ªº¤@Ïú¨ü§Î¦¡¡C®ÚÕu©w¸q¡AXML ¤å¥ó¬O¦X¥G³WSªº SGML ¤å¥ó¡C
XML ¤å¥ó¥ÑºÙ¬°¹êÊ^ªº¦sÀx³æ¤¸²Õ¦¨¡A¹êÊ^¥i¥H¥]§t¤wªR¡]parsed¡^¼ÆÕu©Î¥¼ªR¡]unparsed¡^¼ÆÕu¡C¤wªR¼ÆÕu¥Ñ¦r²Å²Õ¦¨¡A¨ä¤¤¤@¨Ç¦r²Å²Õ¦¨¦r²Å¼ÆÕu¡A¥t¤@¨Ç¦r²Å²Õ¦¨¼Ð°O¡C¼Ð°O¤¤¥]§t¤F¹ï¤å¥ó¦sÀx®æ¦¡¡]storage
layout¡^©MÅÞ¿èµ²ÌÛªº´yz¡CXML ´£¨Ñ¤F¤@ÏúÉó¨î¥Î¤_¬ù§ô¦sÀx®æ¦¡©MÅÞ¿èµ²ÌÛ¡C
[©w¸q¡GºÙ¬° XML ³B²z¾¹ªº³n¥ó¼Ò¶ô¥Î¤_Ū¨ú XML ¤å¥ó¡A¦s¨ú¨ä¤¤ªº¤º®e©Mµ²ÌÛ¡C]
[©w¸q¡GXML ³B²z¾¹³Q³]·Q¬°¬O¬°¥t¤@ÓºÙ¬°À³¥Îªº¼Ò¶ô§@³B²z¡C] ¥»³WS±q XML ³B²z¾¹À³¦p¦óŪ¨ú XML
¼ÆÕu¥H¤ÎÀ³¦VÀ³¥Î´£¨Ñþ¨Ç«H®§ªº³o¨âӤ象A´yz¤Fn¨D XML ³B²z¾¹§@¥Xªº°Ê§@¡C
XML ¥Ñ XML ¤u§@²Õ¡]ì¥ýªº SGML ½s¿è¼f¬d©eû·|¡^¶}µo¡A¦¹¤u§@²Õ¥Ñ World Wide Web Consortium (W3C) ¦b
1996 ¦~¥D«ù¦¨¥ß¡C¤u§@²Õ¥Ñ Sun Microsystems ªº Jon Bosak t³d¡A¦P¼Ë¥Ñ W3C ²Õ´ªº XML SIG (Special
Interest Group)¡]ì¥ýªº SGML ¤u§@²Õ¡^¿nÌå°ÑÉO¤F XML ¤u§@²Õªº¤u§@¡CXML ¤u§@²Õªº¦¨û¦bªþ¿ý¤¤µ¹¥X¡C¤u§@²ÕÉO W3C ªºÁp¨t¤H¬O
Dan Connolly¡C
XML ªº³]p¥Ø¼Ð¦p¤U¡G
- XML À³¸Ó¥i¥Hª½±µ¦b¦]¯SÊI¡]Internet¡^¤W¨Ï¥Î¡C
- XML À³¸Ó¤ä«ù¤j¶q¤£¦PªºÀ³¥Î¡C
- XML À³¸ÓÉO SGML Ý®e¡C
- ³B²z XML ¤å¥óªºµ{§ÇÀ³¸Ó®e©ö½s¼g¡C
- XML ¤¤ªº¥i¿ï¶µÀ³µL±ø¥ó¦a«O«ù³Ì¤Ö¡A²z·Qª¬ªp¤UÀ³¸Ó¬° 0 Ó¡C
- XML ¤å¥óÀ³¸Ó¯à°÷Åý¤Hª½±µ¾\Ū¡A¦Ó¥BÀ³¸Ó¦³¨¬°÷ªº¥iŪ©Ê¡C
- XML ªº³]pÀ³§Ö³t§¹¦¨¡C
- XML ªº³]pÀ³¸Ó¬O§Î¦¡¤Æªº¡A²ϡªº¡C
- XML ¤å¥óÀ³©ö¤_³Ð«Ø¡C
- XML ¼Ð°OªºÂ²Ï¡©Ê¬O³Ì¤£«nªº³]p¥Ø¼Ð¡C
¥»³WSÉO¨ä¥L¬ÛÃöªº¼Ðã¤@°_¡]Unicode ©M ISO/IEC 10646 ©w¸q¤F¦r²Å¶°¡AInternet RFC1766 ©w¸q¤F»y¨¥ÃѧO½X¡AISO
639 ©w¸q¤F»y¨¥¦WºÙ¥N½X¡AISO 3166 ©w¸q¤F°ê®a¦WºÙ¥N½X¡^¡A´£¨Ñ¤F²z¸Ñ XML ª©¥» 1.0 ©MÌ۫جÛÀ³pºâÉó³B²zµ{§Ç©Ò»Ýªº©Ò¦³«H®§¡C
¦b§¹¾ã«O¯d©Ò¦³¤å¥»©Mªk«ßª`·N¨Æ¶µªº«e´£¤U¡A¥»ª©¥»ªº XML ³WS¥i¥H¦Û¥Ñ¤Àµo¡C
¥Î¤_´yz XML ¤å¥óªº³N»y¦b¦¹³WSªº¥¿¤å¤¤©w¸q¡C¦b³o¨Ç©w¸q¤¤¥H¤Î´yz¤@Ó XML ³B²z¾¹ªº°Ê§@®É¡A¨Ï¥Î¤F¤Uªí¤¤ªº³N»y¡G
- ¥i¥H¡]may¡^
- [©w¸q¡G¤¹³\¦X¥G³WSªº¤å¥ó©M XML ³B²z¾¹«ö©Ò´yzªº¤è¦¡¤u§@¡A¦ý¤£n¨D¥²¶·¦p¦¹¡C]
- ¥²¶·¡]must¡^
- [©w¸q¡Gn¨D¦X¥G³WSªº¤å¥ó©M XML ³B²z¾¹«ö©Ò´yzªº¤è¦¡¤u§@; §_«h¥¦Ì¥X²{¿ù»~¡C]
- ¿ù»~¡]error¡^
- [©w¸q¡G¹ï¥»³WS¤¤ªº³W«hªº¹H¤Ï¡F¨äµ²ªG¤£ÚÌ©w¡C¦X¥G³WSªº³n¥ó¥i¥HÀË´ú©M³ø§i¿ù»~¡A¦}¥i¥H±q¤¤«ìÎ`¡C]
- ÄY«¿ù»~¡]fatal error¡^
- [©w¸q¡G¦X¥G³WSªº XML
³B²z¾¹¥²¶·ÀË´ú¨ì¡A¦}¦VÀ³¥Î³ø§iªº¤@Ãþ¿ù»~¡C¦b¹J¨ìÄY«¿ù»~¤§¦Z¡A³B²z¾¹¥i¥HÄ~Äò³B²z¼ÆÕu¥Hµo²{§ó¦hªº¿ù»~¦}¥i¥H¦VÀ³¥Î³ø§i³o¨Ç¿ù»~¡C¬°¤F¤ä«ù¿ù»~ªº§ó¥¿¡A³B²z¾¹¥i¥H¦VÀ³¥Î´£¨Ñ¤å¥ó¤¤¥¼¸g³B²zªº¼ÆÕu¡]¦r²Å¼ÆÕu©M¼Ð°Oªº²V¦XÊ^¡^¡C¦ý¬O¡A¤@¥¹ÀË´ú¨ì¤@ÓÄY«¿ù»~¡A³B²z¾¹¥²¶·°±¤î¥¿±`ªº³B²z¡]¤]´N¬O»¡¡A¥¦¥²¶·°±¤î¥H¥¿±`ªº¤è¦¡¦VÀ³¥Î´£¨ÑÉO¤å¥óÅÞ¿èµ²ÌÛ¦³Ãöªº¼ÆÕu©M«H®§¡^¡C]
- ¥Ñ¨Ï¥ÎªÌ¿ï¾Ü¡]at user option¡^
- [©w¸q¡G¦X¥G³WSªº³n¥ó¥i¥H©ÎªÌ¥²¶·¡]¨ú¨M¤_¥y¤l¤¤ªº±¡ºA°Êµü¡^«ö©Ò´yzªº¤è¦¡¤u§@;
¦pªG¥¦º¡¨¬³oÓ±ø¥ó¡A¥¦¥²¶·¦P®É´£¨Ñ¨Ï¥ÎªÌ¤@Ïú¤â¬q¡A¨Ï±o¨Ï¥ÎªÌ¯à°÷±Ò¥Î©M¸T¥Î©Ò´yzªº¤u§@¤è¦¡¡C]
- ¦³®Ä©Ê¬ù§ô¡]validity constraint¡^
- [©w¸q¡GÓì¥Î¤_©Ò¦³¦³®Äªº XML
¤å¥óªº¤@Ïú³W«h¡C¹H¤Ï¦³®Ä©Ê¬ù§ôÄݤ_¿ù»~¡F¶i¦æÅçµýªº XML
³B²z¾¹¥²¶·¡A¥Ñ¨Ï¥ÎªÌ¿ï¾Ü¡A³ø§i³o¨Ç¿ù»~¡C]
- ®æ¦¡¥¿Ú̩ʬù§ô¡]well-formedness constraint¡^
- [©w¸q¡GÓì¥Î¤_©Ò¦³®æ¦¡¥¿Ú̪º XML
¤å¥óªº¤@Ïú³W«h¡C¹H¤Ï®æ¦¡¥¿Ú̩ʬù§ôÄݤ_ÄY«¿ù»~¡C]
- ¤Ç°t¡]match¡^
- [©w¸q¡G¡]¹ï¤_¦r²Å¦ê©M¦W¦r¡G¡^³Q¤ñ¸ûªº¨âÓ¦r²Å¦ê©Î¦W¦r¥²¶·§¹¥þ¬Û¦P¡C¦b ISO/IEC 10646
¤¤¦³¦hÏú¥i¯àªí¥Ü¤è¦¡ªº¦r²Å¡]¨Ò¦p¡A¬J¦³¹w©w¸q (precomposed¡^ §Î¦¡©M°ò¦r²Å (base¡^ +
Åܵ²Å§Î¦¡ªº¦r²Å¡^¥u¦b¨âÓ¦r²Å¦ê¤¤ªºªí¥Ü¤è¦¡¬Û¦P®É¤~¤Ç°t¡C¤£¶i¦æ¦r²Åªº¤j¤p¼gÂà´«¡C¡]¹ï¤_¤åªk¤¤ªº¦r²Å¦ê©M³W«h¡G¡^¦pªG¤@Ó¦r²Å¦êÄݤ_¤@Ó¤åªk²£¥Í¦¡²£¥Íªº»y¨¥¡A«h¥¦¤Ç°t³oÓ²£¥Í¦¡¡C¡]¹ï¤_¤º®e©M¤º®e¼Ò«¬¡G¡^·í¤@Ó¤¸¯À²Å¦X
"¤¸¯À¦³®Ä©Ê"¬ù§ô¤¤ªº´yz®É¡A¥¦¤Ç°t¨äÁn©ú¡C]
- ¥X¤_Ý®e©Ê¦Ò¼{¡]for compatibility¡^
- [©w¸q¡G«ü¥X¦¹¥y´yzªº XML ¯S©Ê§¹¥þ¥u¬O¬°¤F©M SGML «O«ùÝ®e ¡C]
- ¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡]for interoperability¡^
- [©w¸q¡G«ü¥X¦¹¥y¬O¤@Ó¤£¨ã¬ù§ô©Êªº«Øij¡A¥Øªº¬O¼W¥[ XML ¤å¥ó¯à³Q¦b ISO 8879 ªº
WebSGML §ï½sªþ¥ó¤§«e¤w¦³ªº SGML ³B²z¾¹³B²zªº¥i¯à©Ê¡C]
[©w¸q¡G¦pªG¤@Ó¼ÆÕu¹ï¶Hº¡¨¬¥»³WS¤¤®æ¦¡¥¿Ú̪º¤§©w¸q®É¡A¥¦¬O¤@Ó
XML ¤å¥ó¡C¤@Ӯ榡¥¿Ú̪º XML ¤å¥ó¥i¥H§ó¶i¤@¨B¬O¦³®Äªº¡A¦pªG¥¦º¡¨¬¬Y¨Ç¶i¤@¨Bªº¬ù§ôªº¸Ü¡C]
¨C¤@Ó XML ¤å¥ó³£¦³ÅÞ¿è©Mª«²zµ²ÌÛ¡Cª«²z¤W¦Ó¨¥¡A¤å¥ó¥ÑºÙ¬°¹êÊ^ªº³æ¤¸²Õ¦¨¡C¤@Ó¹êÊ^¥i¥H¤Þ¥Î¡]refer¡^¨ä¥L¹êÊ^¡A±N¥¦Ì¥]§t¦b¤å¥ó¤¤¡C¤å¥ó¶}©l¤_"®Ú¡]root¡^"©Î¤å¥ó¹êÊ^¡CÅÞ¿è¤W¦Ó¨¥¡A¤å¥ó¥ÑÁn©ú¡A¤¸¯À¡Aª`ÄÀ¡A¦r²Å¤Þ¥Î©M³B²z«ü¥O²Õ¦¨¡A©Ò¦³³o¨Ç³£¦b¤å¥ó¤¤¥ÎÅ㦡¼Ð°O«ü©ú¡CÅÞ¿è©Mª«²zµ²ÌÛ¥²¶·¦p"4.3.2 ®æ¦¡¥¿Ú̪º¤wªR¹êÊ^"¤¤©Ò´yzªº¨º¼ËÄY®æ¦a´O®M¡C
[©w¸q¡G¤@Ӥ奻¹ï¶H¬O¤@Ӯ榡¥¿Ú̪º XML ¤å¥ó¦pªG¥¦º¡¨¬¡G]
- §@¬°¤@Ó¾ãÊ^¡A¥¦¤Ç°t
document
²£¥Í¦¡¡C
- ¥¦º¡¨¬¥»³WS¤¤©w¸qªº©Ò¦³®æ¦¡¥¿Ú̩ʬù§ô¡C
- ¦¹¤å¥ó¤¤ª½±µ©Î¶¡±µ¤Þ¥Îªº¨C¤@Ó¤wªR¹êÊ^³£¬O®æ¦¡¥¿Ú̪º¡C
¤å¥ó
¤Ç°t document
²£¥Í¦¡·N¨ýµÛ¡G
- ¥¦¥]§t¤@өΦhÓ¤¸¯À¡C
- [©w¸q¡G¦³¥B¶È¦³¤@ÓºÙ¬°®Ú¡]root¡^©Î¤å¥ó¤¸¯Àªº¤¸¯À¡A¥¦¤£¥X²{¦b¨ä¥L¥ô¦ó¤¸¯Àªº¤º®e¡]content¡^¤¤¡C]
¹ï¤_¨ä¥L©Ò¦³¤¸¯À¡A¦pªG°_©l¼Ðñ¦b¥t¤@Ó¤¸¯Àªº¤º®e¤¤¡A«h¨äµ²§ô¼Ðñ¤]¦b¦P¤@¤¸¯Àªº¤º®e¤¤¡C´«¤@Ó§ó²³æªº»¡ªk¡A¥H°_©l¼Ðñ©Mµ²§ô¼Ðñ¬°¬Éªº¦UÓ¤¸¯À¡A¥²¶·ÄY®æ¦a´O®M¡C
[©w¸q¡G³o¼Ë°µªºµ²ªG¬O¡A¹ï¤_¨C¤@Ó«D®Úªº¤¸¯À C
¡A¤å¥ó¤¤¥t¦³¤@Ó¤¸¯À
P
¡AC
¦b P
ªº¤º®e¤¤¡A¦Ó¤£¦b¨ä¥L¥ô¦ó³Q P
©Ò¥]§tªº¤¸¯Àªº¤º®e¤¤¡CP
³QºÙ¬° C
ªº¤÷¤¸¯À¡]parent¡^¡A¦Ó
C
³QºÙ¬° P
ªº¤l¤¸¯À¡]child¡^¡C]
[©w¸q¡G¤@Ó¤wªR¹êÊ^¥]§t¤å¥»¡]text¡^¡A¤å¥»¬O¤@Ó¦r²Å¡]character¡^§Ç¦C¡A¥i¥Hªí¥Ü¼Ð°O©Î¦r²Å¼ÆÕu¡C]
[©w¸q¡G¤@Ó¦r²Å¬O ISO/IEC 10646 [ISO/IEC 10646]¡]©Î
[ISO/IEC
10646-2000]¡^¤¤©w¸qªº¤å¥»³Ì¤p³æ¤¸¡C¦Xªkªº¦r²Å¥]¬A¨îªí²Å¡A¦^¨®¡A´«¦æ¥H¤Î Unicode ©M ISO/IEC 10646
¤¤©w¸qªº¦Xªk¦r²Å¡C¦b¨î©w¥»¤åÀɮɡA¦bªþ¿ý A.1
¥¿¦¡°Ñ¦Ò¤åÄm¤¤¤Þ¥Îªº¼Ðã³£¬O·í®Éªº³Ì·sª©¥»¡A¦b³o¨Ç¼Ð㪺¼W¸Éª©©Î·sª©¤¤¥i¯à·|¥[¤J·sªº¦r²Å¡C¦]¦¹¡AXML ³B²z¾¹¥²¶·¯à±µ¨ü²£¥Í¦¡ Char
¤¤©Ò©w¸qS³ò¤ºªº¥ô·N¦r²Å¡C¤£´£Ò¨Ï¥Î [Unicode] 6.8 ¸`¡]©Î
[Unicode3] 3.6
¸` D21 ¡^¤¤©w¸qªº"Ý®e¦r²Å¡]compatibility characters¡^"¡C]
¦r²ÅS³ò
[2] |
Char |
::= |
#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF] |
/* °£¤F¥N¥Î¶ô¡]surrogate block¡^¡AFFFE ©M FFFF ¥H¥~ªº¥ô·N Unicode
¦r²Å¡C*/ |
±N¦r²Å¥N½X½s½X¦¨¦ì¼Ò¦¡ªºÉó¨î¦UÓ¹êÊ^¶¡¥i¯à·|¦³©Ò¤£¦P¡C©Ò¦³ªº XML ³B²z¾¹¥²¶·±µ¨ü 10646 ¤¤ªº UTF-8 ©M UTF-16
½s½X¡F¥Î¤_«ü¥X©Ò¥Î½s½X©Î«ü©w¨Ï¥Î¨ä¥L½s½XªºÉó¨î¦b¦Z±ªº"4.3.3 ¹êÊ^¤¤ªº¦r²Å½s½X"¤¤°Q½×¡C
¥»¸`¤¤©w¸q¤F¤@¨Ç¦b¤åªk¤¤¼sªx¨Ï¥Îªº²Å¸¹¡C
S
¡]ªÅ¥Õ¡^¥]¬A¤@өΦhӪŮæ¦r²Å¡]#x20¡^¡A¦^¨®¡A´«¦æ©M¨îªí²Å¡C
ªÅ¥Õ
[3] |
S |
::= |
(#x20 | #x9 | #xD | #xA)+ |
¬°¤è«K°_¨£¡A¦r²Å³Q¤À¬°¦r¥À¡A¼Æ¦r©M¨ä¥L¦r²Å¤TÃþ¡C¦r¥À¥i¥H¬O¦r¥Àªí¤¤ªº¦r¥À¡A©Î¬O¤@Óµ¸`°ò¦r²Å¡]syllabic base
character¡^¡A¤]¥i¥H¬O¤@Óªí·N¦r²Å¡C¦b"B. ¦r²Åªº¤ÀÃþ"¤¤µ¹¥X¤F¨C¤@Ãþ¦r²Åªº§¹¾ã©w¸q¡C
[©w¸q¡G¦W¦r¡]name¡^¬O¥H¦r¥À©Î¬Y¨Ç¼ÐÂI²Å¸¹¶}ÀYªº°O¸¹¡A¦Z¸ò¦r¥À¡A¼Æ¦r¡A³s¦r²Å¡A¤U¦E½u¡A«_¸¹©Î¥y¸¹¡A³o¨Ç²Å¸¹²ÎºÙ¬°©R¦W¦r²Å¡]name
character¡^¡C] ¥H "xml
" ©Î¨ä¥L¥ô¦ó¤Ç°t (('X'|'x') ('M'|'m')
('L'|'l'))
ªº¦r²Å¦ê¶}ÀYªº¦W¦r¡A³Q«O¯d¥Î¤_¥»³WSªº¦¹ª©¥»©Î¦ZÄòª©¥»ªº¼Ðã¤Æ¡C
ª`¡G
XML «Øij¤¤ªº¦W°ì [XML
Names] ½á¤©¤F¥]§t«_¸¹ªº¦W¦r¬YÏú§t¸q¡C¦]¦¹°£«D¥Î¤_¦W°ì¡AXML ¤å¥ó§@ªÌ¤£À³¸Ó¦b XML ¦W¦r¤¤¨Ï¥Î«_¸¹¡A¦ý XML
³B²z¾¹À³¸Ó±µ¨ü«_¸¹§@¬°¤@Ó©R¦W¦r²Å¡C
Nmtoken
¡]¦W¦r°O¸¹¡Aname
token¡^¬O¥ô¦ó©R¦W¦r²Åªº²V¦XÊ^¡C
¦W¦r©M°O¸¹
±`¶q¼ÆÕu¬O¥ô¦ó¥Î¤Þ¸¹¬A°_ªº¦r²Å¦ê¡A¤£¥]¬A¥Î§@©w¬É²Åªº¤Þ¸¹¡C±`¶q¥Î¤_«ü©ú¤º³¡¹êÊ^ªº¤º®e¡]EntityValue
¡^¡AÄÝ©ÊÈ¡]AttValue
¡^¡A¥H¤Î¥~³¡¼ÐÃѲš]SystemLiteral
¡^¡Cª`·N¡A¹ï
SystemLiteral
ªº»yªk¤ÀªR¥i¥H¤£±½´y¼Ð°O¡C
±`¶q
[9] |
EntityValue |
::= |
'"' ([^%&"] | PEReference
| Reference)*
'"' |
|
|
|
| "'" ([^%&'] | PEReference
| Reference)*
"'" |
[10] |
AttValue |
::= |
'"' ([^<&"] | Reference)*
'"' |
|
|
|
| "'" ([^<&'] | Reference)*
"'" |
[11] |
SystemLiteral |
::= |
('"' [^"]* '"') | ("'" [^']* "'") |
[12] |
PubidLiteral |
::= |
'"' PubidChar*
'"' | "'" (PubidChar
- "'")* "'" |
[13] |
PubidChar |
::= |
#x20 | #xD | #xA | [a-zA-Z0-9]
| [-'()+,./:=?;!*#@$_%] |
ª`¡G
ÁöµM²£¥Í¦¡ EntityValue
¤¹³\©w¸q¥u¥]§t³æÓ <
ªº¹êÊ^¡]¦p¡A<!ENTITY mylt
"<">
¡^¡A¦ý¬O±j¯P«ØijÁקK³oÏú¥Îªk¡A¦]¬°¹ï¦¹¹êÊ^ªº¥ô¦ó¤Þ¥Î³£·|¤Þ°_¤@Ӯ榡¥¿ÚÌ©Ê¿ù»~¡C
¤å¥»¥Ñ¦r²Å¼ÆÕu©M¼Ð°O²V¦XÌÛ¦¨¡C[©w¸q¡G¼Ð°O¥]¬A°_©l¼Ðñ¡Aµ²§ô¼Ðñ¡AªÅ¤¸¯À¼Ðñ¡A¹êÊ^¤Þ¥Î¡A¦r²Å¤Þ¥Î¡Aª`ÄÀ¡ACDATA ¬q©w¬É²Å¡A¤å¥óÃþ«¬Án©ú¡A³B²z«ü¥O¡AXML Án©ú¡A¤å¥»Án©ú¡A¥H¤Î¥ô¦ó¦b¤å¥ó¹êÊ^³»¼hªºªÅ¥Õ¡]§Y¡A¦b¤å¥ó¤¸¯À¤§¥~¥B¤£¦b¥ô¦ó¨ä¥Lªº¼Ð°O¤¤¡^¡C]
[©w¸q¡G¨ä¥L©Ò¦³«D¼Ð°Oªº¤å¥»²Õ¦¨¤å¥óªº¦r²Å¼ÆÕu¡C]
"and"¸¹¡]&¡^©M¥ª¦y¬A¸¹¡]<¡^¥u¦³§@¬°¼Ð°O©w¬É²Å¡A©Î¦bª`ÄÀ¡A³B²z«ü¥O¡A©Î CDATA
¬q¤¤®É¤~¯à¥H±`¶q§Î¦¡¥X²{¡C¦pªG¦b¨ä¥L¦a¤è»Ýn¥Î¨ì³o¨âÓ¦r²Å¡A¥¦Ì¥²¶·¥Î¼ÆȦ¡¦r²Å¤Þ¥Î¨ÓÂà¸q©Î¤À§O¥Î¦r²Å¦ê"&
"©M"<
"ªí¥Ü¡C¥k¦y¬A¸¹(>¡^¥i¥H¥Î">
"ªí¥Ü¡A¦Ó·í¥¦¦b¤º®e¤¤ªº¦r²Å¦ê"]]>
"¤¤¥X²{¡A¦ý¦¹¦r²Å¦ê¤£ªí¥Ü¤@Ó
CDATA
¬qªºµ²§ô®É¡A¥X¤_Ý®e©Ê¦Ò¼{¡A¥²¶·¥Î">
"©Î¤@Ó¦r²Å¤Þ¥ÎÂà¸q±o¨ì¡C
¦b¤@Ó¤¸¯Àªº¤º®e¤¤¡A¦r²Å¼ÆÕu¥i¥H¬O¤£¥]¬A¥ô¦ó¼Ð°Oªº°_©l©w¬É²Åªº¥ô·N¦r²Å¦ê¡C¦b¤@Ó CDATA ¬q¤¤¡A¦r²Å¼ÆÕu¥i¥H¬O¤£¥]¬A CDATA
¬qµ²§ô©w¬É²Å"]]>
"ªº¥ô·N¦r²Å¦ê¡C
¬°¤F¤¹³\¦bÄÝ©ÊȤ¤¥]§t³æ¤Þ¸¹©MÂù¤Þ¸¹¡A¬Ù²¤²Å©ÎºÙ³æ¤Þ¸¹¡]'¡^¥i¥H³Qªí¥Ü¬°"'
"¡A¦ÓÂù¤Þ¸¹¡]"¡^¥i¥H³Qªí¥Ü¬°""
"¡C
¦r²Å¼ÆÕu
[14] |
CharData |
::= |
[^<&]* - ([^<&]* ']]>'
[^<&]*) |
[©w¸q¡Gª`ÄÀ¥i¥H¦b¨ä¥L¼Ð°O¤§¥~ªº¤å¥ó¤¤ªº¥ô¦ó¦ì¸m¥X²{¡C¥t¥~¡A¥¦Ì¥i¥H¦b¤å¥óÃþ«¬Án©ú¤¤¤åªk¤¹³\ªº¦a¤è¥X²{¡C¥¦Ì¤£¬O¤å¥ó¦r²Å¼ÆÕuªº¤@³¡¤À¡AXML
³B²z¾¹¥i¥H¡A¦ý¤£¬O¥²¶·¡A¤¹³\¤@ÓÀ³¥ÎÀ˯Áª`ÄÀªº¤å¥»¡C¥X¤_Ý®e©Ê¦Ò¼{¡A¦r²Å¦ê"--
"¡]Âù³s¦r²Å¡^¤£¯à¦bª`ÄÀ¤¤¥X²{¡C]
ª`ÄÀ¤¤ªº°Ñ¼Æ¹êÊ^¤£³QÃѧO¡C
ª`ÄÀ
[15] |
Comment |
::= |
'<!--' ((Char - '-') |
('-' (Char
- '-')))* '-->' |
ª`ÄÀªº¤@Ó¨Ò¤l¡G
<!-- declarations for <head> & <body> --> |
ª`·N¡A¦¹¤åªk¤£¤¹³\ª`ÄÀ¥H --->
µ²§À¡C¤U±ªº¨Ò¤l¤£¬O®æ¦¡¥¿Ú̪º¡C
[©w¸q¡G³B²z«ü¥O¡]PI¡^¤¹³\¤å¥ó¤¤¥]§t¥ÑÀ³¥Î¨Ó³B²zªº«ü¥O¡C]
³B²z«ü¥O
[16] |
PI |
::= |
'<?' PITarget
(S (Char* - (Char* '?>'
Char*)))?
'?>' |
[17] |
PITarget |
::= |
Name - (('X'
| 'x') ('M' | 'm') ('L' | 'l')) |
PI ¤£¬O¤å¥ó¦r²Å¼ÆÕuªº¤@³¡¤À¡A¦ý¥²¶·¶Ç»¼µ¹À³¥Î¡CPI
¥H¥Î¤_«ü¥Ü¶Ç»¼µ¹þÓÀ³¥Îªº¥Ø¼Ð¡]PITarget
¡^¶}ÀY¡C¥Ø¼Ð¦W¦r
"XML
"¡A"xml
"¡Aµ¥µ¥¡A«O¯d¥Î¤_¥»³WSªº¦¹ª©¥»©Î¦ZÄòª©¥»ªº¼Ðã¤Æ¡CXML °OªkÉó¨î¥i¥H¥Î¤_ PI
¥Ø¼Ðªº§Î¦¡¤ÆÁn©ú¡C°Ñ¼Æ¹êÊ^¦b³B²z«ü¥O¤¤¤£³QÃѧO¡C
[©w¸q¡GCDATA
¬q¥i¥H¥X²{¦b¦r²Å¼ÆÕu¥i¥H¥X²{ªº¥ô¦ó¦a¤è¡A¥¦Ì¥Î¤_Âà¸q¥]§t·|³QÃѧO¬°¼Ð°Oªº¦r²Å¦êªº¤å¥»¶ô¡CCDATA ¬q¥H¦r²Å¦ê
"<![CDATA[
" ¶}©l¡A¥H¦r²Å¦ê "]]>
" µ²§ô¡G]
CDATA ¬q
¦b¤@Ó CDATA ¬q¤º¡A¥u¦³ CDEnd
¦r²Å¦ê³QÃѧO¬°¼Ð°O¡A¦]¦¹¥ª¦y¬A¸¹©M"&"¥i¥H¥H¥¦Ìªº±`¶q§Î¦¡¥X²{¡A¤£»Ýn¡]¤]¤£¯à¡^³Q´«½X¬°"<
"©M"&
"¡CCDATA
¬q¤£¯à´O®M¡C
¤@Ó CDATA
¬qªº¨Ò¤l¡A¨ä¤¤"<greeting>
"©M"</greeting>
"³QÃѧO¬°¦r²Å¼ÆÕu¡A¦Ó¤£¬O¼Ð°O¡G
<![CDATA[<greeting>Hello, world!</greeting>]]> |
[©w¸q¡GXML ¤å¥óÀ³¸Ó¥H¤@Ó XML Án©ú¶}©l¡A¨ä¤¤«ü©ú¤F©Ò¥Î XML ªºª©¥»¡C]
¨Ò¦p¡A¥H¤U¬O¤@Ó§¹¾ãªº XML ¤å¥ó¡A¥¦¬O®æ¦¡¥¿Ú̪º¡A¦ý¤£¬O¦³®Äªº¡G
<?xml version="1.0"?> <greeting>Hello, world!</greeting>
|
¤U±³oÓ¤]¦P¼Ë¡G
<greeting>Hello, world!</greeting>
|
ª©¥»¸¹ "1.0
" À³¸Ó¥Î¤_ªí©úÉO¥»³WSªº¥»ª©¥»¬Û¤@P¡A¦pªG¨Ï¥Î¤FÈ "1.0
"
¦ý¤SÉO¥»³WSªº¥»ª©¥»¤£¤@P¡A¨º¤\³o¬O¤å¥óªº¤@Ó¿ù»~¡CXML ¤u§@²Õ¥´ºâ½á¤©¥»³WSªº¦ZÄòª©¥»¤£¦P¤_ "1.0
"
ªº¼ÆÈ¡A¦ý³o¦}¤£¥Nªí¶}µo¦ZÄòª©¥»ªº©Ó¿Õ¡A¤]¤£¥Nªí¦pªG¦³¦ZÄòª©¥»¡A·|¨Ï¥Î¥ô¦ó¯S®íªº©R¦W¤è®×ªº©Ó¿Õ¡C¦]¬°¤£±Æ°£¦³¦ZÄòª©¥»ªº¥i¯à©Ê¡A´£¨Ñ¤F¥»ÌÛ³y¡]construct¡^§@¬°¤@¥¹»Ýn®É¶i¦æ¦Û°Êª©¥»ÃѧOªº¤â¬q¡C·í³B²z¾¹¦¬¨ìªº¤å¥ó¼Ð¦³¥¦Ì¤£¤ä«ùªºª©¥»®É¡A¥i¥Hµ¹¥X¤@Ó¿ù»~¡C
XML ¤å¥ó¤¤¼Ð°Oªº¥\¯à¬O´yz¤å¥óªº¦sÀx®æ¦¡©MÅÞ¿èµ²ÌÛ¡A¦}±NÄÝ©Ê-ȹï©MÅÞ¿èµ²ÌÛÃöÁp°_¨Ó¡CXML ´£¨Ñ¤@ÏúºÙ¬°¤å¥óÃþ«¬Án©úªºÉó¨î¡A¥Î¤_©w¸q¹ïÅÞ¿èµ²ÌÛªº¬ù§ô¡A¤ä«ù¹w©w¸q¦sÀx³æ¤¸ªº¨Ï¥Î¡C[©w¸q¡G¦pªG¤@Ó XML ¤å¥ó¦³¬ÛÀ³ªº¤å¥óÃþ«¬Án©ú¦}¥B¥¦¿í´`¨ä¤¤ªº¬ù§ô¡A«hºÙ¥¦¬O¦³®Äªº¡]valid¡^¡C]
¤å¥óÃþ«¬Án©ú¥²¶·¦ì¤_¤å¥ó²Ä¤@Ó¤¸¯À¤§«e¡C
§Ç¨¥
[©w¸q¡GXML ¤å¥óÃþ«¬Án©ú¥]§t©Î«ü¦V¼Ð°OÁn©ú¡A¼Ð°OÁn©ú´£¨Ñ¬Y¤@Ãþ¤å¥óªº¤åªk¡C³oÏú¤åªk³QºÙ¬°¤å¥óÃþ«¬©w¸q¡]document
type difinition¡ADTD¡^¡C¤å¥óÃþ«¬©w¸q¥i¥H«ü¦V¤@Ó¥~³¡¤l¶°¡]¤@Ïú¯S®íÃþ«¬ªº¥~³¡¹êÊ^¡^¡A©ÎªÌ¥i¥H¦b¤@Ó¤º³¡¤l¶°¤¤ª½±µ¥]§t¼Ð°OÁn©ú¡A©ÎªÌ¨âªÌݥΡC¤@Ó¤å¥óªº¤å¥óÃþ«¬©w¸q¥Ñ³o¨âÓ¤l¶°¦X¦b¤@°_²Õ¦¨¡C]
[©w¸q¡G¼Ð°OÁn©ú¥i¥H¬O¤¸¯ÀÃþ«¬Án©ú¡AÄݩʪíÁn©ú¡A¹êÊ^Án©ú¡A©Î¬O°OªkÁn©ú¡C]
³o¨ÇÁn©ú¥i¥H¦p¤U±®æ¦¡¥¿ÚÌ©Ê©M¦³®Ä©Ê¬ù§ô¤¤©Òz¡A¥þ³¡©Î³¡¤À¦a¥]§t¦b°Ñ¼Æ¹êÊ^¤¤¡A"4. ª«²zµ²ÌÛ"¤¤¦³§ó¦hªº«H®§¡C
¤å¥óÃþ«¬©w¸q
ª`·N¡AnÌÛ«Ø¥]§t¤F¤@Ó¬J¤£«ü¦V¥~³¡¤l¶°¤]¤£¥]§t¤º³¡¤l¶°ªº doctypedecl
¦Ó®æ¦¡¥¿Ú̪º¤å¥ó¬O¥i¯àªº¡C
¼Ð°OÁn©ú¥i¥H¥þ³¡©Î³¡¤À¦a¥Ñ°Ñ¼Æ¹êÊ^ªº¸m´«¤å¥»²Õ¦¨¡C¥»³WS¦Z±ªº¦UÓ«D²×µ²²Å¡]elementdecl
¡AAttlistDecl
¡Aµ¥µ¥¡^²£¥Í¦¡´yzªº¬O¦b©Ò¦³ªº°Ñ¼Æ¹êÊ^³Q¥]§t¡]include¡^¤§¦ZªºÁn©ú¡C
°£¤F¦b±`¶q¡A³B²z«ü¥O¡Aª`ÄÀ©M³Q©¿²¤ªº±ø¥ó¬qªº¤º®e¤¤¥X²{ªº°Ñ¼Æ¹êÊ^¤Þ¥Î¥H¥~¡ADTD
¤¤ªº¨ä¥L¥ô¦ó¦a¤è¡]¤º³¡©Î¥~³¡¤l¶°¥H¤Î¥~³¡°Ñ¼Æ¹êÊ^¡^ªº°Ñ¼Æ¹êÊ^¤Þ¥Î³£³QÃѧO¡]¨£ 3.4
±ø¥ó¬q¡^¡C¦b¹êÊ^ȱ`¶q¤¤ªº°Ñ¼Æ¹êÊ^¤Þ¥Î¤]³QÃѧO¡C¤º³¡¤l¶°¤¤°Ñ¼Æ¹êÊ^¤Þ¥Îªº¨Ï¥Î¨î¦p¤U©Òz¡C
¦³®Ä©Ê¬ù§ô: ®Ú¤¸¯ÀÃþ«¬¡]Root Element Type¡^
¤å¥óÃþ«¬Án©ú¤¤ªº Name
¥²¶·¤Ç°t®Ú¤¸¯ÀªºÃþ«¬¡C
¦³®Ä©Ê¬ù§ô: ÄY®æªºÁn©ú/°Ñ¼Æ¹êÊ^´O®M
°Ñ¼Æ¹êÊ^ªº¸m´«¤å¥»¥²¶·¥Î¼Ð°OÁn©úÄY®æ´O®M¡C§Y¡A¦pªG¤@ӼаOÁn©ú¡]¤W±ªº
markupdecl
¡^ªº²Ä¤@өγ̦Z¤@Ó¦r²Å³Q¥]§t¤_¤@ӰѼƹêÊ^¤Þ¥Îªº¸m´«¤å¥»¤¤¡A¨âªÌ¥²¶·³£¦b¦¹¸m´«¤å¥»¤¤¡C
®æ¦¡¥¿Ú̩ʬù§ô: ¤º³¡¤l¶°¤¤ªº°Ñ¼Æ¹êÊ^
¦b¤º³¡ DTD ¤l¶°¤¤¡A°Ñ¼Æ¹êÊ^¤Þ¥Î¥u¯à¥X²{¦b¼Ð°OÁn©ú¥i¥H¥X²{ªº¦a¤è¡A¦Ó¤£¯à¦b¼Ð°OÁn©ú¤º³¡¥X²{¡C¡]³oÓ¬ù§ô¤£Óì¥Î¤_¥X²{¦b¥~³¡°Ñ¼Æ¹êÊ^¤ºªº¤Þ¥Î¡A¤]¤£Óì¥Î¤_¥~³¡¤l¶°¡C¡^
®æ¦¡¥¿Ú̩ʬù§ô: ¥~³¡¤l¶°
¥~³¡¤l¶°¡]¦pªG¦³ªº¸Ü¡^¥²¶·¤Ç°t²£¥Í¦¡ extSubset¡C
®æ¦¡¥¿Ú̩ʬù§ô: Án©ú¶¡ªº°Ñ¼Æ¹êÊ^
¤@Ó DeclSep
¤ºªº°Ñ¼Æ¹êÊ^¤Þ¥Îªº¸m´«¤å¥»¥²¶·¤Ç°t²£¥Í¦¡ extSubsetDecl¡C
¦P¤º³¡¤l¶°¤@¼Ë¡A¥~³¡¤l¶°©M¥ô¦ó DeclSep
¤¤¤Þ¥Îªº¥~³¡°Ñ¼Æ¹êÊ^¡A¥²¶·¥Ñ¤@¨t¦C³Q«D²×µ²²Å markupdecl
©Ò¤¹³\ªº§¹¾ãªº¼Ð°OÁn©ú²Õ¦¨¡A¨ä¤¤¥i¥H§¨ÂøªÅ¥Õ¦r²Å©Î°Ñ¼Æ¹êÊ^¤Þ¥Î¡C¦ý¬O¡A¥~³¡¤l¶°©M¥~³¡°Ñ¼Æ¹êÊ^ªº³¡¤À¤º®e¥i¥H³q¹L¨Ï¥Î±ø¥ó¬q¡]conditional
section¡^³Q¦³±ø¥ó¦a©¿²¤¡A¦b¤º³¡¤l¶°¤¤«h¤£¤¹³\³o¤\°µ¡C
¥~³¡¤l¶°
¥~³¡¤l¶°©M¥~³¡°Ñ¼Æ¹êÊ^ÉO¤º³¡¹êÊ^¤£¦P¤§³BÁÙ¦b¤_¡G¦b¥¦Ì¤º¡A°Ñ¼Æ¹êÊ^¤Þ¥Î¤£¶È¥i¥H¥X²{¦b¼Ð°OÁn©ú¶¡¡AÁÙ¥i¥H¥X²{¦b¼Ð°OÁn©ú¤º¡C
¦³¤å¥óÃþ«¬Án©úªº XML ¤å¥óªº¨Ò¤l¡G
<?xml version="1.0"?> <!DOCTYPE greeting SYSTEM "hello.dtd"> <greeting>Hello, world!</greeting>
|
¨t²Î¼ÐÃѲÅ
"hello.dtd
" µ¹¥X¤F¦¹¤å¥óªº DTD ªº¦a§}¡]¤@Ó URI ¤Þ¥Î¡^¡C
Án©ú¤]¥i¥H¦p¦P¤U±³oÓ¨Ò¤l¤@¼Ëª½±µ¡]locally¡^µ¹¥X¡G
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE greeting [ <!ELEMENT greeting (#PCDATA)> ]> <greeting>Hello, world!</greeting>
|
¦pªG¦P®É¨Ï¥Î¥~³¡©M¤º³¡¤l¶°¡A¤l¶°¤l¶°³Q¬Ý¦¨¥X²{¦b¥~³¡¤l¶°¤§«e¡A³o·N¨ýµÛ¤º³¡¤l¶°¤¤ªº¹êÊ^©MÄݩʪíÁn©úªºÉ¬¥ý¯Ån¤ñ¦b¥~³¡¤l¶°¤¤ªº°ª¡C
·í¤å¥ó±q XML
³B²z¾¹»¼µ¹À³¥Î®É¡A¼Ð°OÁn©ú¥i¥H¼vÅT¥¦ªº¤º®e¡AÄݩʯʬÙÈ©M¹êÊ^Án©ú¬O¨ä¤¤ªº¨Ò¤l¡C¥i¥H§@¬° XML Án©ú¤@Ó¦¨¤Àªº¿W¥ß¤å¥óÁn©ú¡A«ü©ú¤F¬O§_¦s¦bµÛ¦b¤å¥ó¹êÊ^¥~©Î¦b°Ñ¼Æ¹êÊ^¤¤ªºÁn©ú¡C[©w¸q¡G¥~³¡¼Ð°OÁn©ú³Q©w¸q¬°¥X²{¦b¥~³¡¤l¶°©Î°Ñ¼Æ¹êÊ^¡]¥~³¡©Î¤º³¡¡A¥]¬A¤º³¡°Ñ¼Æ¹êÊ^¬O¦]¬°¦}¤£±j¨î¤£¶i¦æÅçµýªº³B²z¾¹Åª¨ú¨ä¤¤ªº¼Ð°OÁn©ú¡^¤¤ªº¼Ð°OÁn©ú¡C]
¿W¥ß¤å¥óÁn©ú
[32] |
SDDecl |
::= |
S
'standalone' Eq (("'" ('yes'
| 'no') "'") | ('"' ('yes' | 'no') '"')) |
[VC:
¿W¥ß¤å¥óÁn©ú] |
¦b¤@Ó¿W¥ß¤å¥óÁn©ú¤¤¡AÈ "yes
" ªí¥Ü¹ï¤_¤å¥ó¹êÊ^¨S¦³¥~³¡¼Ð°OÁn©ú¡]¤£½×¬O¦b
DTD ¥~³¡¤l¶°¤¤¡AÁÙ¬O¦b¥Ñ¤º³¡¹êÊ^¤Þ¥Îªº¥~³¡°Ñ¼Æ¹êÊ^¤¤¡^·|¼vÅT±q XML ³B²z¾¹¶Ç»¼µ¹À³¥Îªº«H®§¡CÈ "no
"
ªí¥Ü¦³©Î¥i¯à¦³³o¼Ëªº¥~³¡¼Ð°OÁn©ú¡Cª`·N¡A¿W¥ß¤å¥óÁn©ú¥u¬Oªí¥Ü¥~³¡Án©úªº¦s¦b¡A¦pªG¤å¥ó¤¤¦s¦b¹ï¥~³¡¹êÊ^ªº¤Þ¥Î¡A¦Ó³o¨Ç¹êÊ^¤w¦b¤º³¡Án©ú®É¡A¤£¼vÅT¥¦ªº¿W¥ßª¬ºA¡C
¦pªG¤£¦s¦b¥~³¡¼Ð°OÁn©ú¡A¿W¥ß¤å¥óÁn©ú¨S¦³·N¸q¡C¦pªG¦s¦b¥~³¡¼Ð°OÁn©ú¡A¦ý¨S¦³¿W¥ß¤å¥óÁn©ú¡A´N°²©w¨úÈ "no
"¡C
¬Y¨ÇÊIµ¸¶Ç¿éÀ³¥Î¤]³\»Ýn¿W¥ßªº¤å¥ó¡A¥ô¦óº¡¨¬ standalone="no"
ªº XML
¤å¥ó¥i¥H³q¹L¤@©wªººâªkÂà´«¬°¿W¥ß¤å¥ó¡C
¦³®Ä©Ê¬ù§ô: ¿W¥ß¤å¥óÁn©ú
¿W¥ß¤å¥óÁn©ú¥²¶·¨úȬ° "no
"¡A¦pªG¥ô¦ó¥~³¡¼Ð°OÁn©ú¤¤¥]§t¡G
- ¦³¯Ê¬ÙȪºÄݩʪºÁn©ú¡A¦pªGÓì¥Î³o¨ÇÄݩʪº¤¸¯À¥X²{¦b¤å¥ó¤¤¦Ó¤S¨S¦³µ¹³o¨ÇÄݩʽáȪº¸Ü¡C
- ¡]°£¤F
amp
¡Alt
¡Agt
¡Aapos
¡Aquot
¥~ªº¡^¹êÊ^ªºÁn©ú¡A¦Ó¹ï³o¨Ç¹êÊ^ªº¤Þ¥Î¥X²{¦b¤å¥ó¤¤ªº¸Ü¡C
- ¨äÈ»Ýn³WS¤ÆªºÄݩʪºÁn©ú¡A¦pªG³o¨Ç¥X²{¦b¤å¥ó¤¤ªºÄݩʪºÈ·|¦]³WS¤Æ¦Ó§ïÅܪº¸Ü¡C
- ¨ã¦³¤¸¯À«¬¤º®eªº¤¸¯ÀÃþ«¬ªºÁn©ú¡A¦pªG¦b³o¨ÇÃþ«¬ªº¥ô¤@¹ê¨Ò¤¤ª½±µ¥X²{ªÅ¥Õªº¸Ü¡C
¨ã¦³¿W¥ß¤å¥óÁn©úªº XML Án©úªº¨Ò¤l¡G
<?xml version="1.0" standalone='yes'?> |
¦b½s¿è XML
¤å¥ó®É¡A¨Ï¥Î"ªÅ¥Õ"¡]ªÅ®æ¡A¨îªí²Å¡AªÅ¦æ¡^¨Ó¤À¶}¼Ð°O¥HÀò±o§ó¦nªº¥iŪ©Ê¬O«Ü¤è«Kªº¡C³q±`¦b¤å¥óªº¥æ¥Iª©¥»¤¤¤£·Q¥]§t³o¨ÇªÅ¥Õ¡C¥t¤@¤è±¡A¥²¶·«O¯d¦b¥æ¥Iª©¥»¤¤ªº¦³·N¸qªºªÅ¥Õ¬O«Ü±`¨£ªº¡A¦p¦b¸Öºq©M·½½X¤¤ªºªÅ¥Õ¡C
XML
³B²z¾¹¥²¶·©l²×§â¤£¬O¼Ð°Oªº©Ò¦³¦r²Å¶Ç»¼µ¹À³¥Î¡C¤@Ó¶i¦æÅçµýªº XML
³B²z¾¹¥²¶·¦P®É³qª¾À³¥Î³o¨Ç¦r²Å¤¤ªº¨º¤@¨Ç²Õ¦¨¤F¥X²{¦b¤¸¯À«¬¤º®e¤¤ªºªÅ¥Õ¡C
¥i¥H¦b¤¸¯À¤¤ªþ¥[¤@Ó¦W¬° xml:space
ªº¯S®íÄÝ©Ê¡A¥H³qª¾À³¥ÎÀ³¸Ó«O¯d¦¹¤¸¯À¤¤ªºªÅ¥Õ¡C¦b¦³®Äªº¤å¥ó¤¤¡A¦¹ÄÝ©Ê©M¨ä¥LÄݩʤ@¼Ë¡A¨Ï¥Î®É¥²¶·Án©ú¡C¥¦¥²¶·³QÁn©ú¬°ªTÁ|Ãþ«¬¡A¥i¥H¨úÈ
"default
" ©M "preserve
" ¨âªÌ¤§¤@¡A¤]¥i¥H¨âÓ³£¨ú¡C¨Ò¦p¡G
<!ATTLIST poem xml:space (default|preserve) 'preserve'>
<!-- -->
<!ATTLIST pre xml:space (preserve) #FIXED 'preserve'> |
"default
" ªí¥Ü¥i¥H¹ï¦¹¤¸¯À¨Ï¥ÎÀ³¥Îªº¯Ê¬ÙªÅ¥Õ³B²z¼Ò¦¡¡A"preserve
"
ªí¥ÜÀ³¥ÎÀ³¸Ó«O¯d©Ò¦³ªºªÅ¥Õ¡C³oÓì¥Î¤_¨ä©Ò³B¤¸¯Àªº¤º®e¤¤ªº©Ò¦³¤¸¯À¡A°£«D³Q¥t¤@Ó xml:space
Äݩʪº¹ê¨Ò©ÒÂл\¡C
¥ô¦ó¤å¥óªº®Ú¤¸¯À³Q»{¬°¹ïÀ³¥ÎªºªÅ¥Õ³B²z¤è¦¡¤£§@n¨D¡A°£«D¥¦µ¹¦¹Äݩʽá¤FȩαN¦¹ÄÝ©ÊÁn©ú¬°±a¯Ê¬ÙÈ¡C
¬°½s¿èªº¤è«K°_¨£¡A¦sÀx XML ¤wªR¹êÊ^ªºpºâÉó¤å¥ó¸g±`¥Î¦æ¨Ó²Õ´¡C³q±`³o¨Ç¦æ¥Î¦^¨®²Å¡]#xD¡^©M´«¦æ²Å¡]#xA¡^ªº¤@¨Ç²Õ¦X¨Ó¤À¹j¡C
¬°¤F¨ÏÀ³¥Îªº¤u§@²³æ¤Æ¡AXML
³B²z¾¹À³¦b±N¦r²Å¶Çµ¹À³¥Î«e¡A±N¥~³¡¤wªR¹êÊ^¡]¥]¬A¤å¥ó¹êÊ^¡^¤¤ªº¨â¦r²Å§Ç¦C "#xD#xA" ©Î¨S¦³§ÀÀH #xA ªº #xD ¦b¶i¦æ»yªk¤ÀªR«eÂà´«¦¨³æÓ #xA
¦r²Å¡C
¦b¶i¦æ¤å¥ó³B²z®É¡A¼ÐÃÑ¥X¨ä¤º®e©Ò¨Ï¥Îªº¦ÛµM©Î§Î¦¡¤Æ»y¨¥¸g±`¬O«Ü¦³¥Îªº¡C¥i¥H¦b¤å¥ó¤¤´¡¤J¤@Ó¦W¬° xml:lang
ªº¯S®íÄݩʥΤ_«ü¥X XML
¤å¥ó¤¤¥ô¦ó¤¸¯Àªº¤º®e©MÄݩʩҨϥΪº»y¨¥¡C¦b¦³®Äªº¤å¥ó¤¤¡A¦¹ÄÝ©Ê©M¨ä¥LÄݩʤ@¼Ë¡A¨Ï¥Î®É¥²¶·Án©ú¡C¦¹ÄݩʪºÈ¬O [IETF RFC
1766]¡ATags for the Identification of Languages ©Î¨ä¦Zªº ITEF
¼Ð㤤©w¸qªº»y¨¥¼ÐÃѲšC
¡]²£¥Í¦¡ 33 ¨ì 38 ¤w³Q§R°£¡C¡^
Á|¨Ò¦p¤U¡G
<p xml:lang="en">The quick brown fox jumps over the lazy dog.</p> <p xml:lang="en-GB">What colour is it?</p> <p xml:lang="en-US">What color is it?</p> <sp who="Faust" desc='leise' xml:lang="de"> <l>Habe nun, ach! Philosophie,</l> <l>Juristerei, und Medizin</l> <l>und leider auch Theologie</l> <l>durchaus studiert mit heißem Bemüh'n.</l> </sp> |
xml:lang
©Òªí¥Üªº»y¨¥¿ï¾ÜÓì¥Î¤_¥¦©Ò³B¤¸¯Àªº©Ò¦³ÄÝ©Ê©M¤º®e¡A°£«D³Q¦¹¤º®e¤¤ªº¤¸¯À¤ºªº¥t¤@Ó
xml:lang
ªº¹ê¨Ò©ÒÂл\¡C
xml:lang
ªº¤@Ó²³æÁn©ú¥i¥Hªö¥Î¦p¤U§Î¦¡¡G
xml:lang NMTOKEN #IMPLIED |
¦ý¬O¦pªG¦XÓ쪺¸Ü¡A¤]¥i¥Hµ¹¥X¯S©wªº¯Ê¬ÙÈ¡C¦b¤@¥»¨Ñ^°ê¾Ç¥Í¨Ï¥Îªºªk¤å¸Öºq¶°¤¤¡Aµûª`©Mª`¸Ñ¨Ï¥Î^»y¡Axml:lang ÄÝ©Ê¥i¥H³o¼ËÁn©ú¡G
<!ATTLIST poem xml:lang NMTOKEN 'fr'> <!ATTLIST gloss xml:lang NMTOKEN 'en'> <!ATTLIST note xml:lang NMTOKEN 'en'> |
[©w¸q¡G¨CÓ XML
¤å¥ó¥]§t¤@өΦhÓ¤¸¯À¡A¥¦ÌªºÃä¬É¥Î°_©l¼Ðñ©Mµ²§ô¼Ðñ¤À¹j¡A©ÎªÌ¡A¹ï¤_ªÅ¤¸¯À¡A¥Î¤@ӪŤ¸¯À¼Ðñ¤À¹j¡C¨C¤@Ó¤¸¯À¦³¤@ӥΦW¦r¼ÐÃѪºÃþ«¬¡A¦³®ÉºÙ¤§¬°¥¦ªº"³q¥Î¼ÐÃѲš]generic
identifier¡^"¡]GI¡^¡A¦P®É¥¦¥i¥H¦³¤@ÓÄÝ©ÊÈ»¡©ú¡]attribute specification¡^¶°¡C] ¨C¤@ÓÄÝ©ÊÈ»¡©ú¦³¤@Ó¦W¦r©M¤@ÓÈ¡C
¤¸¯À
°£¤F¨º¨Ç¶}ÀY¤Ç°t(('X'|'x')('M'|'m')('L'|'l'))
ªº¦W¦r«O¯d¥Î¤_¥»³WSªº¦¹ª©¥»©M¦ZÄ~ª©¥»ªº¼Ðã¤Æ¥~¡A¥»³WS¤£¹ï¤¸¯ÀÃþ«¬©MÄݩʪº»y¸q¡A¥Îªk©M¦W¦r¡]»yªk¤§¥~¡^§@¥X¨î¡C
®æ¦¡¥¿Ú̩ʬù§ô: ¤¸¯ÀÃþ«¬¤Ç°t
¤¸¯Àµ²§ô¼Ðñ¤¤ªº Name
¥²¶·©M°_©l¼Ðñ¤¤ªº¤¸¯ÀÃþ«¬¬Û¤Ç°t¡C
¦³®Ä©Ê¬ù§ô: ¤¸¯À¦³®Ä©Ê
¦pªG¦³¤@ÓÉO elementdecl
¬Û¤Ç°tªºÁn©úªº Name
ÉO¤¸¯ÀÃþ«¬¬Û¤Ç°t¡A¥B¤Uz¤§¤@¦¨¥ß®É¡AºÙ¦¹¤¸¯À¬O¦³®Äªº¡G
- ¦¹Án©úÉO EMPTY ¬Û¤Ç°t¡A¦P®É¦¹¤¸¯À¨S¦³¤º®e¡C
- ¦¹Án©úÉO
children
¬Û¤Ç°t¡A¦P®É¤l¤¸¯Àªº§Ç¦CÄݤ_¤º®e¼Ò«¬¤¤ªº¥¿«hªí¹F¦¡©Ò²£¥Íªº»y¨¥¡A¦b°_©l¼Ðñ©M²Ä¤@Ó¤l¤¸¯À¤§¶¡¡A¤l¤¸¯À¤§¶¡¥H¤Î³Ì¦Z¤@Ó¤l¤¸¯À©Mµ²§ô¼Ðñ¤§¶¡¤¹³\¦³ªÅ¥Õ¡]¤Ç°t«D²×µ²²Å
S
ªº¦r²Å¡^¡Cª`·N¡A¶È¥]¬AªÅ¥Õªº CDATA ¬q¤£¤Ç°t«D²×µ²²Å S
¡A¦]¦¹¤£¯à¦b³o¨Ç¦ì¸m¥X²{¡C
- ¦¹Án©úÉO
Mixed
¬Û¤Ç°t¡A¦P®É¤º®e¥Ñ¨äÃþ«¬¤Ç°t¤º®e¼Ò«¬¤¤ªº¦W¦rªº¦r²Å¼ÆÕu©M¤l¤¸¯À²Õ¦¨¡C
- ¦¹Án©úÉO ANY ¬Û¤Ç°t¡A¦P®É¨CÓ¤l¤¸¯ÀªºÃþ«¬§¡¤wÁn©ú¡C
[©w¸q¡G¨C¤@Ó«DªÅ XML ¤¸¯À¥H¤@Ó°_©l¼Ðñ§@¬°¶}©lªº¼Ð°O¡C]
°_©l¼Ðñ
°_©l¼Ðñ©Mµ²§ô¼Ðñ¤¤ªº Name
µ¹¥X¤F¤¸¯ÀªºÃþ«¬¡C[©w¸q¡GName
-AttValue
¹ï³Q²ÎºÙ¬°¤¸¯ÀªºÄÝ©ÊÈ»¡©ú]¡A[©w¸q¡G¨ä¤¤¨C¤@¹ï¤¤ªº Name
³QºÙ¬°ÄݩʦW]¡A[©w¸q¡GAttValue
ªº¤º®e¡]¦b'
©Î"
©w¬É²Å¶¡ªº¤å¥»¡^³QºÙ¬°ÄÝ©ÊÈ]¡Cª`·N¡A¦b°_©l¼Ðñ©MªÅ¤¸¯À¼Ðñ¤¤¦UÓÄÝ©ÊÈÁn©úªº¦¸§Ç¨S¦³·N¸q¡C
®æ¦¡¥¿Ú̩ʬù§ô: °ß¤@ªºÄÝ©ÊÈ»¡©ú
¤@ÓÄݩʦW¥u¯à¦b¦P¤@Ó°_©l¼Ðñ©ÎªÅ¤¸¯À¼Ðñ¤¤¥X²{¤@¦¸¡C
¦³®Ä©Ê¬ù§ô: ÄÝ©ÊÈÃþ«¬
ÄÝ©Ê¥²¶·³QÁn©ú¡A¨äÈ¥²¶·¨ã¦³©ÒÁn©úªºÃþ«¬¡C¡]ÄÝ©ÊÃþ«¬°Ñ¨£"3.3 ÄݩʪíÁn©ú"¡C¡^
®æ¦¡¥¿Ú̩ʬù§ô: µL¥~³¡¹êÊ^¤Þ¥Î
ÄÝ©ÊȤ£¯à¥]§t¹ï¥~³¡¹êÊ^ª½±µ©Î¶¡±µªº¹êÊ^¤Þ¥Î¡C
®æ¦¡¥¿Ú̩ʬù§ô: ¦bÄÝ©ÊȤ¤¨S¦³
<
¦b¤@ÓÄÝ©ÊȤ¤ª½±µ©Î¶¡±µ¤Þ¥Îªº¹êÊ^ªº¸m´«¤å¥»¤£¯à¥]§t
<
¡C
°_©l¼Ðñªº¤@Ó¨Ò¤l¡G
<termdef id="dt-dog" term="dog"> |
[©w¸q¡G¥Ñ¤@Ó°_©l¼Ðñ¶}©lªº¨C¤@Ó¤¸¯À¥²¶·¥Î¤@Óµ²§ô¼Ðñ¼Ð°O¨äµ²§ô¡Aµ²§ô¼Ðñ¤¤ªº¦W¦r¥²¶·ÉO°_©l¼Ðñ¤¤µ¹¥Xªº¤¸¯ÀÃþ«¬¬Û¦P¡G]
µ²§ô¼Ðñ
[42] |
ETag |
::= |
'</' Name S?
'>' |
µ²§ô¼Ðñªº¤@Ó¨Ò¤l¡G
[©w¸q¡G¦b°_©l¼Ðñ©Mµ²§ô¼Ðñ¤¤ªº¤å¥»³QºÙ¬°¤¸¯Àªº¤º®e¡G]
¤¸¯Àªº¤º®e
[©w¸q¡GºÙ¨S¦³¤º®eªº¤¸¯À¨ä¤º®e¬°ªÅ¡C]
ªÅ¤¸¯À¥i¥H¥Î¤@Ó°_©l¼Ðñºò¸ò¤@Óµ²§ô¼Ðñªº¤è¦¡©ÎªÅ¤¸¯À¼Ðñ¨Óªí¥Ü¡C[©w¸q¡GªÅ¤¸¯À¼Ðñ¦³¤@Ïú¯S®íªº§Î¦¡¡G]
ªÅ¤¸¯À¼Ðñ
¤£½×¤¸¯À¬O§_¥ÎÃöÁä¦r EMPTY Án©ú¡AªÅ¤¸¯À¼Ðñ³£¥i¥H¥Î¤_¥ô¦ó¨S¦³¤º®eªº¤¸¯À¡C¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡AªÅ¤¸¯ÀÀ³¸Ó¥Î¤_¡A¥B¥uÀ³¥Î¤_Án©ú¬°
EMPTY
ªº¤¸¯À¡C
ªÅ¤¸¯Àªº¨Ò¤l¡G
<IMG align="left" src="http://www.w3.org/Icons/WWW/w3c_home" /> <br></br> <br/> |
¥X¤_Åçµýªº¥Øªº¡A¥i¥H¥Î¤¸¯ÀÃþ«¬©MÄݩʪíÁn©ú¨î
XML ¤å¥ó¤¤¤¸¯Àªºµ²ÌÛ¡C¤¸¯ÀÃþ«¬Án©ú¨î¤F¤¸¯Àªº¤º®e¡C
¤¸¯ÀÃþ«¬Án©ú³q±`¨î¤F¤l¤¸¯ÀªºÃþ«¬¡C¥Ñ¨Ï¥ÎªÌ¿ï¾Ü¡A·íÁn©ú´£¨ìªº¤¸¯ÀÃþ«¬¨S¦³¬ÛÀ³ªºÁn©ú®É¡AXML
³B²z¾¹¥i¥Hµ¹¥Xĵ§i¡A¦ý³o¤£¬O¤@Ó¿ù»~¡C
[©w¸q¡G¤¸¯ÀÃþ«¬Án©úªº§Î¦¡¦p¤U¡G]
¤¸¯ÀÃþ«¬Án©ú
¨ä¤¤ Name
µ¹¥X¤F©ÒÁn©úªº¤¸¯ÀÃþ«¬¡C
¦³®Ä©Ê¬ù§ô: °ß¤@ªº¤¸¯ÀÃþ«¬Án©ú
¤¸¯ÀÃþ«¬¥u¯àÁn©ú¤@¦¸¡C
¤¸¯ÀÃþ«¬Án©úªº¨Ò¤l¡G
<!ELEMENT br EMPTY> <!ELEMENT p (#PCDATA|emph)* > <!ELEMENT %name.para; %content.para; > <!ELEMENT container ANY> |
[©w¸q¡G·í¬Y¤@Ãþ«¬ªº¤¸¯À¥u¯à¥]§t¥Î¥i¿ïªÅ¥Õ¡]¤Ç°t«D²×µ²²Å
S
¡^¤À¹jªº¤l¤¸¯À¡]µL¦r²Å¼ÆÕu¡^®É¡AºÙ¦¹¤¸¯ÀÃþ«¬¨ã¦³¤¸¯À«¬¤º®e¡C]
[©w¸q¡G¦b³oÏú±¡ªp¤U¡A¦³¤º®e¼Ò«¬§@¬°Ãþ«¬¨î¤§¤@¡A¤º®e¼Ò«¬¬O¨M©w¤l¤¸¯ÀÃþ«¬©M¤l¤¸¯À¥X²{¶¶§Çªº¤@Ïú²³æ¤åªk¡C] ¦¹¤åªk¥Î¤º®e²É¤l¡] cp
¡^ÌÛ«Ø¡A¤º®e²É¤l¥Ñ¦W¦r¡A¤º®e²É¤lªº¿ï¾Üªí¡]choice list¡^©Î¤º®e²É¤lªº§Ç¦Cªí¡]sequence list¡^²Õ¦¨¡G
¤¸¯À«¬¤º®eªº¼Ò«¬
¨ä¤¤¨C¤@Ó Name
¬O¥i¥H§@¬°¤l¤¸¯Àªº¤¸¯ÀªºÃþ«¬¡C¿ï¾Üªí¤¤¥X²{ªº¥ô·N¤º®e²É¤l¦b¤¸¯À«¬¤º®e¤¤¤¹³\¥X²{ªº¦ì¸m¹ïÀ³¤_¿ï¾Üªí¦b¤åªk¤¤ªº¦ì¸m¡C§Ç¦Cªí¤¤¥X²{ªº©Ò¦³¤º®e²É¤l¥²¶·¥H¬Û¦Pªº¶¶§Ç¥X²{¦b¤¸¯À«¬¤º®e¤¤¡C¦b¦W¦r©Îªí¤§¦Zªº¥i¿ï¦r²Å¡]optional
character¡^¨M©w¤Fªí¤¤¤¸¯À©Î¤º®e²É¤l¥i¥H¥X²{¤@¦¸©Î¦h¦¸¡]+
¡^¡AÁÙ¬O¹s¦¸©Î¦h¦¸¡]*
¡^¡A©Î¬O¹s¦¸©Î¤@¦¸¡]?
¡^¡C¨S¦³³o¼Ë¤@Ó¾Þ§@²Å·N¨ýµÛ¤¸¯À©Î¤º®e²É¤l¥²¶·«ê¦n¥X²{¤@¦¸¡C³oÏú»yªk©M·N¸q©M¥»³WS¤¤ªº²£¥Í¦¡¤¤©Ò¨Ï¥Îªº¬Û¦P¡C
·í¥B¶È·í¤@Ó¤¸¯Àªº¤º®e¥i¥H³q¹Lº¡¨¬¤º®e¼Ò«¬¤¤ªº¿ï¾Ü¡A§Ç¦C©M«Î`¾Þ§@²Å±o¨ì¡A¦}¥B¤º®e¤¤ªº¨C¤@Ó¤¸¯ÀÉO¤º®e¼Ò«¬¤¤ªº¤@Ïú¤¸¯ÀÃþ«¬¬Û¤Ç°t®É¡AºÙ¦¹¤¸¯Àªº¤º®eÉO¸Ó¤º®e¼Ò«¬¬Û¤Ç°t¡C¥X¤_Ý®e©Ê¦Ò¼{¡A
¦pªG¤å¥óªº¬YÓ¤¸¯À¥i¥H©M¤º®e¼Ò«¬¤¤ªº¤@Ïú¤¸¯ÀÃþ«¬¦h¦¸¤Ç°t¡A³o¬O¤@Ó¿ù»~¡C §ó¸Ô²Óªº«H®§°Ñ¨£"E. ÚÌ©w«¬¤º®e¼Ò«¬".
¦³®Ä©Ê¬ù§ô: ÄY®æªº²Õ/°Ñ¼Æ¹êÊ^´O®M
°Ñ¼Æ¹êÊ^ªº¸m´«¤å¥»¥²¶·¥Ñ¬A¸¹¬A°_ªº²ÕÄY®æ´O®M¡C§Y¡A¦pªG
choice
¡Aseq
©Î
Mixed
»yªk¦¨¤Àªº¶}©l©Îµ²§ô¬A¸¹¥X²{¦b¬YӰѼƹêÊ^ªº¸m´«¤å¥»¤¤¡A¨âªÌ¥²¶·¦P¦b¦¹¸m´«¤å¥»¤¤¡C
¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡A¦pªG¤@ӰѼƹêÊ^¤Þ¥Î¥X²{¦bchoice
¡Aseq
©ÎMixed
»yªk¦¨¤À¤¤®É¡A¥¦ªº¸m´«¤å¥»¦Ü¤ÖÀ³¸Ó¥]§t¤@Ó«DªÅ¦r²Å¡A¦P®É¨ä¸m´«¤å¥»ªº²Ä¤@Ó©M³Ì¦Z¤@Ó«DªÅ¦r²Å³£¤£À³¬°¤@Ó³s±µ²Å¡]|
©Î ,
¡^¡C
¤¸¯À«¬¤º®eªº¼Ò«¬Á|¨Ò¡G
<!ELEMENT spec (front, body, back?)> <!ELEMENT div1 (head, (p | list | note)*, div2*)> <!ELEMENT dictionary-body (%div.mix; | %dict.mix;)*> |
[©w¸q¡G·í¬Y¤¸¯ÀÃþ«¬¥i¥H¥]§t¦r²Å¼ÆÕu¡A¨ä¶¡¥i¥HÀH·N¬ï´¡¤l¤¸¯À®É¡AºÙ¦¹¤¸¯ÀÃþ«¬¨ã¦³²V¦X«¬¤º®e¡C]
¦b³oÏú±¡ªp¤U¡A¹ï¤l¤¸¯ÀªºÃþ«¬¥i¯à¦³©Ò¨î¡A¦ý¹ï¥¦Ìªº¦¸§Ç©M¥X²{¦¸¼Æ¨S¦³¨î¡G
²V¦X«¬¤º®eÁn©ú
¨ä¤¤ Name
µ¹¥X¤F¤l¤¸¯Àªº¤¸¯ÀªºÃþ«¬¡CÃöÁä¦r #PCDATA ¨Ó¦Û³N»y"¤wªR¦r²Å¼ÆÕu¡]parsed character data¡^"¦Ó¨Ó
¦³®Ä©Ê¬ù§ô: µL«Î`Ãþ«¬
¦P¤@¦W¦r¦b³æÓ²V¦X«¬¤º®eÁn©ú¤¤¥u¯à¥X²{¤@¦¸¡C
²V¦X¤º®eÁn©úªº¨Ò¤l¡G
<!ELEMENT p (#PCDATA|a|ul|b|i|em)*> <!ELEMENT p (#PCDATA | %font; | %phrase; | %special; | %form;)* > <!ELEMENT b (#PCDATA)> |
ÄݩʥΤ_ÃöÁp¦W¦r-ȹï©M¤¸¯À¡CÄÝ©ÊÈ»¡©ú¥u¯à¦b°_©l¼Ðñ©MªÅ¤¸¯À¼Ðñ¤¤¥X²{;
¦]¦¹¡A¥Î¤_ÃѧO¥¦Ìªº²£¥Í¦¡¥X²{¦b"3.1 °_©l¼Ðñ¡Aµ²§ô¼Ðñ©MªÅ¤¸¯À¼Ðñ"¤¤¡CÄݩʪíÁn©ú¥i¥H¥Î¤_¡G
- ©w¸qÉO¤@µ¹©w¤¸¯ÀÃþ«¬¦³ÃöªºÄݩʶ°¡C
- ÚÌ©w³o¨ÇÄݩʪºÃþ«¬¨î¡C
- ´£¨ÑÄݩʪº¯Ê¬ÙÈ¡C
[©w¸q¡GÄݩʪíÁn©ú¸Ô²Ó»¡©ú¤FÉOµ¹©w¤¸¯ÀÃþ«¬¬ÛÃöÁpªº¨C¤@ÓÄݩʪº¦W¦r¡A¼ÆÕuÃþ«¬©M¯Ê¬ÙÈ¡]¦pªG¦³ªº¸Ü¡^¡G]
ÄݩʪíÁn©ú
AttlistDecl
³W«h¤¤ Name
¬O¤¸¯ÀªºÃþ«¬¡C¥Ñ¨Ï¥ÎªÌ¿ï¾Ü¡A·íÄÝ©ÊÁn©ú¬ÛÃöªº¤¸¯ÀÃþ«¬¨S¦³³QÁn©ú®É¡AXML ³B²z¾¹¥i¥Hµ¹¥X¤@Óĵ§i¡A¦ý³o¤£¬O¤@Ó¿ù»~¡CAttDef
³W«h¤¤ªº Name
¬OÄݩʪº¦W¦r¡C
·íÉO¬YÓµ¹©w¤¸¯ÀÃþ«¬¬ÛÃöªº AttlistDecl
¶W¹L¤@ӮɡA³o¨ÇÁn©ú¤¤ªº¤º®e³Q¦X¦}¦b¤@°_¡C·íµ¹©w¤¸¯ÀÃþ«¬ªº¬YÓÄݩʪº©w¸q¶W¹L¤@ӮɡA¸j©w²Ä¤@Ó©w¸q¡A¨ä§E©w¸q³Q©¿²¤¡C¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡ADTD
ªº§@ªÌ¥i¥H³o¼Ë°µ¡G¤@Óµ¹©wªº¤¸¯ÀÃþ«¬¦Ü¦h¦³¤@ÓÄݩʪíÁn©ú¡A¤@ÓÄÝ©Êªí¤¤¤@Óµ¹©wªºÄݩʦW¦Ü¦h¦³¤@ÓÄÝ©Ê©w¸q¡A¨CÓÄݩʪíÁn©ú¦Ü¤Ö¦³¤@ÓÄÝ©Ê©w¸q¡C¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡A·í¤@Óµ¹©w¤¸¯À¦³¶W¹L¤@ÓªºÄݩʪíÁn©ú©Î¤@Óµ¹©wÄݩʦ³¶W¹L¤@ÓªºÄÝ©Ê©w¸q®É¡AXML
³B²z¾¹¥i¥H¡A¥Ñ¨Ï¥ÎªÌ¿ï¾Ü¡Aµ¹¥Xĵ§i¡A¦ý³o¤£¬O¤@Ó¿ù»~¡C
XML Äݩʦ³¤TÏúÃþ«¬¡G¦r²Å¦êÃþ«¬¡A¤@²Õ°O¸¹¤ÆÃþ«¬©MªTÁ|Ãþ«¬¡C¦r²Å¦êÃþ«¬¥i¥H¥H¥ô·N±`¶q¦r²Å¦ê¬°È;
¦UÓ°O¸¹¤ÆÃþ«¬¦³¤£¦Pªºµüªk©M»y¸q¬ù§ô¡C¤åªk¤¤«ü¥Xªº¦³®Ä©Ê¬ù§ôÓì¥Î¤_ÄÝ©ÊȤw«ö 3.3 ¸` 3.3
ÄݩʪíÁn©ú¤¤©Òz³WS¤Æ¤F¤§¦Zªº±¡ªp¡C
ÄÝ©ÊÃþ«¬
¦³®Ä©Ê¬ù§ô: ID
ID Ãþ«¬ªºÈ¥²¶·¤Ç°t Name
²£¥Í¦¡¡C§@¬°¦¹Ãþ«¬Èªº¦W¦r¥u¯à¦b XML ¤å¥ó¤¤¥X²{¤@¦¸¡F§Y¡AID Ãþ«¬ªºÈ¥²¶·¯à°ß¤@¼ÐÃѤ¸¯À¡C
¦³®Ä©Ê¬ù§ô: ¨CÏúÄÝ©ÊÃþ«¬¤@ÓID
¨CÏúÄÝ©ÊÃþ«¬¥u¯à¦³¤@Ó ID ÄÝ©Ê¡C
¦³®Ä©Ê¬ù§ô: ID Äݩʪº¯Ê¬ÙÈ
ID ÄÝ©Ê¥²¶·¦³¤@ÓÁn©ú¬° #IMPLIED ©Î #REQUIRED
ªº¯Ê¬ÙÈ¡C
¦³®Ä©Ê¬ù§ô: IDREF
IDREF Ãþ«¬ªºÈ¥²¶·¤Ç°t Name
²£¥Í¦¡¡AIDREFS Ãþ«¬ªºÈ¥²¶·¤Ç°t Names
²£¥Í¦¡¡F¨C¤@Ó Name
¥²¶·¤Ç°t XML ¤å¥ó¤¤¬Y¨Ç¤¸¯À ID ÄݩʪºÈ¡F¤]´N¬O»¡¡AIDREF Ãþ«¬ªºÈ¥²¶·¤Ç°t¬Y¨Ç ID ÄݩʪºÈ¡C
¦³®Ä©Ê¬ù§ô: ¹êÊ^¦W
ENTITY Ãþ«¬ªºÈ¥²¶·¤Ç°t Name
²£¥Í¦¡¡AENTITIES Ãþ«¬ªºÈ¥²¶·¤Ç°t Names
²£¥Í¦¡¡F¨C¤@Ó Name
¥²¶·¤Ç°t ¥¼ªR¹êÊ^ªº¦W¦r¡C
¦³®Ä©Ê¬ù§ô: ¦W¦r°O¸¹
NMTOKEN Ãþ«¬ªºÈ¥²¶·¤Ç°t Nmtoken
²£¥Í¦¡¡FNMTOKENS Ãþ«¬ªºÈ¥²¶·¤Ç°t Nmtokens
²£¥Í¦¡¡C
[©w¸q¡GªTÁ|Ãþ«¬ªºÄÝ©Ê¥i¥H¦bÁn©ú¤¤´£¨Ñªº¨úÈªí¤¤¨úÈ¡C] ¦³¨âÏúªTÁ|Ãþ«¬¡G
ªTÁ|ÄÝ©ÊÃþ«¬
¤@Ó NOTATION Ãþ«¬ªºÄݩʼÐÃѤF¤@Ïú¥Î¤_¸ÑÄÀÉO¦¹ÄݩʬÛÃöªº¤¸¯Àªº°Oªk¡A¦¹°Oªk¤¤¥Î¨t²Î©Î¤½¦@¼ÐÃѲŦb
DTD ¤¤Án©ú¡C
¦³®Ä©Ê¬ù§ô: °OªkÄÝ©Ê
¦¹Ãþ«¬ªºÈ¥²¶·ÉOÁn©ú¤¤©Ò¥]§tªº°Oªk¦W¤§¤@¬Û¤Ç°t;Án©ú¤¤ªº©Ò¦³°Oªk¦W³£¥²¶·Án©ú¡C
¦³®Ä©Ê¬ù§ô: ¨CÏúÄÝ©ÊÃþ«¬¤@Ïú°Oªk
¨CÏú¤¸¯ÀÃþ«¬ªº NOTATION Äݩʤ£¯à¦h¤_¤@Ó¡C
¦³®Ä©Ê¬ù§ô: ªÅ¤¸¯À¨S¦³°Oªk
¥X¤_Ý®e©Ê¦Ò¼{¡AÁn©ú¬°
EMPTY ªº¤¸¯À¤£¯àÁn©úÃþ«¬¬° NOTATION ªºÄÝ©Ê¡C
¦³®Ä©Ê¬ù§ô: ªTÁ|
¦¹Ãþ«¬ªºÈ¥²¶·ÉOÁn©ú¤¤©Ò¥]§tªº Nmtoken
°O¸¹¤§¤@¬Û¤Ç°t¡C
¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡A¦P¤@ Nmtoken
¥u¯à¦b³æÓ¤¸¯ÀÃþ«¬ªºªTÁ|ÄÝ©ÊÃþ«¬¤¤¥X²{¤@¦¸¡C
ÄÝ©ÊÁn©ú´£¨Ñªº«H®§«ü©ú¤F¬YÄݩʬO§_¥²¶·¥X²{¡A¦P®É«ü©ú¤F¦b³QÁn©úªºÄݩʤ£¬O¥²¶·¥X²{¦Ó¤å¥ó¤¤¨S¦³¥X²{¦¹Äݩʪº±¡ªp¤U¡AXML
³B²z¾¹À³¦p¦ó³B²z¡C
ÄݩʯʬÙÈ
¦b¤@ÓÄÝ©ÊÁn©ú¤¤¡A#REQUIRED ªí¥Ü¥²¶·Á`¬O´£¨Ñ¦¹ÄÝ©Ê¡A#IMPLIED ªí¥Ü¤£´£¨Ñ¯Ê¬ÙÈ¡C¦pªGÁn©ú¬J¤£¬O #REQUIRED¡A¤]¤£¬O #IMPLIED¡A¨º¤\ AttValue
È¥]§t¤F©ÒÁn©úªº¯Ê¬ÙÈ;ÃöÁä¦r #FIXED ³W©w¦¹ÄÝ©Ê¥²¶·Á`¬O¦³¯Ê¬ÙÈ¡C¦pªGÁn©ú¤F¤@ӯʬÙÈ¡A·í XML
³B²z¾¹¹J¨ì¤@Ó³Q¬Ù²¤ªºÄݩʮɡA¥¦±N·í¦¨¦¹ÄÝ©Ê¥H¯Ê¬ÙÈ¥X²{
¦³®Ä©Ê¬ù§ô: ¥²¶·ªºÄÝ©Ê
¦pªG¯Ê¬ÙÈÁn©ú¬OÃöÁä¦r #REQUIRED¡A¨º¤\ÄݩʪíÁn©ú©Ò«üÃþ«¬ªº¤¸¯À¤¤³£¥²¶·¦³¦¹ÄÝ©Ê¡C
¦³®Ä©Ê¬ù§ô: ¦XªkªºÄݩʯʬÙÈ
³QÁn©úªºÄݩʯʬÙÈ¥²¶·º¡¨¬³QÁn©úªºÄÝ©ÊÃþ«¬ªºµüªk¬ù§ô¡C
¦³®Ä©Ê¬ù§ô: ©T©wªºÄݩʯʬÙÈ
¦pªG¬YÄݩʪº¯Ê¬ÙÈ¥ÎÃöÁä¦r #FIXED
Án©ú¡A¦¹Äݩʪº©Ò¦³¹ê¨Ò¥²¶·¤Ç°t¸Ó¯Ê¬ÙÈ¡C
ÄݩʪíÁn©úªº¨Ò¤l¡G
<!ATTLIST termdef id ID #REQUIRED name CDATA #IMPLIED> <!ATTLIST list type (bullets|ordered|glossary) "ordered"> <!ATTLIST form method CDATA #FIXED "POST"> |
3.3.3 ÄÝ©Ê-ȹ諸³WS¤Æ¡]Attribute-Value Normalization¡^
¦b±NÄݩʪºÈ¶Çµ¹À³¥Î©ÎÀËÅç¨ä¦³®Ä©Ê¤§«e¡AXML ³B²z¾¹¥²¶·¨Ï¥Î¤U±ªººâªk¡]©Î¨Ï¥Î¨ä¥L¯à¨Ï¶Çµ¹À³¥ÎªºÈÉO¥Î¦¹ºâªk±o¨ìªºÈ¬Û¦Pªº¤èªk¡^±N¨ä³WS¤Æ¡C
-
©Ò¦³ªº¦æ§À¥²¶·¦b¿é¤J®É¦p 2.11
¦æ§À³B²z¤¤©Òz³WS¦¨ #xA¡A¥»ºâªkªº¨ä§E³¡¤À§@¥Î¤_¥H¦¹¤èªk³WS¤Æ¤§¦Zªº¤å¥»¡C
-
¶}©l®É³WS¤Æ¤§¦ZªºÈ¥]§tªÅ¦r²Å¦ê¡C
-
¹ï¤_¥¼¸g³WS¤ÆªºÄÝ©ÊȤ¤ªº¨CÓ¦r²Å¡A¹êÊ^¤Þ¥Î©Î¦r²Å¤Þ¥Î¡A±q²Ä¤@Ó¶}©l¡Aª½¨ì³Ì¦Z¤@Ó¡A°µ¦p¤U¾Þ§@¡G
-
¹ï¤_¤@Ó¦r²Å¤Þ¥Î¡A±N¨ä©Ò¤Þ¥Îªº¦r²Å¥[¦b³WS¤Æ¤§¦ZªºÈªº¥½§À¡C
-
¹ï¤_¤@Ó¹êÊ^¤Þ¥Î¡A¹ï¦¹¹êÊ^ªº¸m´«¤å¥»»¼Âk¦a¨Ï¥Î¥»ºâªkªº²Ä 3 ¨B¡C
-
¹ï¤_¤@Ӫťզr²Å¡]#x20, #xD, #xA, #x9¡^¡A¦b³WS¤Æ¤§¦ZªºÈªº¥½§À¥[¤@ӪŮæ¦r²Å¡]#x20¡^¡C
-
¹ï¤_¨ä¥L¦r²Å¡A±N¨ä¥[¦b³WS¤Æ¤§¦ZªºÈªº¥½§À¡C
¦pªGÄÝ©ÊȪºÃþ«¬¤£¬O CDATA¡A¨º¤\ XML
³B²z¾¹¥²¶·Ä~Äò³B²z³WS¤Æ¤§¦ZªºÈ¡A¥h±¼¨ä«e¾É©M§ÀÀHªÅ®æ¡]#x20¡^¦r²Å¡A¦}±NªÅ®æ¡]#x20¡^¦r²Å§Ç¦C´À´«¦¨³æӪŮæ¡]#x20¡^¦r²Å¡C
ª`·N¡A¦pªG¥¼¸g³WS¤ÆªºÄÝ©ÊȤ¤¥]§t¹ïªÅ®æ¦r²Å¡]#x20¡^¥H¥~ªºªÅ¥Õ¦r²Åªº¤Þ¥Î¡A¨º¤\³WS¤Æ¤§¦ZªºÈ¥]§t³Q¤Þ¥Îªº¦r²Å¥»¨¡]#xD, #xA or
#x9¡^¡A¦Ó¤£¬OªÅ®æ¡]#x20¡^¡C³oÉO¥¼¸g³WS¤ÆªºÄÝ©ÊȤ¤¥]§tªÅ¥Õ¦r²Å¡]¤£¬O¤Þ¥Î¡^ªº±¡ªp¤£¦P¡A¦b¨ºÏú±¡ªp¤UªÅ¥Õ¦r²Å³Q¸m´«¦¨ªÅ®æ¦r²Å¡]#x20¡^¡C¦P®É³o¤]ÉO¥¼¸g³WS¤ÆªºÄÝ©ÊȤ¤©Ò¥]§tªº¹êÊ^¤Þ¥Îªº¸m´«¤å¥»¤¤¥]§tªÅ¥Õ¦r²Åªºªº±¡ªp¤£¦P¡A¦b¨ºÏú±¡ªp¤U¡A¹êÊ^¤Þ¥Îªº¸m´«¤å¥»³Q»¼Âk³B²z¡AªÅ¥Õ¦r²Å³Q¸m´«¦¨ªÅ®æ¦r²Å¡]#x20¡^¡C
¤£¶i¦æÅçµýªº³B²z¾¹À³¸Ó±N©Ò¦³©|¥¼Åª¨ì¨äÁn©úªºÄÝ©Ê·í¦¨Án©ú¬° CDATA ³B²z¡C
¥H¤U¬OÄݩʳWS¤Æªº¨Ò¤l¡C¦³¦p¤UÁn©ú¡G
<!ENTITY d "
">
<!ENTITY a "
">
<!ENTITY da "
"> |
¤Uªí¤¤¥ªÃä¤@¦C¤¤ªºÄÝ©ÊÈ»¡©ú¦b a
Án©ú¬° NMTOKENS ªº±¡ªp¤U³WS¤Æ¬°¤¤¶¡¤@¦Cªº¦r²Å§Ç¦C¡A¦b
a
Án©ú¬° CDATA ªº±¡ªp¤U³WS¤Æ¬°¥kÃä¤@¦C¤¤ªº¦r²Å§Ç¦C¡C
¥¼ªR¹êÊ^TH>ÄÝ©ÊÈ»¡©ú
a Án©ú¬° NMTOKENS |
a Án©ú¬° CDATA |
|
x y z |
#x20 #x20 x y z |
|
A #x20 B |
#x20 #x20 A #x20 #x20 B #x20 #x20 |
a=
"

A

B
" | |
#xD #xD A #xA #xA B #xD #xA |
#xD #xD A #xA #xA B #xD #xD |
ª`·N¡A¦b a
Án©ú¬° NMTOKENS
Ãþ«¬ªº±¡ªp¤U¡A³Ì¦Z¤@Ó¨Ò¤l¤£¬O¦³®Äªº¡]¦ý¬O¬O®æ¦¡¥¿Ú̪º¡^¡C
[©w¸q¡G±ø¥ó¬q¬O¤å¥óÃþ«¬Án©ú¥~³¡¤l¶°ªº¤@³¡¤À¡A¨ú¨M¤_¬ÛÀ³ªºÃöÁä¦r¡A¥¦Ì©Î³Q¥]§t¦b
DTD ÅÞ¿èµ²ÌÛ¤§¤º¡A©Î³Q±Æ°£¦b DTD ÅÞ¿èµ²ÌÛ¤§¥~¡C]
±ø¥ó¬q
¦³®Ä©Ê¬ù§ô: ÄY®æªº±ø¥ó¬q/°Ñ¼Æ¹êÊ^´O®M
¦pªG¤@Ó±ø¥ó¬qªº "<![
"¡A"[
" ©Î "]]>
"
¤¤ªº¥ô·N¤@Ó¥]§t¦b¤@ӰѼƹêÊ^¤¤ªº¸m´«¤å¥»¤¤¡A¥¦Ì¥²¶·¥þ³¡¦b¦¹¦P¤@¸m´«¤å¥»¤¤¡C
¦P¤º³¡©Î¥~³¡ DTD ¤l¶°¤@¼Ë¡A±ø¥ó¬q¥i¥H¥]§t¤@өΦhÓ§¹¾ãªºÁn©ú¡Aª`ÄÀ¡A³B²z«ü¥O¡A©Î´O®Mªº±ø¥ó¬q¡A¨ä¶¡¥i¥H§¨ÂøªÅ¥Õ¡C
¦pªG±ø¥ó¬qªºÃöÁä¦r¬O INCLUDE¡A¨º¤\±ø¥ó¬qªº¤º®e¬O DTD ªº¤@³¡¤À¡A¦pªG±ø¥ó¬qªºÃöÁä¦r¬O
IGNORE¡A¨º¤\±ø¥ó¬qªº¤º®eÅÞ¿è¤W¤£¬O DTD ªº¤@³¡¤À¡C¦pªG¤@ÓÃöÁä¦r¬° INCLUDE ªº±ø¥ó¬q¥X²{¦b§ó¤jªºÃöÁä¦r¬°
IGNORE ªº±ø¥ó¬q¤¤¡A¤º¥~¨âÓ±ø¥ó¬q³£³Q©¿²¤¡C¦b¹ï³Q©¿²¤ªº±ø¥ó¬qªº¤º®e¶i¦æ»yªk¤ÀªR®É¡A±qºòÀHÃöÁä¦rªº "[
"
¤§¦Z¶}©l¡A°£¤F±ø¥ó¬qªº¶}©l "<![
" ©Mµ²§À "]]>
"
¥H¥~ªº©Ò¦³¦r²Å³£³Q©¿²¤¡Aª½¨ì§ä¨ì¬Û¤Ç°tªº±ø¥ó¬qµ²§À¡C¦b¦¹¹Lµ{¤¤°Ñ¼Æ¹êÊ^¤£³QÃѧO¡C
¦pªG±ø¥ó¬qªºÃöÁä¦r¬O¤@ӰѼƹêÊ^¤Þ¥Î¡A³B²z¾¹¦b¨M©w¬O§_¥]§t©Î©¿²¤¦¹±ø¥ó¬q«e¡A¥²¶·¥ý±N¸Ó°Ñ¼Æ¹êÊ^¸m´«¦¨¨ä¤º®e¡C
¤@Ó¨Ò¤l¡G
<!ENTITY % draft 'INCLUDE' > <!ENTITY % final 'IGNORE' > <![%draft;[ <!ELEMENT book (comments*, title, body, supplements?)> ]]> <![%final;[ <!ELEMENT book (title, body, supplements?)> ]]>
|
[©w¸q¡G¤@Ó XML
¤å¥ó¥i¯à¥]§t¤@өΦhÓ¦sÀx³æ¤¸¡C¥¦Ì³QºÙ¬°¹êÊ^¡]entity¡^;¥¦Ì³£¨ã¦³¤º®e¦}¥B³£¥Î¦W¦r¶i¦æ¼ÐÃÑ¡]°£¤F¤å¥ó¹êÊ^¡A¨£¤U¡A©M¥~³¡ DTD ¤l¶°¤§¥~¡^¡C]
¨C¤@Ó XML ¤å¥ó¦³¤@ÓºÙ¬°¤å¥ó¹êÊ^ªº¹êÊ^¡A¥¦§@¬° XML
³B²z¾¹³B²zªº°_ÂI¦}¥i¯à¥]§t¤F¾ãÓ¤å¥ó¡C
¹êÊ^¥i¥H¬O¤wªRªº©Î¥¼ªRªº¡C[©w¸q¡G¤wªR¹êÊ^¡]parsed
entity¡^ªº¤º®e³QºÙ¬°¥¦ªº¸m´«¤å¥»;¦¹¤å¥»³Q¬Ý¦¨¬O¤å¥ó¾ãÊ^ªº¤@³¡¤À¡C]
¥¼ªR¹êÊ^¡]unparsed entity¡^¬O¤@Ïú¸ê·½¡A¨ä¤º®e¥i¥H¬O¤]¥i¥H¤£¬O¤å¥»¡A¦}¥B¡A¦pªG¬O¤å¥»ªº¸Ü¡A¥i¥H¤£¬O
XML ¤å¥»¡C¨C¤@Ó¥¼ªR¹êÊ^¦³¤@Ó¬ÛÃöÁpªº¥Î¦W¦r¼ÐÃѪº°Oªk¡C°£¤Fn¨D XML
³B²z¾¹¯à¦VÀ³¥Î´£¨Ñ¹êÊ^©M°Oªkªº¼ÐÃѲŤ§¥~¡AXML ¹ï¥¼ªR¹êÊ^ªº¤º®e¤£§@¥ô¦ó¨î¡C]
¤wªR¹êÊ^¥H¹êÊ^¤Þ¥Îªº¤è¦¡¨Ï¥Î¦W¦r¨Ó½Õ¥Î;¥¼ªR¹êÊ^¥Î ENTITY ©Î ENTITIES Äݩʤ¤µ¹¥Xªº¦W¦r½Õ¥Î¡C
[©w¸q¡G´¶³q¹êÊ^¡]general
entity¡^¬O¨º¨Ç¦b¤å¥ó¤º®e¤¤¨Ï¥Îªº¹êÊ^¡C¦b¥»³WS¤¤¡A´¶³q¹êÊ^¦³®É¥Î¥¼×¹¢ªº³N»yentity¨Óªí¥Ü¡C] [©w¸q¡G°Ñ¼Æ¹êÊ^¬O¥Î¤_ DTD
¤ºªº¤wªR¹êÊ^¡C]³o¨âÃþ¹êÊ^¥Î¤£¦P§Î¦¡ªº¤Þ¥Î¡A¦b¤£¦Pªº¤W¤U¤å¤¤ÃѧO¡C¥t¥~¡A¥¦Ì¨Ï¥Î¤£¦Pªº¦W°ì¡F¨ã¦³¬Û¦P¦W¦rªº°Ñ¼Æ¹êÊ^©M´¶³q¹êÊ^¬O¨âÓºIµM¤£¦Pªº¨âÓ¹êÊ^¡C
¤@Ó¦r²Å¤Þ¥Î¤Þ¥Î ISO/IEC 10646
¦r²Å¶°¤¤ªº¤@Ó¦r²Å¡C¨Ò¦p¤£¯à¥Î¿é¤J³]³Æª½±µ¿é¤Jªº¦r²Å¡C
¦r²Å¤Þ¥Î
®æ¦¡¥¿Ú̩ʬù§ô: ¦Xªk¦r²Å
¥Î¦r²Å¤Þ¥Î¤Þ¥Îªº¦r²Å¥²¶·¤Ç°t Char ²£¥Í¦¡¡C
¦pªG¦r²Å¤Þ¥Î¥H "&#x
" ¶}ÀY¡Aª½¨ì²×µ² ;
ªº¼Æ¦r©M¦r¥À´£¨Ñ¤F¬Y¦r²Å¦b ISO/IEC
10646 ¤¤¥N½Xªº¤@Ó¤Q¤»¶i¨îªí¥Ü¡C¦pªG¥¦¶È¥H "&#
" ¶}ÀY¡Aª½¨ì²×µ² ;
ªº¼Æ¦r´£¨Ñ¤F¬Y¦r²Åªº¥N½Xªº¤Q¶iȪí¥Ü¡C
¹êÊ^¤Þ¥Î¡]entity reference¡^¤Þ¥Î¤@Ó©R¦W¹êÊ^ªº¤º®e¡C¹ï¤wªR´¶³q¹êÊ^ªº¤Þ¥Î¨Ï¥Î "and"
¸¹¡]&
¡^©M¤À¸¹¡];
¡^§@¬°©w¬É²Å¡C°Ñ¼Æ¹êÊ^¤Þ¥Î«h¨Ï¥Î¦Ê¤À¸¹¡]%
¡^©M¤À¸¹¡];
¡^§@¬°©w¬É²Å¡C
¹êÊ^¤Þ¥Î
®æ¦¡¥¿Ú̩ʬù§ô: Án©ú¹êÊ^
¦b¤@Ó¨S¦³¥ô¦ó DTD ªº¤å¥ó¡A©Î¤@Ó¥u¦³¤£¥]§t°Ñ¼Æ¹êÊ^¤Þ¥Îªº¤º³¡ DTD ¤l¶°ªº¤å¥ó¡A©Î¤@Ó
"standalone='yes'
" ªº¤å¥ó¤º¡A¤£¦b¥~³¡¤l¶°©Î°Ñ¼Æ¹êÊ^¤ºªº¹êÊ^¤Þ¥Î¤¤µ¹¥Xªº Name
¥²¶·ÉO¤£¦b¥~³¡¤l¶°©Î°Ñ¼Æ¹êÊ^¤º¹êÊ^Án©ú¤¤©Òµ¹¥Xªº¬Û¤Ç°t¡A¦ý®æ¦¡¥¿Ú̪º¤å¥ó¤£»ÝnÁn©ú¥H¤Uªº³o¨Ç¹êÊ^¡Gamp
¡Alt
¡Agt
¡Aapos
©M
quot
¡C´¶³q¹êÊ^ªºÁn©ú¥²¶·¥ý¤_¥ô¦ó¦bÄݩʪíÁn©ú¤¤ªº¯Ê¬ÙȤ¤¥X²{ªº¹ï¥¦ªº¤Þ¥Î¡Cª`·N¡A¹ï¤_¦b¥~³¡¤l¶°©Î¥~³¡°Ñ¼Æ¹êÊ^¤¤Án©úªº¹êÊ^¡A¤£¶i¦æÅçµýªº³B²z¾¹¤£¥²nŪ¨ú©M³B²z¥¦ÌªºÁn©ú¡F¹ï³o¨Ç¤å¥ó¡A¶È·í
standalone='yes'
®É¡A¹êÊ^¥²¶·³QÁn©úªº³W«h¤~¬O¤@Ӯ榡¥¿Ú̩ʬù§ô¡C
¦³®Ä©Ê¬ù§ô: Án©ú¹êÊ^
¦b¤@Ó¦³¥~³¡¤l¶°©Î¥~³¡°Ñ¼Æ¹êÊ^¥B "standalone='no'
"
ªº¹êÊ^¤¤¡A¹êÊ^¤Þ¥Î¤¤µ¹¥Xªº Name
¥²¶·ÉO¹êÊ^Án©ú¤¤©Òµ¹¥Xªº¬Û¤Ç°t¡C¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡A¦³®Äªº¤å¥óÀ³¸Ó¥H"4.6 ¹w©w¸q¹êÊ^"¤¤ªºÂ²¤Æ§Î¦¡Án©ú¹êÊ^
amp
¡Alt
¡Agt
¡Aapos
©M
quot
¡C°Ñ¼Æ¹êÊ^ªºÁn©ú¥²¶·¥ý¤_¥ô¦ó¹ï¥¦ªº¤Þ¥Î¡CÃþ¦ü¦a¡A´¶³q¹êÊ^ªºÁn©ú¥²¶·¥ý¤_¥ô¦ó¦bÄݩʪíÁn©ú¤¤ªº¯Ê¬ÙȤ¤¥X²{ªº¹ï¥¦ª½±µ©Î¶¡±µªº¤Þ¥Î¡C
®æ¦¡¥¿Ú̩ʬù§ô: ¤wªR¹êÊ^
¹êÊ^¤Þ¥Î¤£¯à¥]§t¤@Ó¥¼ªR¹êÊ^ªº¦W¦r¡C¥¼ªR¹êÊ^¥u¯à¦bÁn©ú¬°
ENTITY ©Î ENTITIES ªºÄÝ©ÊȤ¤¤Þ¥Î¡C
®æ¦¡¥¿Ú̩ʬù§ô: µL»¼Âk
¤wªR¹êÊ^¤£¯àª½±µ©Î¶¡±µ¦a¥]§t¹ï¦Û¨ªº»¼Âk¤Þ¥Î¡C
®æ¦¡¥¿Ú̩ʬù§ô: ¦b DTD ¤º
°Ñ¼Æ¹êÊ^¤Þ¥Î¥u¯à¦b DTD ¤¤¥X²{¡C
¦r²Å¤Þ¥Î©M¹êÊ^¤Þ¥Îªº¨Ò¤l¡G
Type <key>less-than</key> (<) to save options. This document was prepared on &docdate; and is classified &security-level;. |
°Ñ¼Æ¹êÊ^¤Þ¥Îªº¨Ò¤l¡G
<!-- declare the parameter entity "ISOLat2"... --> <!ENTITY % ISOLat2 SYSTEM "http://www.xml.com/iso/isolat2-xml.entities" > <!-- ... now reference it. --> %ISOLat2; |
[©w¸q¡G¹êÊ^¥H¦p¤U¤è¦¡Án©ú¡G]
¹êÊ^Án©ú
¹êÊ^¤Þ¥Î¤¤ªº Name
¼ÐÃѤF¸Ó¹êÊ^;¹ï¤_¥¼ªR¹êÊ^¡AENTITY ©Î ENTITIES
ÄݩʪºÈ¼ÐÃѤF¸Ó¹êÊ^¡C¦pªG¦P¤@¹êÊ^³QÁn©ú¤F¤£¤î¤@¦¸¡A¸j©w²Ä¤@Ó¹J¨ìªºÁn©ú¡C¥Ñ¨Ï¥ÎªÌ¿ï¾Ü¡A¦pªG¹êÊ^³Q¦h¦¸Án©ú¡AXML ³B²z¾¹¥i¥Hµ¹¥Xĵ§i¡C
[©w¸q¡G¦pªG¹êÊ^©w¸q¬O¤@Ó EntityValue
¡A³Q©w¸qªº¹êÊ^³QºÙ¬°¤º³¡¹êÊ^¡C]
¤º³¡¹êÊ^¨S¦³³æ¿Wªºª«²z¦sÀx¹ï¶H¡A¹êÊ^ªº¤º®e¦bÁn©ú¤¤µ¹¥X¡Cª`·N±`¶q¹êÊ^Ȥ¤¤@¨Ç¹êÊ^©M¦r²Å¤Þ¥Îªº³B²z¥i¯àn¨D²£¥Í¥¿Ú̪º¸m´«¤å¥»¡G°Ñ¨£"4.5 ¤º³¡¸m´«¤å¥»ªºÌÛ³y"¡C
¤º³¡¹êÊ^¬O¤wªR¹êÊ^¡C
¤º³¡¹êÊ^Án©úªº¨Ò¤l¡G
<!ENTITY Pub-Status "This is a pre-release of the specification."> |
[©w¸q¡G¦pªG¹êÊ^¤£¬O¤º³¡ªº¡A¨º¤\¥¦¬O¤@Ó¥~³¡¹êÊ^¡AÁn©ú¦p¤U¡G]
¥~³¡¹êÊ^Án©ú
¦pªG¦³ NDataDecl
¡A¨º¤\³o¬O¤@Ó´¶³q¥¼ªR¹êÊ^¡F§_«h¥¦¬O¤@Ó¤wªR¹êÊ^¡C
¦³®Ä©Ê¬ù§ô: Án©ú°Oªk
Name
¥²¶·ÉO°Oªkªº¦W¦r¬Û¤Ç°t¡C
[©w¸q¡GSystemLiteral
³QºÙ¬°¸Ó¹êÊ^ªº¨t²Î¼ÐÃѲšC³o¬O¤@Ó URI ¤Þ¥Î¡]¦b [IETF RFC 2396]
¤¤©w¸q¡A¦b [IETF RFC
2732] ¤¤§ó·s¡^¡A¥i¥H¥Ñ¦¹Àò±o XML ³B²z¾¹ªº¿é¤J¥Î¤_Ì۫ئ¹¹êÊ^ªº¸m´«¤å¥»¡C] ¤ùÂ_¼ÐÃѲš]¥H #
¶}ÀY¡^¥X²{¦b¨t²Î¼ÐÃѲŤ¤¬O¤@Ó¿ù»~¡C¦pªG¤@Ó¤ùÂ_¼ÐÃѲŧ@¬°¨t²Î¼ÐÃѲŪº³¡¤Àµ¹¥X¡AXML ³B²z¾¹¥i¥Hµ¹¥X¤@Ó¿ù»~¡C°£«D¦b¥»³WSS³ò¤§¥~¥t¥~µ¹¥X¡]¦p¡A¤@Ó¯S®í
DTD ¤¤©w¸qªº±M¥Î XML ¤¸¯ÀÃþ«¬¡A©Î¤@Ó¯S®íÀ³¥Î³WS¤¤©w¸qªº³B²z«ü¥O¡^¡A¬Û¹ï URI «ü¬Û¹ï¤_¹êÊ^Án©ú©Ò¦b¸ê·½ªº¦ì¸m¡C¦]¦¹¡A¤@Ó URI ¥i¯à¬O¬Û¹ï¤_¤å¥ó¹êÊ^¡A©Î¬Û¹ï¤_¥]§t¥~³¡ DTD
¤l¶°ªº¹êÊ^¡A©Î¬Û¹ï¤_¨ä¥L¤@¨Ç¥~³¡°Ñ¼Æ¹êÊ^¡C
URI ¤Þ¥Î»Ýn¹ï¬Y¨Ç¦r²Å¶i¦æ½s½X©MÂà¸q¡C¤£¤¹³\¥X²{ªº¦r²Å¥]¬A©Ò¦³«D ASCII ¦r²Å¡A¥H¤Î [IETF RFC 2396] ²Ä
2.4 ¸`¤¤¦C¥Xªº¤£³Q¤¹³\ªº¦r²Å¡A¤«¸¹¡]#
¡^¡B¦Ê¤À¸¹¡]%
¡^¡^ ©M [IETF RFC 2732]
¤¤¤¹³\ªº¤è¬A¸¹°£¥~¡C¤£³Q¤¹³\ªº¦r²Å¥²¶·¥Î¦p¤Uªº¤èªkÂà¸q¡G
-
¨CÓ¤£³Q¤¹³\ªº¦r²Åº¥ý³QÂà´«¦¨¤@өΦhÓ¦r¸`ªº UTF-8 [IETF RFC 2279]
½s½X¡C
-
¥ô¦ó¹ïÀ³¤_¤@Ó¤£³Q¤¹³\ªº¦r²Åªº¤K¦ì²Õ¥Î URI Âà¸qÉó¨îÂà¸q¡]§Y¡A±N¨äÂà´«¦¨%
HH¡A¨ä¤¤ HH
¬O¦r¸`Ȫº¤Q¤»¶i¨î°Oªk¡^¡C
-
¥Î±o¨ìªº¦r²Å§Ç¦C¸m´«ì¨Óªº¦r²Å¡C
°£¤F¨t²Î¼ÐÃѲŤ§¥~¡A¥~³¡¼ÐÃѲÅÁÙ¥i¥H¥]§t¤½¦@¼ÐÃѲšC¸Õ¹Ï¦s¨ú¹êÊ^¤º®eªº XML
³B²z¾¹¥i¥H¥Î¤½¦@¼ÐÃѲŸյ۲£¥Í¤@Ó¥i¿ï URI ¤Þ¥Î¡C¦pªG³B²z¾¹µLªk°µ¨ì³o¤@ÂI¡A¥¦¥²¶·¨Ï¥Î¨t²Î±`¶q¤¤ªº URI
¤Þ¥Î¡C¦b¸ÕµÛ¤Ç°t¤§«e¡A¤½¦@¼ÐÃѲŤ¤©Ò¦³ªÅ¥Õ¦r²Å¦ê¥²¶·³Q³WS¬°³æӪŮæ¦r²Å¡]#x20¡^¡A¦P®É¥²¶·¥h±¼«e¾É©M§ÀÀHªÅ¥Õ¡C
¥~³¡¹êÊ^Án©úªº¨Ò¤l¡G
<!ENTITY open-hatch SYSTEM "http://www.textuality.com/boilerplate/OpenHatch.xml"> <!ENTITY open-hatch PUBLIC "-//Textuality//TEXT Standard open-hatch boilerplate//EN" "http://www.textuality.com/boilerplate/OpenHatch.xml"> <!ENTITY hatch-pic SYSTEM "../grafix/OpenHatch.gif" NDATA gif > |
[©w¸q¡G¨CÓ¥~³¡¤wªR¹êÊ^À³¸Ó¥H¤å¥»Án©ú§@¬°¶}©l¡C]
¤å¥»Án©ú
¤å¥»Án©ú¥²¶·¥H±`¶q§Î¦¡µ¹¥X¡A¦Ó¤£¯à¨Ï¥Î¤wªR¹êÊ^ªº¤Þ¥Î¡C¤å¥»Án©ú¥u¯à¦b¥~³¡¤wªR¹êÊ^ªº¶}ÀY¥X²{¡A¤£¤¹³\¦b¨ä¥L¥ô¦ó¦a¤è¥X²{¡C¦b¥~³¡¤wªR¹êÊ^¤¤ªº¤å¥»Án©ú¤£³Q»{¬°¬O¨ä¸m´«¤å¥»ªº¤@³¡¤À
¦pªG¤å¥ó¹êÊ^¤Ç°t document
²£¥Í¦¡¡A¨º¤\¥¦¬O®æ¦¡¥¿Ú̪º¡C¦pªG¥~³¡´¶³q¤wªR¹êÊ^¤Ç°t extParsedEnt
²£¥Í¦¡¡A¨º¤\¥¦¬O®æ¦¡¥¿Ú̪º¡C¦pªG¥~³¡°Ñ¼Æ¹êÊ^¤Ç°t extPE
²£¥Í¦¡¡A¨º¤\¥¦¬O®æ¦¡¥¿Ú̪º¡C®ÚÕu©w¸q¡A¥~³¡°Ñ¼Æ¹êÊ^¬O®æ¦¡¥¿Ú̪º¡C
®æ¦¡¥¿Ú̪º¥~³¡¤wªR¹êÊ^
¦pªG¤º³¡´¶³q¤wªR¹êÊ^ªº¸m´«¤å¥»¤Ç°t content
²£¥Í¦¡¡A¨º¤\¥¦¬O®æ¦¡¥¿Ú̪º¡C®ÚÕu©w¸q¡A©Ò¦³¤º³¡ªº°Ñ¼Æ¹êÊ^³£¬O®æ¦¡¥¿Ú̪º¡C
¹êÊ^²Å¦X®æ¦¡¥¿Ú̩ʪº¤@Óµ²ªG¬O XML ¤å¥óªºÅÞ¿è©Mª«²zµ²ÌÛ¬OÄY®æ´O®Mªº¡F°_©l¼Ðñ¡Aµ²§ô¼Ðñ¡AªÅ¤¸¯À¼Ðñ¡A¤¸¯À¡Aª`ÄÀ¡A³B²z«ü¥O¡A¦r²Å¤Þ¥Î¡A©Î¹êÊ^¤Þ¥Î³£¤£¯à¦b¤@Ó¹êÊ^¤¤¶}©l¦Ó¦b¥t¤@Ó¹êÊ^¤¤µ²§ô¡C
XML ¤å¥ó¤¤ªº¨CÓ¥~³¡¤wªR¹êÊ^³£¥i¥H¹ï¨ä¦r²Åªö¥Î¤@Ïú¤£¦Pªº½s½X¤è®×¡C©Ò¦³ XML ³B²z¾¹¥²¶·¯àŪ¨ú½s½X¬° UTF-8 ©M UTF-16
ªº¹êÊ^¡C¥»³WS¤¤ªº³N»y "UTF-8" ©M "UTF-16" ¤£Óì¥Î¤_¥ô¦óªö¥Î¨ä¥L¼ÐÃÑ¡]label¡^ªº¦r²Å½s½X¡A§Y¨Ï³oÏú½s½X©Î¼ÐÃÑÉO UTF-8 ©Î
UTF-16 «D±`Ãþ¦ü¡C
¥H UTF-16 ½s½Xªº¹êÊ^¥²¶·¥H ISO/IEC 10646 ¼W¸É F¡A[ISO/IEC
10646-2000] ¼W¸É H¡A [Unicode] ªº 2.4 ¸`©M
[Unicode3] 2.7
¸`¡]¹s¼e«×¤£¶¡Â_ªÅ®æ¦r²Å¡A#xFEFF¡^¤¤©Ò´yzªº¦r¸`¦¸§Ç¼Ð°O¡]Byte Order Mark¡^¶}ÀY¡C³o¬O¤@Ó½s½Xñ¦W¡A§Y¤£¬O XML
¤å¥ó¤¤¼Ð°Oªº¤@³¡¤À¡A¤]¤£¬O XML ¤å¥ó¦r²Å¼ÆÕuªº¤@³¡¤À¡CXML ³B²z¾¹¥²¶·¯à¥Î¦¹¦r²Å°Ï¤À UTF-8 ½s½X©M UTF-16 ½s½Xªº¤å¥ó¡C
ÁöµM XML ³B²z¾¹¥u³Qn¨D¯àŪ¨ú UTF-8 ©M UTF-16 ½s½Xªº¹êÊ^¡A¤£¹L¹ï¤_¥@¬É¤WÁÙ¦³¨ä¥Lªº½s½X¤è®×¤w¦³¦@ÃÑ¡C¦³®É¥i¯à·QÅý XML
³B²z¾¹Åª¨ú¥H¨º¨Ç½s½X¤è®×½s½Xªº¹êÊ^¡C¦b¨S¦³¥~³¡¦r²Å½s½X«H®§¡]¦p MIME ÀY¡^ªº±¡ªp®É¡A¥H¤£¦P¤_ UTF-8 ©M UTF-16
ªº½s½X¤è®×¦sÀxªº¹êÊ^¥²¶·¥H¥]§t½s½XÁn©úªº¤å¥»Án©ú¡]¨£ 4.3.1
¤å¥»Án©ú¡^¶}ÀY¡G
½s½XÁn©ú
[80] |
EncodingDecl |
::= |
S
'encoding' Eq ('"' EncName
'"' | "'" EncName
"'" ) |
[81] |
EncName |
::= |
[A-Za-z] ([A-Za-z0-9._] | '-')* |
/* ½s½X¤è®×ªº¦WºÙ¥u¥]§t©Ô¤B¦r¥À */ |
¦b¤å¥ó¹êÊ^¤¤¡A½s½XÁn©ú¬O XML Án©úªº¤@³¡¤À¡CEncName
¬O©Ò¥Î½s½X¤è®×ªº¦WºÙ¡C
¦b¤@Ó½s½XÁn©ú¤¤¡AÈ
"UTF-8
"¡A"UTF-16
"¡A"ISO-10646-UCS-2
" ©M
"ISO-10646-UCS-4
" À³¸Ó¥Î¤_ªí¥Ü Unicode ©Î ISO/IEC 10646 ¤¤ªº¦UÏú¤£¦P½s½X©MÅÜ´«¤è®×¡AÈ
"ISO-8859-1
"¡A"ISO-8859-2
"¡A...
"ISO-8859-
n" ¡]¨ä¤¤ n ¬O°Ï¶ô¸¹¡^À³¸Ó¥Î¤_ªí¥Ü ISO 8859
ªº¦UÓ³¡¤À¡A¦ÓÈ "ISO-2022-JP
"¡A"Shift_JIS
" ©M
"EUC-JP
" À³¸Ó¥Î¤_ªí¥Ü JIS X-0208-1997 ªº¦UÏú½s½X¡C«Øij¹ï¤_¦b Internet Assigned
Numbers Authority [IANA]
ª`¥Uªº¦r²Å½s½X¤è®×¡]¥H¦r²Å¶°¡]charset¡^ªº¤è¦¡¡^¡A°£¤F¥H¤W©Ò¦C¤§¥~ªº½s½X¤è®×¡AÀ³¸Ó¥Î¥¦Ìªºª`¥U¦W¤Þ¥Î¡C¨ä¥Lªº½s½XÀ³¸Ó¨Ï¥Î±a "x-"
«eºóªº¦WºÙ¡C±ýÉO¤§¤Ç°tªº XML ³B²z¾¹À³¸Ó¥H¤j¤p¼g±Ó·Pªº¤è¦¡¹ï¦r²Å½s½Xªº¦WºÙ¶i¦æ¤Ç°t¡C¦Ó¥B XML ³B²z¾¹³B²z¦r²Å½s½Xªº¦WºÙ®É¡AÀ³¸Ó±N¦b IANA
ª`¥Uªº½s½X¦WºÙ¸ÑÄÀ¬°¦b IANA ª`¥Uªº¬ÛÀ³½s½X¡A¤£µM´NÀ³¸Ó·í¦¨¥¼ª¾ªº½s½X¡]·íµM¡A¤£n¨D³B²z¾¹¤ä«ù©Ò¦³¦b IANA ª`¥Uªº½s½X¡^¡C
¦b¯Ê¤Ö¥~³¡¶Ç¿é¨óij¡]¦p HTTP ©Î MIME¡^©Ò´£¨Ñªº«H®§®É¡A¥H¤U±¡ªp§¡¬O¿ù»~¡GXML
³B²z¾¹±µ¦¬¨ìªº¹êÊ^ªº½s½X¤è®×ÉO¹êÊ^©Ò§t½s½XÁn©ú¤¤«ü¥Xªº½s½X¤è®×¤£¦P¡A¬J¤£¥H¦r¸`¦¸§Ç¼Ð°O¶}ÀY¤]¤£¥H½s½XÁn©ú¶}ÀYªº¹êÊ^¨Ï¥Î¤F¤£¦P¤_ UTF-8 ªº½s½X¡Cª`·N¡A¦]¬°
ASCII ¬O UTF-8 ªº¤@Ó¤l¶°¡AÄY®æ»¡¨Ó´¶³q ASCII ¦r²Å¤£»Ýn½s½XÁn©ú¡C
TextDecl
¥X²{¦b¥~³¡¹êÊ^¶}ÀY¥H¥~ªº¦a¤è¬O¤@ÓÄY«¿ù»~¡C
·í XML ³B²z¾¹¹J¨ìªº¹êÊ^¨Ï¥Î¤F¥¦¤£¯à³B²zªº½s½X®É¡A¬O¤@ÓÄY«¿ù»~¡C¦pªG¤@Ó XML
¹êÊ^³QÚÌ»{¬°¨Ï¥Î¤F¬YÏú½s½X¡]¥ÑÀq»{È¡A½s½XÁn©ú©Î°ª¼h¨óijÚÌ©w¡^¡A¦ý¬O¥¦¥]§t¤F¦b¦¹½s½X¤¤«Dªkªº¤K¦ì²Õ§Ç¦Cªº¸Ü¡A¬O¤@ÓÄY«¿ù»~¡C¦pªG¤@Ó XML
¹êÊ^¨S¦³½s½XÁn©ú¦Ó¥¦ªº¤º®e¤£¬O¦Xªkªº UTF-8 ©Î UTF-16 ½s½Xªº¸Ü¡A¤]¬O¤@ÓÄY«¿ù»~¡C
¥]§t½s½XÁn©úªº¤å¥»Án©úªº¨Ò¤l¡G
<?xml encoding='UTF-8'?> <?xml encoding='EUC-JP'?> |
¤Uªí¶×Á`¤F¦r²Å¤Þ¥Î¡A¹êÊ^¤Þ¥Î¡A©M¹ï¥¼ªR¹êÊ^ªº½Õ¥Î¥i¥H¥X²{ªº¤W¤U¤å¡A¥H¤Î¨CÏú±¡ªp¤U XML
³B²z¾¹ªº°Ê§@¡C³Ì¥ªÃä¤@¦Cªº¼ÐÃÑ«ü©ú¤FÃѧO®Éªº¤W¤U¤å¡G
- ¤º®e¤¤ªº¤Þ¥Î
- ¥i¥H¦b¤¸¯Àªº°_©l¼Ðñ¤§¦Z¡Aµ²§ô¼Ðñ¤§«eªº¥ô¦ó¦a¤è¥H¤Þ¥Î§Î¦¡¥X²{¡A¹ïÀ³¤_«D²×µ²²Å
content
¡C
- ÄÝ©ÊȤ¤ªº¤Þ¥Î
- ¥i¥H¦b°_©l¼Ðñ¤ºªºÄÝ©ÊȤ¤¡A©ÎÄÝ©ÊÁn©ú¤ºªº¯Ê¬ÙȤ¤¥H¤Þ¥Î§Î¦¡¥X²{;¹ïÀ³¤_«D²×µ²²Å
AttValue
¡C
- §@¬°ÄÝ©ÊÈ
- ¥i¥H¥H
Name
¦Ó¤£¬O¥H¤Þ¥Îªº§Î¦¡¥X²{¡A§@¬°Án©ú¬° ENTITY Ãþ«¬ªºÄݩʪºÈ¡A©Î¥i¥H§@¬°Án©ú¬° ENTITIES
Ãþ«¬ªºÄÝ©ÊȤ¤ªº¥HªÅ¥Õ¤À¹jªº°O¸¹¤§¤@¡C
- ¹êÊ^Ȥ¤ªº¤Þ¥Î
- ¥i¥H¦b°Ñ¼Æ¤¤©Î¤º³¡¹êÊ^ªº¹êÊ^Án©ú¤ºªº±`¶q¹êÊ^Ȥ¤¥H¤Þ¥Î§Î¦¡¥X²{¡F¹ïÀ³¤_«D²×µ²²Å
EntityValue
¡C
- DTD ¤¤ªº¤Þ¥Î
- ¦b DTD
ªº¤º³¡©Î¥~³¡¤l¶°¤¤ªº¤Þ¥Î¡A¦ý¦b EntityValue¡AAttValue¡API¡AComment¡ASystemLiteral¡APubidLiteral
©Î³Q©¿²¤ªº±ø¥ó¬qªº¤º®e¡]¨£ 3.4
±ø¥ó¬q¡^¤§¥~¡C
¦b DTD ¤§¥~¡A¦Ê¤À¸¹¦r²Å %
¨S¦³¯S®í§t¸q¡F¦]¦¹¦b DTD ¤¤ªº°Ñ¼Æ¹êÊ^¤Þ¥Î¦b content
¤¤¤£³Q·í¦¨¼Ð°OÃѧO¡CÃþ¦ü¦a¡A°£«D¥¼ªR¹êÊ^ªº¦W¦r¥X²{¦b¤wÓì·íÁn©úªºÄݩʪºÈ¤¤¡A§_«h¥¦Ì¤£³QÃѧO¡C
[©w¸q¡G·í¤@Ó¹êÊ^ªº¸m´«¤å¥»³Q·í¦¨¥X²{¦b¤Þ¥Î©Ò¦b¦ì¸mªº¤å¥óªº¤@³¡¤À¤@¼Ë³Q¦s¨ú©M³B²z®É¡AºÙ¦¹¹êÊ^³Q¥]§t¡C]
¨ä¸m´«¤å¥»¥i¥H¥]§t¦r²Å¼ÆÕu©M¼Ð°O¡]¤£¥]¬A°Ñ¼Æ¹êÊ^¡^¡A¨ä¤¤¼Ð°O¥²¶·¥H³q±`ªº¤è¦¡ÃѧO¡C¡]¦r²Å¦ê
"AT&T;
" ®i¶}¬° "AT&T;
"¡A©|¦sªº "and" ¸¹ &
¤£³QÃѧO¬°¹êÊ^¤Þ¥Îªº©w¬É²Å¡C¡^·í³Qªí¥Üªº¦r²Å³Q·í¦¨¥X²{¦b¤Þ¥Î©Ò¦b¦ì¸m¤@¼Ë³Q³B²z®É¡AºÙ¦¹¦r²Å¤Þ¥Î³Q¥]§t¡C
·í XML ³B²z¾¹ÃѧO¥X¤@Ó¹ï¤wªR¹êÊ^ªº¤Þ¥Î¡A¬°¤FÅçµý¸Ó¤å¥ó¡A³B²z¾¹¥²¶·¥]§t¦¹¹êÊ^ªº¸m´«¤å¥»¡C¦pªG¹êÊ^¬O¥~³¡ªº¡A¦Ó³B²z¾¹¤£¸Õ¹ÏÅçµý¸Ó
XML ¤å¥ó¡A¨º¤\³B²z¾¹¥i¥H¡A¦ý¤£¬O¥²¶·¡A¥]§t¦¹¹êÊ^ªº¸m´«¤å¥»¡C¦pªG¤@Ó¤£¶i¦æÅçµýªº³B²z¾¹¤£¥]§t¦¹¸m´«¤å¥»¡A¥¦¥²¶·³qª¾À³¥Î¥¦ÃѧO¥X¦ý¨S¦³Åª¨ú¦¹¹êÊ^¡C
³o±ø³W«h°ò¤_³o¼Ë¤@Ó¦@ÃÑ¡G¥Ñ SGML ©M XML
ªº¹êÊ^Éó¨î´£¨Ñªº°_ªì³]p¥Î¤_¤ä«ù¼Ò¶ô¤Æ³Ð§@ªº¦Û°Ê¥]§t¤£¤@©wÓì¦X¤_¨ä¥LÀ³¥Î¡A¤×¨ä¬O¤å¥óÂsÄý¡C¨Ò¦p¡A·íÂsÄý¾¹¹J¨ì¤@Ó¥~³¡¤wªR¹êÊ^¤Þ¥Î®É¡A¥i¯à¿ï¾Ü¥Î¥iµø¤è¦¡ªí¥Ü¨ä¦s¦b¦ý¥u¦b³Q½Ð¨D®É¤~Ū¨ú¥¦¶i¦æÅã¥Ü¡C
¥H¤U±¡ªp³Q¸T¤î¡A¦}ÌÛ¦¨¤@ÓÄY«¿ù»~¡G
·í¹êÊ^¤Þ¥Î¥X²{¦bÄÝ©ÊȤ¤©Î°Ñ¼Æ¹êÊ^¤Þ¥Î¥X²{¦b±`¶q¹êÊ^Ȥ¤®É¡A¥¦Ìªº¸m´«¤å¥»³Q·í¦¨¥X²{¦b¤Þ¥Î©Ò¦b¦ì¸mªº¤å¥óªº¤@³¡¤À¤@¼Ë³Q¦s¨ú©M³B²z¡A¸m´«¤å¥»¤¤ªº³æÂù¤Þ¸¹Á`¬O³Q·í¦¨¥¿±`ªº¼ÆÕu¦r²Å¦Ó¤£·|µ²§ô¦¹±`¶q¡C¨Ò¦p¡A¤U±ªº¨Ò¤l¬O®æ¦¡¥¿Ú̪º¡G
<!-- -->
<!ENTITY % YN '"Yes"' >
<!ENTITY WhatHeSaid "He said %YN;" > |
¦Ó³oÓ¨Ò¤l¤£¬O¡G
<!ENTITY EndAttr "27'" >
<element attribute='a-&EndAttr;> |
·í¥¼ªR¹êÊ^¦W¦r§@¬°°O¸¹¦bÁn©ú¬°
ENTITY ©Î ENTITIES Ãþ«¬ªºÄݩʪºÈ¤¤¥X²{®É¡A¶i¦æÅçµýªº³B²z¾¹¥²¶·±N¦¹¹êÊ^©M¥¦ªº¬ÛÃö°Oªkªº¨t²Î©M¤½¦@¡]¦pªG¦³ªº¸Ü¡^¼ÐÃѲųqª¾µ¹À³¥Î¡C
·í¹êÊ^Án©ú¤º¤@Ó´¶³q¹êÊ^¤Þ¥Î¥X²{¦b EntityValue
¤¤®É¡A¥¦¤£³Q³B²z¡A«O«ù¤£ÅÜ¡C
©M¥~³¡¤wªR¹êÊ^¤@¼Ë¡A°Ñ¼Æ¹êÊ^¥u»Ý¦b¶i¦æÅçµý®É³Q¥]§t¡C·í°Ñ¼Æ¹êÊ^¤Þ¥Î¦b
DTD ¤¤³QÃѧO¦}³Q¥]§t®É¡A¥¦ªº¸m´«¤å¥»³Q«e¦Z¦U¥[¤W¤@ӪŮæ¦r²Å¡F¨ä¥Øªº¦b¤_±j¨î°Ñ¼Æ¹êÊ^ªº¸m´«¤å¥»¥]§t¾ã¼ÆÓ
DTD ¤¤ªº»yªk°O¸¹¡C³o¤£Óì¥Î¤_¹êÊ^Ȥºªº°Ñ¼Æ¹êÊ^¡F¹ï¥¦Ìªº³B²z¨£ 4.4.5
§@¬°±`¶q³Q¥]§t
¦b°Q½×¤º³¡¹êÊ^ªº³B²z®É¡A°Ï¤À¨âÏú§Î¦¡ªº¹êÊ^ȬO¦³À°§Uªº¡C[©w¸q¡G±`¶q¹êÊ^È¡]literal
entity value¡^¬O¹ê»Ú¥X²{¦b¹êÊ^Án©ú¤¤¥Î¤Þ¸¹ÂX°_ªº¦r²Å¦ê¡C] ¹ïÀ³¤_«D²×µ²²Å EntityValue
¡C¸m´«¤å¥»¡]replacement text¡^¬O¸m´«¤F¦r²Å¤Þ¥Î©M°Ñ¼Æ¹êÊ^¤Þ¥Î¦Zªº¹êÊ^¤º®e¡C
¦b¤º³¡¹êÊ^Án©ú¡]EntityValue
¡^¤¤µ¹¥Xªº±`¶q¹êÊ^È¥i¥H¥]¬A¦r²Å¤Þ¥Î¡A°Ñ¼Æ¹êÊ^¤Þ¥Î©M´¶³q¹êÊ^¤Þ¥Î¡C³o¨Ç¤Þ¥Î¥²¶·³Q¾ãÓ¥]§t¤_±`¶q¹êÊ^Ȥ¤¡C¦p«ez¤è¦¡³Q¥]§tªº¹ê»Ú¸m´«¤å¥»¥²¶·¥]§t©Ò¦³³Q¤Þ¥Îªº°Ñ¼Æ¹êÊ^ªº¸m´«¤å¥»¡A¦P®É©Ò¦³³Q¤Þ¥Îªº¦r²Å¥²¶·¦b±`¶q¹êÊ^Ȥ¤¦r²Å¤Þ¥Î©Ò¦b¦ì¸m³Q¥]§t¡C¦ý´¶³q¹êÊ^ªº¤Þ¥Î¥²¶·«O«ù¤£ÅÜ¡A¤£³Q®i¶}¡C¨Ò¦p¡A¦pªG¦³¥H¤UªºÁn©ú¡G
<!ENTITY % pub "Éditions Gallimard" > <!ENTITY rights "All rights reserved" > <!ENTITY book "La Peste: Albert Camus, © 1947 %pub;. &rights;" > |
¨º¤\¹êÊ^ "book
" ªº¸m´«¤å¥»¬°¡G
La Peste: Albert Camus, ?nbsp;1947 Éditions Gallimard. &rights; |
¤@¥¹¤Þ¥Î "&book;
" ¥X²{¦b¤å¥óªº¤º®e©ÎÄÝ©ÊȤ¤®É¡A´¶³q¹êÊ^¤Þ¥Î
"&rights;
" À³¸Ó³Q®i¶}¡C
³o¨Ç²³æªº³W«h±N¥i¯à·|¦³Î`Âøªº¬Û¤¬§@¥Î;°Ñ¨£ "D. ¹êÊ^©M¦r²Å¤Þ¥Îªº®i¶}"
¤¤¹ï¤@ÓÃøªº¨Ò¤lªº¸Ô²Ó°Q½×¡C
[©w¸q¡G¹êÊ^©M¦r²Å¤Þ¥Î³£¥i¥H¥Î¤_Âà¸q¥ª¦y¬A¸¹¡A"and"
¸¹¡]&¡^©M¨ä¥L©w¬É²Å¡C´¶³q¹êÊ^¶°¦X¡]amp
¡Alt
¡Agt
¡Aapos
¡Aquot
¡^±Mªù¥Î¤_¦¹¥Øªº¡C¤]¥i¥H¨Ï¥Î¼ÆȦr²Å¤Þ¥Î¡F¤@¥¹³QÃѧO¡A¥¦Ì¥ß§Y³Q®i¶}¡A¦P®É¥¦Ì¥²¶·³Q·í¦¨¦r²Å¼ÆÕu¡A¦]¦¹¼ÆȦr²Å¤Þ¥Î
"<
" ©M "&
" ¥i¥H¥Î¤_Âà¸q¥X²{¦b¦r²Å¼ÆÕu¤¤ªº
<
©M &
¡C]
¤£ºÞ³o¨Ç¹êÊ^¬O§_³QÁn©ú¡A©Ò¦³ªº XML ³B²z¾¹¥²¶·¯àÃѧO¥¦Ì¡C¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡A¦³®Äªº XML
¤å¥óÀ³¸Ó¦p¨ä¥L¹êÊ^¤@¼Ë¡A¦b¨Ï¥Î³o¨Ç¹êÊ^«e¥ýÁn©ú¥¦Ì¡C¦pªG¹êÊ^ lt
©Î amp
³QÁn©ú¡A¥¦Ì¥²¶·³QÁn©ú¬°¸m´«¤å¥»¬°¬ÛÀ³³QÂà¸q¦r²Åªº¦r²Å¤Þ¥Î¡]¤p¤_¸¹©Î "and"
¸¹¡^ªº¤º³¡¹êÊ^¡F¹ï³o¨Ç¹êÊ^»ÝnÂà¸q¨â¦¸¥H¨Ï¹ï¥¦Ìªº¤Þ¥Î¯à±o¨ì®æ¦¡¥¿Ú̪ºµ²ªG¡C¦pªG¹êÊ^ gt
¡Aapos
©Î
quot
³QÁn©ú¡A¥¦Ì¥²¶·³QÁn©ú¬°¸m´«¤å¥»¬°¬ÛÀ³³QÂà¸qªº³æÓ¦r²Åªº¤º³¡¹êÊ^¡]©Î«ü¦V³QÂà¸q¦r²Åªº¦r²Å¤Þ¥Î¡F³o¨½Âà¸q¨â¦¸¬O¤£¥²nªº¡A¦ý¤]¬OµL®`ªº¡^¡C¨Ò¦p¡G
<!ENTITY lt "&#60;"> <!ENTITY gt ">"> <!ENTITY amp "&#38;"> <!ENTITY apos "'"> <!ENTITY quot """>
|
[©w¸q¡G°Oªk¥Î¦W¦r¼ÐÃѤF¥¼ªR¹êÊ^ªº®æ¦¡¡A¨ã¦³°OªkÄݩʪº¤¸¯Àªº®æ¦¡¥H¤Î³B²z«ü¥O©Ò°w¹ïªºÀ³¥Îªº®æ¦¡¡C]
[©w¸q¡G°OªkÁn©ú½á¤©°Oªk¤@Ó¦W¦r¥Î¤_¹êÊ^¤¤¡AÄݩʪíÁn©ú¤¤©MÄÝ©ÊÈ»¡©ú¤¤¡A¦P®É¤]µ¹¥X¤F¤@Ó°Oªkªº¥~³¡¼ÐÃѲŨϱo
XML ³B²z¾¹©Î¥¦ªº«È¤áÀ³¥Î¥i¥H©w¦ì¯à¥Hµ¹©w°Oªkªº®æ¦¡³B²z¼ÆÕuªº§U²zÀ³¥Î¡C]
°OªkÁn©ú
¦³®Ä©Ê¬ù§ô¡G°ß¤@ªº°Oªk¦W¦r
¤@Óµ¹©wªº Name
¥u¯à³Q¤@Ó°OªkÁn©ú©ÒÁn©ú.
XML ³B²z¾¹¥²¶·¦VÀ³¥Î´£¨Ñ¥ô¦ó¦bÄÝ©ÊȤ¤¡AÄÝ©Ê©w¸q¤¤©Î¹êÊ^Án©ú¤¤©w¸q©Î¤Þ¥Îªº°Oªkªº¦W¦r©M¥~³¡¼ÐÃѲšC¥¦ÌÁÙ¥i¥H±N¥~³¡¼ÐÃѲŸѪR¦¨¨t²Î¼ÐÃѲšA¤å¥ó¦W¡A©Î¬OÀ³¥Î½Õ¥Î¬ÛÀ³³B²z¾¹³B²zµ¹©w°Oªk®æ¦¡ªº¼ÆÕuªº©Ò»Ýªº¨ä¥L«H®§¡C¡]¦ý¦pªG
XML ³B²z¾¹©ÎÀ³¥Î©Ò¹B¦æªº¨t²Î¤¤¨S¦³³B²z XML ¤å¥óÁn©ú©M¤Þ¥Îªº°Oªkªº¬ÛÀ³À³¥Îªº±¡ªp¡A¤£¬O¤@Ó¿ù»~¡C¡^
[©w¸q¡G¤å¥ó¹êÊ^¡]document entity¡^¬O¹êÊ^¾ðªº®Ú©M XML ³B²z¾¹ªº³B²z°_ÂI¡C]
¥»³WS¨S¦³³W©w XML ¦p¦ó©w¦ì¤å¥ó¹êÊ^¡FÉO¨ä¥L¹êÊ^¤£¦P¡A¤å¥ó¹êÊ^¨S¦³¦W¦r¡A¦Ó¥B¥i¥H§¹¥þ¤£±a¥ô¦ó¼ÐÃѦa¥X²{¦b³B²z¾¹ªº¿é¤J¬y¤¤¡C
¦X¥G³WSªº XML
³B²z¾¹¥i¥H¤À¬°¨âÃþ¡G¶i¦æÅçµýªº©M¤£¶i¦æÅçµýªº¡C
¶i¦æÅçµý©M¤£¶i¦æÅçµýªº³B²z¾¹³£¥²¶·³ø§i¦b¤å¥ó¹êÊ^ªº¤º®e¤¤©M¥ô¦ó¨ä¥L¥¦ÌŪ¨ìªº¤wªR¹êÊ^¤¤¹ï®æ¦¡¥¿Ú̩ʬù§ôªº¹H¤Ï¡C
[©w¸q¡G¶i¦æÅçµýªº³B²z¾¹¥²¶·¡A¥Ñ¨Ï¥ÎªÌ¿ï¾Ü¡A³ø§i¹H¤Ï DTD
Án©ú¤¤©Òz¬ù§ôªº±¡ªp¥H¤Î¤£º¡¨¬¥»³WS¤¤µ¹¥Xªº¦³®Ä©Ê¬ù§ôªº±¡ªp¡C] n§¹¦¨³o¤@ÂI¡A¶i¦æÅçµýªº XML ³B²z¾¹¥²¶·Åª¨ú©M³B²z¾ãÓ DTD
©M©Ò¦³¦b¤å¥ó¤¤¤Þ¥Îªº¥~³¡¤wªR¹êÊ^¡C
¤£¶i¦æÅçµýªº³B²z¾¹¥u³Qn¨DÀˬd¤å¥ó¹êÊ^©M¾ãÓ¤º³¡ DTD
¤l¶°ªº®æ¦¡¥¿ÚÌ©Ê¡C[©w¸q¡GÁöµM¥¦Ì¤£³Qn¨DÀˬd¤å¥óªº¦³®Ä©Ê¡A¦ý¥¦Ì¥²¶·³B²z¥¦ÌŪ¨úªº©Ò¦³¤º³¡
DTD ¤l¶°¤¤ªºÁn©ú©M©Ò¦³°Ñ¼Æ¹êÊ^¡Aª½¨ì¹J¨ì²Ä¤@ӹ復̨S¦³Åª¨úªº°Ñ¼Æ¹êÊ^ªº¤Þ¥Î¡F¤]´N¬O»¡¡A¥¦Ì¥²¶·®ÚÕu³o¨ÇÁn©ú¤¤ªº«H®§³WS¤ÆÄÝ©ÊÈ¡A¥]§t¤º³¡¹êÊ^ªº¸m´«¤å¥»¡A¦}´£¨Ñ¯Ê¬ÙÄÝ©ÊÈ¡C]
°£¤F standalone="yes"
ªº±¡ªp¡A¥¦Ì¦b¹J¨ì²Ä¤@ӹ復̨S¦³Åª¨úªº°Ñ¼Æ¹êÊ^ªº¤Þ¥Î¦Z¡A¤£À³³B²z¨ä¦Zªº¹êÊ^Án©ú©ÎÄݩʪíÁn©ú¡A¦]¬°¦¹¹êÊ^¤¤¥]§tªºÁn©ú¥i¯àÂл\«e±ªºÁn©ú¡C
¶i¦æÅçµýªº³B²z¾¹ªº¦æ¬°¬O°ª«×¥i¹w´úªº;¥¦¥²¶·Åª¨ú¤å¥óªº©Ò¦³³¡¤À¡A³ø§i©Ò¦³¹ï®æ¦¡¥¿ÚÌ©Ê©M¦³®Ä©Êªº¹H¤Ï¡C¹ï¤@Ó¤£¶i¦æÅçµýªº³B²z¾¹ªºn¨Dn§C¤@ÂI¡F¥¦¤£»ÝnŪ¨ú¤å¥ó¹êÊ^¥H¥~ªº¥ô¦ó¤å¥ó³¡¤À¡C³o¹ï
XML ªº³B²z¾¹ªº¨Ï¥ÎªÌ¦Ó¨¥¥i¯à·|¦³¨âÓ«nªº¼vÅT¡G
- ¬Y¨Ç®æ¦¡¥¿ÚÌ©Ê¿ù»~¡A¤×¨ä¬O¨º¨Çn¨DŪ¨ú¥~³¡¹êÊ^ªº¡A¥i¯à¤£·|³Q¤£¶i¦æÅçµýªº³B²z¾¹ÀË´ú¨ì¡C¨Ò¤l¦³ºÙ¬°Án©ú¹êÊ^¡A¤wªR¹êÊ^©MµL»¼Âkªº¬ù§ô¡A¥H¤Î"4.4 XML
³B²z¾¹¹ï¹êÊ^©M¤Þ¥Îªº³B²z"¤¤´yz¬°³Q¸T¤îªº¤@¨Ç±¡ªp¡C
- ¨ú¨M¤_³B²z¾¹¬O§_Ū¨ú°Ñ¼Æ©M¥~³¡¹êÊ^¡A±q³B²z¾¹¶Çµ¹À³¥Îªº«H®§¥i¯à·|¦³©Ò¤£¦P¡C¨Ò¦p¡A¤£¶i¦æÅçµýªº³B²z¾¹¥i¯à¤£³WS¤ÆÄÝ©ÊÈ¡A¤£¥]§t¤º³¡¹êÊ^ªº¸m´«¤å¥»¡A©Î¤£´£¨Ñ¯Ê¬ÙÄÝ©ÊÈ¡A³o¨Ç°Ê§@n¨D¥ýŪ¨ú¥~³¡©Î°Ñ¼Æ¹êÊ^¤¤ªºÁn©ú¡C
¬°¤F¨Ï¤£¦P XML
³B²z¾¹¶¡ªº¤¬¾Þ§@¦³³Ì¤jªº¥i¾a©Ê¡A¨Ï¥Î¤£¶i¦æÅçµýªº³B²z¾¹ªºÀ³¥Î¤£À³¨Ì¿à¤_¤£n¨D³o¨Ç³B²z¾¹¨ã³Æªº°Ê§@¡C¨º¨Çn¨D¨Ï¥Î¦p¯Ê¬ÙȩΦb¥~³¡¹êÊ^¤¤Án©ú¤º³¡¹êÊ^µ¥¥\¯àªºÀ³¥ÎÀ³¸Ó¨Ï¥Î¶i¦æÅçµýªº
XML ³B²z¾¹¡C
¥»³WS¤¤ XML ªº§Î¦¡¤Æ¤åªk¥Î¤@Ïú²³æªºÂX®i¤Ú¬ì´µS¦¡¡]Extended Backus-Naur
Form¡AEBNF¡^µ¹¥X¡C¤åªk¤¤ªº¨C¤@±ø³W«h©w¸q¤F¤@ӲŸ¹¡A§Î¦¡¦p¤U¡G
¦pªG²Å¸¹¬O¥¿«h»y¨¥ªº°_©l²Å¸¹¡A«h¥¦¥H¤j¼g¦r¥À¶}ÀY¡A§_«h¥H¤p¼g¦r¥À¶}ÀY¡C¦r²Å¦ê±`¶q¡]literal strings¡^¥Î¤Þ¸¹¬A°_¡C
¦b³W«h¥kÃ䪺ªí¹F¦¡¤¤¡A¥H¤Uªí¹F¦¡¥Î¤_¤Ç°t¤@өΦhÓ¦r²Åªº¦r²Å¦ê¡G
#xN
-
N
¬O¤@Ó¤Q¤»¶i¨îªº¾ã¼Æ¡A·í ISO/IEC 10646 ¤¤¬YÓ¦r²Åªº³WS¡]UCS-4¡^¥N½Xȧ@¬°µL²Å¸¹¤G¶i¨î¼ÆÉO
N
¬Ûµ¥®É¡A¦¹ªí¹F¦¡¤Ç°t³oÓ¦r²Å¡C#xN
¤¤ªº«e¾É 0 ¨S¦³·N¸q¡A¦b¬ÛÀ³ªº¥N½XȤ¤ªº«e¾É 0
ªºÓ¼Æ«h¥Ñ©Ò¥Î¦r²Å½s½X¤è®×¨M©w¡A¹ï XML ¨S¦³·N¸q¡C
[a-zA-Z]
¡A [#xN-#xN]
-
ÉO¨äȦb«ü©wS³ò¤ºªº¥ô¦ó Char
¬Û¤Ç°t¡]§t¬É¡Ainclusive¡^¡C
[abc]
, [#xN#xN#xN]
-
ÉO¨äȬ°©ÒªTÁ|ªºÈ¤§¤@ªº Char
¬Û¤Ç°t¡C¦b¤@¹ï¤è¬A¸¹¤ºªTÁ|©MS³ò¥i¥H²V¥Î¡C
[^a-z]
¡A [^#xN-#xN]
-
ÉO¨äȦb«ü©wS³ò¤§¥~ªº¥ô¦ó Char ¬Û¤Ç°t¡C
[^abc]
¡A [^#xN#xN#xN]
-
ÉO¥ô¦ó¤£¦bµ¹©w¦r²Å¶°¤ºªº Char
¬Û¤Ç°t¡C¦b¤@¹ï¤è¬A¸¹¤º³Q¸TȪºªTÁ|©MS³ò¥i¥H²V¥Î¡C
"string"
-
ÉO¤Ç°tÂù¤Þ¸¹¤¤©Òµ¹¦r²Å¦êªº±`¶q¦r²Å¦ê¬Û¤Ç°t¡C
'string'
-
ÉO¤Ç°t³æ¤Þ¸¹¤¤©Òµ¹¦r²Å¦êªº±`¶q¦r²Å¦ê¬Û¤Ç°t¡C
³o¨Ç²Å¸¹¥i¥H«ö¤U¦C¤è¦¡²Õ¦X¡A¥H¤Ç°t§óÎ`Âøªº¼Ò¦¡¡A¨ä¤¤A
©MB
ªí¥Ü²³æªí¹F¦¡¡G
- (
expression
)
expression
³Q·í¦¨¤@ӳ椸¡A¥i¥H¦V¥»ªí´yzªº¨º¼Ë¶i¦æ²Õ¦X¡C
A?
- ÉO¹sөΤ@Ó
A
¬Û¤Ç°t¡A§Y A
¥i¿ï¡C
A B
- ÉO
A
¦Z¸ò B
ªº¼Ò¦¡¬Û¤Ç°t¡C³oÓ¾Þ§@²ÅªºÉ¬¥ý¯Å°ª¤_ |¡A¦]¦¹ A B | C
D
¬Û·í¤_ (A B) | (C D)
¡C
A | B
- ÉO
A
©Î B
¤§¤@¬Û¤Ç°t¡A¦ý¤£¦P®É¤Ç°t¡C
A - B
- ÉO¥ô¦ó¤Ç°t
A
¦ý¤£¤Ç°t B
ªº¦r²Å¦ê¬Û¤Ç°t¡C
A+
- ÉO¤@өΦhÓ
A
¬Û¤Ç°t¡C³s±µ¾Þ§@ªºÉ¬¥ý¯Å°ª¤_ |¡A¦]¦¹ A+ | B+
¬Û·í¤_
(A+) | (B+)
¡C
A*
- ÉO¹sөΦhÓ
A
¬Û¤Ç°t¡C³s±µ¾Þ§@ªºÉ¬¥ý¯Å°ª¤_ |¡A¦]¦¹ A* | B*
¬Û·í¤_
(A*) | (B*)
¡C
¨ä¥L¦b²£¥Í¦¡¤¤¨Ï¥Îªº°Oªk¦³¡G
/* ... */
- ª`ÄÀ
[ wfc: ... ]
- ®æ¦¡¥¿Ú̩ʬù§ô¡F¥Î¦W¦r¼ÐÃѤ@Ó¹ïÉO¬YÓ²£¥Í¦¡¬ÛÃöÁpªº®æ¦¡¥¿Ú̪º¤å¥óªº¬ù§ô¡C
[ vc: ... ]
- ¦³®Ä©Ê¬ù§ô;¥Î¦W¦r¼ÐÃѤ@Ó¹ïÉO¬YÓ²£¥Í¦¡¬ÛÃöÁpªº¦³®Äªº¤å¥óªº¬ù§ô¡C
ªþ¿ý
- IANA-CHARSETS
- (Internet Assigned Numbers Authority) Official Names for Character
Sets, ed. Keld Simonsen et al. See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets.
- IETF RFC 1766
- IETF (Internet Engineering Task Force). RFC 1766: Tags for the
Identification of Languages¡A ed. H. Alvestrand. 1995.
- ISO/IEC 10646
- 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¡A 1993 (plus
amendments AM 1 through AM 7).
- ISO/IEC 10646-2000
- ISO (International Organization for Standardization). ISO/IEC
10646-1:2000. Information technology -- Universal Multiple-Octet Coded
Character Set (UCS) -- Part 1: Architecture and Basic Multilingual
Plane. [Geneva]: International Organization for Standardization, 2000.
- Unicode
- The Unicode Consortium. The Unicode Standard¡A Version 2.0.
Reading¡A Mass.: Addison-Wesley Developers Press¡A 1996.
- Unicode3
- The Unicode Consortium. The Unicode Standard, Version 3.0.
Reading, Mass.: Addison-Wesley Developers Press, 2000. ISBN 0-201-61633-5.
- Aho/Ullman
- Aho¡A Alfred V., Ravi Sethi¡A and Jeffrey D. Ullman. Compilers:
Principles, Techniques, and Tools. Reading: Addison-Wesley, 1986, rpt.
corr. 1988.
- Berners-Lee et al.
- Berners-Lee, T., R. Fielding, and L. Masinter. Uniform Resource
Identifiers (URI): Generic Syntax and Semantics. 1997. (Work in progress;
see updates to RFC1738.)
- Brüggemann-Klein
- Brüggemann-Klein, Anne. Formal Models in Document Processing.
Habilitationsschrift. Faculty of Mathematics at the University of Freiburg,
1993. (See
ftp://ftp.informatik.uni-freiburg.de/documents/papers/brueggem/habil.ps.)
- Brüggemann-Klein and Wood
- Brüggemann-Klein, Anne, and Derick Wood. Deterministic Regular
Languages. Universität Freiburg, Institut für Informatik, Bericht 38,
Oktober 1991. Extended abstract in A. Finkel, M. Jantzen, Hrsg., STACS 1992,
S. 173-184. Springer-Verlag, Berlin 1992. Lecture Notes in Computer Science
577. Full version titled One-Unambiguous Regular Languages in
Information and Computation 140 (2): 229-253, February 1998.
- Clark
- James Clark. Comparison of SGML and XML. See http://www.w3.org/TR/NOTE-sgml-xml-971215.
- IANA-LANGCODES
- (Internet Assigned Numbers Authority) Registry of Language
Tags, ed. Keld Simonsen et al. (See http://www.isi.edu/in-notes/iana/assignments/languages/.)
- IETF RFC2141
- IETF (Internet Engineering Task Force). RFC 2141: URN Syntax, ed.
R. Moats. 1997.
- IETF RFC 2279
- IETF (Internet Engineering Task Force). RFC 2279: UTF-8, a
transformation format of ISO 10646, ed. F. Yergeau, 1998. (See http://www.ietf.org/rfc/rfc2279.txt.)
- IETF RFC 2376
- IETF (Internet Engineering Task Force). RFC 2376: XML Media
Types. ed. E. Whitehead, M. Murata. 1998. (See http://www.ietf.org/rfc/rfc2376.txt.)
- IETF RFC 2396
- IETF (Internet Engineering Task Force). RFC 2396: Uniform Resource
Identifiers (URI): Generic Syntax. T. Berners-Lee, R. Fielding, L.
Masinter. 1998. (See http://www.ietf.org/rfc/rfc2396.txt.)
- IETF RFC 2732
- IETF (Internet Engineering Task Force). RFC 2732: Format for Literal
IPv6 Addresses in URL's. R. Hinden, B. Carpenter, L. Masinter. 1999.
(See http://www.ietf.org/rfc/rfc2732.txt.)
- IETF RFC 2781
- IETF (Internet Engineering Task Force). RFC 2781: UTF-16, an encoding
of ISO 10646, ed. P. Hoffman, F. Yergeau. 2000. (See http://www.ietf.org/rfc/rfc2781.txt.)
- ISO 639
- (International Organization for Standardization). ISO 639:1988 (E).
Code for the representation of names of languages. [Geneva]:
International Organization for Standardization, 1988.
- ISO 3166
- (International Organization for Standardization). ISO 3166-1:1997
(E). Codes for the representation of names of countries and their subdivisions
-- Part 1: Country codes [Geneva]: International Organization for
Standardization, 1997.
- ISO 8879
- ISO (International Organization for Standardization). ISO
8879:1986(E). Information processing -- Text and Office Systems -- Standard
Generalized Markup Language (SGML). First edition -- 1986-10-15.
[Geneva]: International Organization for Standardization, 1986.
- ISO/IEC 10744
- ISO (International Organization for Standardization). ISO/IEC
10744-1992 (E). Information technology -- Hypermedia/Time-based Structuring
Language (HyTime). [Geneva]: International Organization for
Standardization, 1992. Extended Facilities Annexe. [Geneva]:
International Organization for Standardization, 1996.
- WEBSGML
- ISO (International Organization for Standardization). ISO 8879:1986
TC2. Information technology -- Document Description and Processing Languages.
[Geneva]: International Organization for Standardization, 1998. (See http://www.sgmlsource.com/8879rev/n0029.htm.)
- XML Names
- Tim Bray, Dave Hollander, and Andrew Layman, editors. Namespaces in
XML. Textuality, Hewlett-Packard, and Microsoft. World Wide Web
Consortium, 1999. (See http://www.w3.org/TR/REC-xml-names/.)
®ÚÕu Unicode
¼Ð㤤©w¸qªº¯S©º¡A¦r²Å³Q¤À¬°°ò¦r²Å¡]¨ä¤¤¥]§t¤F©Ô¤B¦r¥À¡^¡Aªí·N¦r²Å©M²Õ¦X¦r²Å¡]¨ä¤¤¥]§t¤F¤j¦h¼ÆªºÅܵ²Å¡^¡C¼Æ¦r©MÂX®i²Å(extender)¤]¦U¦Û³Q¤À¦¨Ãþ¡C
¦r²Å
[84] |
Letter |
::= |
BaseChar
| Ideographic |
[85] |
BaseChar |
::= |
[#x0041-#x005A] | [#x0061-#x007A] | [#x00C0-#x00D6]
| [#x00D8-#x00F6] | [#x00F8-#x00FF] | [#x0100-#x0131]
| [#x0134-#x013E] | [#x0141-#x0148] | [#x014A-#x017E]
| [#x0180-#x01C3] | [#x01CD-#x01F0] | [#x01F4-#x01F5]
| [#x01FA-#x0217] | [#x0250-#x02A8] | [#x02BB-#x02C1]
| #x0386 | [#x0388-#x038A] | #x038C | [#x038E-#x03A1]
| [#x03A3-#x03CE] | [#x03D0-#x03D6] | #x03DA | #x03DC
| #x03DE | #x03E0 | [#x03E2-#x03F3] | [#x0401-#x040C]
| [#x040E-#x044F] | [#x0451-#x045C] | [#x045E-#x0481]
| [#x0490-#x04C4] | [#x04C7-#x04C8] | [#x04CB-#x04CC]
| [#x04D0-#x04EB] | [#x04EE-#x04F5] | [#x04F8-#x04F9]
| [#x0531-#x0556] | #x0559 | [#x0561-#x0586]
| [#x05D0-#x05EA] | [#x05F0-#x05F2] | [#x0621-#x063A]
| [#x0641-#x064A] | [#x0671-#x06B7] | [#x06BA-#x06BE]
| [#x06C0-#x06CE] | [#x06D0-#x06D3] | #x06D5
| [#x06E5-#x06E6] | [#x0905-#x0939] | #x093D
| [#x0958-#x0961] | [#x0985-#x098C] | [#x098F-#x0990]
| [#x0993-#x09A8] | [#x09AA-#x09B0] | #x09B2
| [#x09B6-#x09B9] | [#x09DC-#x09DD] | [#x09DF-#x09E1]
| [#x09F0-#x09F1] | [#x0A05-#x0A0A] | [#x0A0F-#x0A10]
| [#x0A13-#x0A28] | [#x0A2A-#x0A30] | [#x0A32-#x0A33]
| [#x0A35-#x0A36] | [#x0A38-#x0A39] | [#x0A59-#x0A5C]
| #x0A5E | [#x0A72-#x0A74] | [#x0A85-#x0A8B] | #x0A8D
| [#x0A8F-#x0A91] | [#x0A93-#x0AA8] | [#x0AAA-#x0AB0]
| [#x0AB2-#x0AB3] | [#x0AB5-#x0AB9] | #x0ABD | #x0AE0
| [#x0B05-#x0B0C] | [#x0B0F-#x0B10] | [#x0B13-#x0B28]
| [#x0B2A-#x0B30] | [#x0B32-#x0B33] | [#x0B36-#x0B39]
| #x0B3D | [#x0B5C-#x0B5D] | [#x0B5F-#x0B61]
| [#x0B85-#x0B8A] | [#x0B8E-#x0B90] | [#x0B92-#x0B95]
| [#x0B99-#x0B9A] | #x0B9C | [#x0B9E-#x0B9F]
| [#x0BA3-#x0BA4] | [#x0BA8-#x0BAA] | [#x0BAE-#x0BB5]
| [#x0BB7-#x0BB9] | [#x0C05-#x0C0C] | [#x0C0E-#x0C10]
| [#x0C12-#x0C28] | [#x0C2A-#x0C33] | [#x0C35-#x0C39]
| [#x0C60-#x0C61] | [#x0C85-#x0C8C] | [#x0C8E-#x0C90]
| [#x0C92-#x0CA8] | [#x0CAA-#x0CB3] | [#x0CB5-#x0CB9]
| #x0CDE | [#x0CE0-#x0CE1] | [#x0D05-#x0D0C]
| [#x0D0E-#x0D10] | [#x0D12-#x0D28] | [#x0D2A-#x0D39]
| [#x0D60-#x0D61] | [#x0E01-#x0E2E] | #x0E30
| [#x0E32-#x0E33] | [#x0E40-#x0E45] | [#x0E81-#x0E82]
| #x0E84 | [#x0E87-#x0E88] | #x0E8A | #x0E8D
| [#x0E94-#x0E97] | [#x0E99-#x0E9F] | [#x0EA1-#x0EA3]
| #x0EA5 | #x0EA7 | [#x0EAA-#x0EAB] | [#x0EAD-#x0EAE]
| #x0EB0 | [#x0EB2-#x0EB3] | #x0EBD | [#x0EC0-#x0EC4]
| [#x0F40-#x0F47] | [#x0F49-#x0F69] | [#x10A0-#x10C5]
| [#x10D0-#x10F6] | #x1100 | [#x1102-#x1103]
| [#x1105-#x1107] | #x1109 | [#x110B-#x110C]
| [#x110E-#x1112] | #x113C | #x113E | #x1140
| #x114C | #x114E | #x1150 | [#x1154-#x1155]
| #x1159 | [#x115F-#x1161] | #x1163 | #x1165
| #x1167 | #x1169 | [#x116D-#x116E] | [#x1172-#x1173]
| #x1175 | #x119E | #x11A8 | #x11AB
| [#x11AE-#x11AF] | [#x11B7-#x11B8] | #x11BA
| [#x11BC-#x11C2] | #x11EB | #x11F0 | #x11F9
| [#x1E00-#x1E9B] | [#x1EA0-#x1EF9] | [#x1F00-#x1F15]
| [#x1F18-#x1F1D] | [#x1F20-#x1F45] | [#x1F48-#x1F4D]
| [#x1F50-#x1F57] | #x1F59 | #x1F5B | #x1F5D
| [#x1F5F-#x1F7D] | [#x1F80-#x1FB4] | [#x1FB6-#x1FBC]
| #x1FBE | [#x1FC2-#x1FC4] | [#x1FC6-#x1FCC]
| [#x1FD0-#x1FD3] | [#x1FD6-#x1FDB] | [#x1FE0-#x1FEC]
| [#x1FF2-#x1FF4] | [#x1FF6-#x1FFC] | #x2126
| [#x212A-#x212B] | #x212E | [#x2180-#x2182]
| [#x3041-#x3094] | [#x30A1-#x30FA] | [#x3105-#x312C]
| [#xAC00-#xD7A3] |
[86] |
Ideographic |
::= |
[#x4E00-#x9FA5] | #x3007 | [#x3021-#x3029]
|
[87] |
CombiningChar |
::= |
[#x0300-#x0345] | [#x0360-#x0361] | [#x0483-#x0486]
| [#x0591-#x05A1] | [#x05A3-#x05B9] | [#x05BB-#x05BD]
| #x05BF | [#x05C1-#x05C2] | #x05C4 | [#x064B-#x0652]
| #x0670 | [#x06D6-#x06DC] | [#x06DD-#x06DF]
| [#x06E0-#x06E4] | [#x06E7-#x06E8] | [#x06EA-#x06ED]
| [#x0901-#x0903] | #x093C | [#x093E-#x094C] | #x094D
| [#x0951-#x0954] | [#x0962-#x0963] | [#x0981-#x0983]
| #x09BC | #x09BE | #x09BF | [#x09C0-#x09C4]
| [#x09C7-#x09C8] | [#x09CB-#x09CD] | #x09D7
| [#x09E2-#x09E3] | #x0A02 | #x0A3C | #x0A3E
| #x0A3F | [#x0A40-#x0A42] | [#x0A47-#x0A48]
| [#x0A4B-#x0A4D] | [#x0A70-#x0A71] | [#x0A81-#x0A83]
| #x0ABC | [#x0ABE-#x0AC5] | [#x0AC7-#x0AC9]
| [#x0ACB-#x0ACD] | [#x0B01-#x0B03] | #x0B3C
| [#x0B3E-#x0B43] | [#x0B47-#x0B48] | [#x0B4B-#x0B4D]
| [#x0B56-#x0B57] | [#x0B82-#x0B83] | [#x0BBE-#x0BC2]
| [#x0BC6-#x0BC8] | [#x0BCA-#x0BCD] | #x0BD7
| [#x0C01-#x0C03] | [#x0C3E-#x0C44] | [#x0C46-#x0C48]
| [#x0C4A-#x0C4D] | [#x0C55-#x0C56] | [#x0C82-#x0C83]
| [#x0CBE-#x0CC4] | [#x0CC6-#x0CC8] | [#x0CCA-#x0CCD]
| [#x0CD5-#x0CD6] | [#x0D02-#x0D03] | [#x0D3E-#x0D43]
| [#x0D46-#x0D48] | [#x0D4A-#x0D4D] | #x0D57 | #x0E31
| [#x0E34-#x0E3A] | [#x0E47-#x0E4E] | #x0EB1
| [#x0EB4-#x0EB9] | [#x0EBB-#x0EBC] | [#x0EC8-#x0ECD]
| [#x0F18-#x0F19] | #x0F35 | #x0F37 | #x0F39
| #x0F3E | #x0F3F | [#x0F71-#x0F84] | [#x0F86-#x0F8B]
| [#x0F90-#x0F95] | #x0F97 | [#x0F99-#x0FAD]
| [#x0FB1-#x0FB7] | #x0FB9 | [#x20D0-#x20DC] | #x20E1
| [#x302A-#x302F] | #x3099 | #x309A |
[88] |
Digit |
::= |
[#x0030-#x0039] | [#x0660-#x0669] | [#x06F0-#x06F9]
| [#x0966-#x096F] | [#x09E6-#x09EF] | [#x0A66-#x0A6F]
| [#x0AE6-#x0AEF] | [#x0B66-#x0B6F] | [#x0BE7-#x0BEF]
| [#x0C66-#x0C6F] | [#x0CE6-#x0CEF] | [#x0D66-#x0D6F]
| [#x0E50-#x0E59] | [#x0ED0-#x0ED9] | [#x0F20-#x0F29]
|
[89] |
Extender |
::= |
#x00B7 | #x02D0 | #x02D1 | #x0387 | #x0640
| #x0E46 | #x0EC6 | #x3005 | [#x3031-#x3035]
| [#x309D-#x309E] | [#x30FC-#x30FE] |
¦b¦¹©w¸qªº¦r²ÅÃþ¥i¥H±q Unicode 2.0 ¦r²Å®w¤¤¦p¤U¾É¥X¡G
- ¦W¦rªº°_©l¦r²Å¥²¶·Äݤ_ Ll¡ALu¡ALo¡ALt¡ANl ¤¤ªº¤@Ãþ¡C
- °£¤F°_©l¦r²Å¤§¥~ªº©R¦W¦r²Å¥²¶·Äݤ_ Mc¡AMe¡AMn¡ALm ©Î Nd ¤¤ªº¤@Ãþ¡C
- Ý®e°Ï¡]§Y¥N½X¤j¤_ #xF900¡A¤p¤_ #xFFFE ªº¦r²Å¡^¤¤ªº¦r²Å¤£¤¹³\¦b XML ¦W¦r¤¤¥X²{¡C
- ¤£¤¹³\¥X²{¨ã¦³¦r¶°©ÎÝ®e¤À¸Ñ¡]§Y¡A®w¤¤²Ä 5 °Ï¦³"compatibility formatting tag"ªº¦r²Å -- "<"¼Ð§ÓµÛ 5
°Ïªº¶}©l¡^ªº¦r²Å¡C
- ¤U¦C¦r²Å³Q·í¦¨¦W¦r°_©l¦r²Å¡A¦]¬°¯S©Ê¤å¥ó¤¤±N¥¦ÌÂk¤_¦r¥ÀÃþ¡G [#x02BB-#x02C1]¡A#x0559¡A#x06E5¡A#x06E6¡C
- ¤£¤¹³\¥X²{¦r²Å #x20DD-#x20E0¡]ÉO Unicode 2.0 ªº 5.14 ¸`«O«ù¤@P¡^¡C
- ¦r²Å #x00B7 ³Q¤À¬°ÂX®i²Å¡A¦]¬°¯S©Ê¤å¥ó¤¤¹ï¥¦¬O³o¤\¼ÐÃѪº¡C
- ¦r²Å #x0387 ³Q·í¦¨¤@Ó©R¦W¦r²Å¡A¦]¬° #x00B7 ¬O¥¦ªºµ¥É²³WS§Î¦¡¡C
- ¦r²Å':'©M'_'¥i¥H§@¬°¦W¦r°_©l¦r²Å¡C
- ¦r²Å'-'©M'.'¥i¥H§@¬°©R¦W¦r²Å¡C
XML ³Q³]p¬° SGML ªº¤@Ó¤l¶°¡Aªí²{¦b¨C¤@Ó¦³®Äªº XML
¤å¥ó¤]À³¸Ó¬O¤@Ó¦X¥G³WSªº SGML ¤å¥ó¡C¹ï XML ¦b SGML ¤§¥~¹ï¤å¥ó©Ò¥[ªº¨îªº¸Ô²Ó°Q½×°Ñ¨£[Clark]¡C
¥»ªþ¿ý¤¤Á|¨Ò»¡©ú¤F¦b "4.4 XML
³B²z¾¹¹ï¹êÊ^©M¤Þ¥Îªº³B²z"¤@¸`¤¤³W©wªº¹êÊ^©M¦r²Å¤Þ¥ÎªºÃѧO©M®i¶}ªº¦¸§Ç¡C
¦pªGÁn©ú¥]§t¦b DTD ¤¤
<!ENTITY example "<p>An ampersand (&#38;) may be escaped numerically (&#38;#38;) or with a general entity (&amp;).</p>" >
|
¨º¤\ XML
³B²z¾¹±N¦b¹ï¹êÊ^Án©ú¶i¦æ»yªk¤ÀªR®ÉÃѧO¥X¦r²Å¤Þ¥Î¡A¦}¦b±N¤U±ªº¦r²Å¦ê¦s¬°¹êÊ^"example
"ªºÈ«e¸ÑªR³o¨Ç¦r²Å¤Þ¥Î:
<p>An ampersand (&) may be escaped numerically (&#38;) or with a general entity (&amp;).</p>
|
¤å¥ó¤¤¹ï "&example;
" ªº¤Þ¥Î·|¾ÉP¹ï¤å¥»ªº«·s¤ÀªR¡A¦¹®É¤¸¯À "p
"
ªº°_©l©Mµ²§ô¼Ðñ³QÃѧO¡A¤TӤޥγQÃѧO©M®i¶}¡A¨äµ²ªG¬O¤@Ó¥]§t¤U±¤º®e¡]©Ò¦³¼ÆÕu¡AµL©w¬É²Å©Î¼Ð°O¡^"p
" ¤¸¯À¡G
An ampersand (&) may be escaped numerically (&) or with a general entity (&).
|
¤@Ó§óÎ`Âøªº¨Ò¤l¥i¥H§¹¾ã¦a»¡©ú³o¨Ç³W«h©M¥¦Ìªº§@¥Î¡C¦b¤U±ªº¨Ò¤l¤¤¡A¦æ¸¹¶È¶È¬O¬°¤F¤è«K»¡©ú¡C
1 <?xml version='1.0'?> 2 <!DOCTYPE test [ 3 <!ELEMENT test (#PCDATA) > 4 <!ENTITY % xx '%zz;'> 5 <!ENTITY % zz '<!ENTITY tricky "error-prone" >' > 6 %xx; 7 ]> 8 <test>This sample shows a &tricky; method.</test>
|
³oÓ¨Ò¤l·|¾ÉP¤U¦C°Ê§@¡G
- ¦b²Ä 4 ¦æ¡A¹ï¦r²Å 37 ªº¤Þ¥Î·|³Q¥ß§Y®i¶}¡A°Ñ¼Æ¹êÊ^ "
xx
" ¥HÈ "%zz;
"
¦s¤_²Å¸¹ªí¤¤¡C¦]¬°¸m´«¤å¥»¤£³Q¦A¦¸±½´y¡A¹ï°Ñ¼Æ¹êÊ^ "zz
" ªº¤Þ¥Î¤£·|³QÃѧO¡C¡]¦Ó¥B¦pªG¥¦³QÃѧOªº¸Ü«h¬O¤@Ó¿ù»~¡A¦]¬°
"zz
" ÁÙ¨S¦³³QÁn©ú¡C¡^
- ¦b²Ä 5 ¦æ¡A¦r²Å¤Þ¥Î "
<
" ³Q¥ß§Y®i¶}¡A¦Ó°Ñ¼Æ¹êÊ^ "zz
" ¥H¸m´«¤å¥»
"<!ENTITY tricky "error-prone" >
" ³Q¦sÀx¡A¦¹¸m´«¤å¥»¬O¤@Ӯ榡¥¿Ú̪º¹êÊ^Án©ú¡C
- ¦b²Ä 6 ¦æ¡A¹ï "
xx
" ªº¤Þ¥Î³QÃѧO¡A"xx
" ªº¸m´«¤å¥»¡]§Y
"%zz;
"¡^³Q¤ÀªR¡C¹ï "zz
" ªº¤Þ¥ÎÀH¦Z³QÃѧO¡A¥¦ªº¸m´«¤å¥»¡]"<!ENTITY
tricky "error-prone" >
"¡^³Q¤ÀªR¡C¦¹®É´¶³q¹êÊ^ "tricky
" ³QÁn©ú¡A¥¦ªº¸m´«¤å¥»¬O
"error-prone
"¡C
- ¦b²Ä 8 ¦æ¡A¹ï´¶³q¹êÊ^ "
tricky
" ªº¤Þ¥Î³QÃѧO¡A¦}³Q®i¶}¡A¦]¦¹ "test
"
¤¸¯Àªº¥þ³¡¤º®e¬°¤@Ó¦Û»¡©úªº¡]¤]¤£¦X»yªk¡^¦r²Å¦êThis sample shows a error-prone method.¡C
¦p 3.2.1
¤¸¯À«¬¤º®e¤¤©Òz¡A¤¸¯ÀÃþ«¬Án©ú¤¤ªº¤º®e¼Ò«¬n¨D¬OÚÌ©w«¬ªº¡C³oÓn¨D¬O¥X¤_©M SGML ªºÝ®e©Ê¦Ò¼{¡]SGML
ºÙ¬°"µLª[¸qªº"¡^¡F¥Î SGML ¨t²Î¥Í¦¨ªº XML ³B²z¾¹¥i¯à·|§â«DÚÌ©w«¬¤º®e¼Ò«¬¼Ð¬°¿ù»~¡C
¨Ò¦p¡A¤º®e¼Ò«¬((b, c) | (b, d))
¬O«DÚÌ©w«¬ªº¡A¦]¬°µ¹©w¤@Óªì©l b
¡AXML
³B²z¾¹¨S¦³¦b¦V«e¬Ý¥Hª¾¹D b
¦Z¬O¤°¤\¤¸¯À¤§«e¡AµLªkª¾¹D¤Ç°t¼Ò«¬¤¤ªºþÓ b
¡C¦b³oÏú±¡ªp¤U¡A¨âÓ¹ï
b
ªº¤Þ¥Î¥i¥H²¤Æ¦¨³æÓªº¤Þ¥Î¡A¨Ï±o¼Ò«¬¦¨¬°(b,(c | d))
¡C¦¹®Éªì©lªº b
¥u©M¤º®e¼Ò«¬¤¤ªº¤@Ó¦W¦r©úṲ́ǰt¡C³B²z¾¹¤£»Ýn¦V«e¬Ý¨ä¦Zªº¤º®e¡Cc
©Î d
³£¯à³Q±µ¨ü¡C
§ó§Î¦¡¤Æªº»¡ªk¡G¨Ï¥Î Aho¡ASethi ©M Ullman ©ÒµÛ [Aho/Ullman] 3.9
¸`¤¤ªº¼Ðãºâªk
3.5¡A¥i¥H±q¤º®e¼Ò«¬ÌÛ³y¥X¤@Ó¦³ª¬ºA¦Û°ÊÉó¡C¦b«Ü¦h³o¼Ëªººâªk¤¤¡A¹ïÀ³¥¿«hªí¹F¦¡¤¤ªº¨C¤@Ó¦ì¸m(§Y¥¿«hªí¹F¦¡ªº»yªk¾ð¤¤ªº¨CÓ¸¤l¸`ÂI)¡A³£ÌÛ³y¤@ÓÀH¶°¡]follow
set¡^¡F¦pªG¥ô¤@¦ì¸mªºÀH¶°¤¤¤£¤î¤@Ó¦ZÄ~¦ì¸m³Q¼Ð¬°¦P¤@¤¸¯ÀÃþ«¬®É¡A¨º¤\¦¹¤º®e¼Ò«¬¥X¿ù¡A¦}¥B¥i¥H³Q³ø¬°¿ù»~¡C
¦s¦b±N³\¦h¦ý¤£¬O©Ò¦³«DÚÌ©w«¬¤º®e¼Ò«¬¦Û°Ê³W¬ù¬°µ¥É²ªºÚÌ©w«¬¼Ò«¬ªººâªk¡F°Ñ¨£ Brüggemann-Klein 1991 [Brüggemann-Klein].
XML ½s½XÁn©ú¦b¹êÊ^¤¤¥H¤º³¡¼Ðñªº¤è¦¡¤u§@¡A¥Î¤_«ü¥X¨Ï¥Î¤F¦óÏú¦r²Å½s½X¡CµM¦Ó¡A¦b XML
³B²z¾¹¯àŪ¨ú³oÓ¤º³¡¼Ðñ«e¡AÅãµM¥¦¥²¶·ª¾¹D·í«e¨Ï¥Îªº¬O¦óÏú¦r²Å½s½X¡Ð¦Ó³o¥¿¬O¦¹¤º³¡¼Ðñn¸Õ¹Ï«ü¥Xªº¡C³q±`±¡ªp¤U¡A³o¬O¤@ÏúµLªk¸Ñ¨Mªº±¡ªp¡C¦ý¦b XML
¤¤¦}«D¦p¦¹¡A¦]¬° XML
¦b¨âӤ豹ï³oÏú±¡§Î§@¥X¤F¨î¡G°²©w¨C¤@Ïú¹ê²{¥u¤ä«ù¤@Ó¦³ªº¦r²Å½s½X¶°¡A¦}¥B¡A¬°¤F¨Ï±o¥¿±`±¡ªp¤U¦Û°ÊÀË´ú¨CÓ¹êÊ^¤¤©Ò¥Î¦r²Å½s½X¦¨¬°¥i¯à¡A¨î¤F XML
½s½XÁn©úªº¦ì¸m©M¤º®e¡C¦P®É¡A«Ü¦h±¡ªp¤U°£¤F XML ¼ÆÕu¬y¥»¨¤§¥~¡A¥t¥~ÁÙ¦³¥i¥Îªº«H®§·½¡C®ÚÕu XML
¹êÊ^¥æµ¹³B²z¾¹®É¨S¦³©Î¦³¥ô¦óªºªþ±a(¥~³¡)«H®§¡A¥i¥H°Ï¤À¥X¨âÏú±¡ªp¡C§ÚÌ¥ý¦Ò¼{²Ä¤@Ïú±¡ªp¡C
F.1 µL¥~³¡½s½X«H®§®ÉªºÀË´ú
¦]¬°¨C¤@Ó¨S¦³¥~³¡½s½X«H®§¥B«D UTF-8 ©Î UTF-16 ½s½Xªº XML ¹êÊ^¥²¶·¥H XML ½s½XÁn©ú¶}ÀY¡A¨ä¶}©lªº¤LÓ¦r²Å¥²¶·¬°
'<?xml
'¡A¥ô¦ó¦X¥G³WSªº³B²z¾¹¥i¥H¦b¨â¨ì¥|Ó¤K¦ì²Õªº¿é¤J¦Z¡AÀË´ú¥XÓì¥Î¤_¤U¦C¦óÏú±¡ªp¡C¦bŪ³o±iªí®É¡Aª¾¹D³o¨Ç¬O¦³À°§Uªº¡G¦b
UCS-4 ¤¤¡A'<' ¬O "#x0000003C
"¡A'?' ¬O
"#x0000003F
"¡AUTF-16 ¼ÆÕu¬yªº¦r¸`¦¸§Ç¼Ð°On¨D¬° "#xFEFF
"¡C°Oªk
## ¥Î¤_ªí¥Ü¥ô·Nªº¦r¸`È¡A¦ý¨âÓ³sÄòªº ## ¤£¯à¦P®É¬° 00¡C
¦³¦r¸`¦¸§Ç¼Ð°O¡G
00 00 FE FF |
UCS-4¡Abig-endian ½s½XªºpºâÉó(1234¦¸§Ç) |
FF FE 00 00 |
UCS-4¡Alittle-endian ½s½XªºpºâÉó(4321¦¸§Ç) |
00 00 FF FE |
UCS-4¡AÉݱ`ªº¤K¦ì²Õ¦¸§Ç(2143) |
FE FF 00 00 |
UCS-4¡AÉݱ`ªº¤K¦ì²Õ¦¸§Ç(3412) |
FE FF ## ## |
UTF-16, big-endian |
FF FE ## ## |
UTF-16, little-endian |
EF BB BF |
UTF-8 |
µL¦r¸`¦¸§Ç¼Ð°O¡G
00 00 00 3C |
UCS-4 ©Î¨ä¥L 32 ¦ì½X¤¸ªº½s½X¡A¦P®É ASCII ¦r²Åªº½XÈ´N¬O ASCII È¡A¦¸§Ç¤À§O¬°
big-endian¡]1234¡^¡Alittle-endian¡]4321¡^©M¨âÏúÉݱ`ªº¦r¸`¦¸§Ç¡]2143 ©M
3412¡^¡C¥²¶·Åª¨ú½s½XÁn©ú¥HÚÌ©w¨Ï¥Îªº¬O ©Î¨ä¥L³Q¤ä«ùªº 32 ¦ì½s½X¡C |
3C 00 00 00 |
00 00 3C 00 |
00 3C 00 00 |
00 3C 00 3F |
UTF-16BE¡Abig-endian ªº ISO-10646-UCS-2 ©Î¨ä¥L 16 ¦ì½X¤¸ªº big-endian ªº½s½X¡A¨ä¤¤
ASCII ¦r²Åªº½XÈ´N¬O ASCII ¡]¥²¶·Åª¨ú½s½XÁn©ú¥HÚÌ©w¨Ï¥Îªº¬Oþ¤@Ïú¡^ |
3C 00 3F 00 |
UTF-16LE¡Alittle-endian ªº ISO-10646-UCS-2 ©Î¨ä¥L 16 ¦ì½X¤¸ªº little-endian
ªº½s½X¡A¨ä¤¤ ASCII ¦r²Åªº½XÈ´N¬O ASCII ¡]¥²¶·Åª¨ú½s½XÁn©ú¥HÚÌ©w¨Ï¥Îªº¬Oþ¤@Ïú¡^ |
3C 3F 78 6D |
UTF-8¡AISO 646¡AASCII¡AISO 8859 ªº¬Y¨Ç³¡¤À¡AShift-JIS¡AEUC¡A©Î¥ô¦ó¨ä¥L 7 ¦ì¡A8
¦ì©Î²V¦X¼e«×ªº½s½X¡A³o¨Ç½s½X¥²¶·«Oµý ASCII
¦r²Å¦³¥¦Ì¥¿±`ªº¦ì¸m¡A¼e«×©M¨úÈ¡F¨ãÊ^¨ä¤¤þ¤@ÓÓì¥Î»ÝŪ¨ú¹ê»Úªº½s½XÁn©ú¨ÓÀË´úÚÌ©w¡A¦ý¬O¦]¬°©Ò¦³³o¨Ç½s½X¤¤ªº ASCII
¦r²Å¨Ï¥Î¤F¬Û¦Pªº¦ì¼Ò¦¡¡A©Ò¥H¯à°÷¥i¾a¦aŪ¨ú½s½XÁn©ú¥»¨ |
4C 6F A7 94 |
EBCDIC ¡]¨ä¤¤ªº¬Y¨Ç±¡ªp¡F¥²¶·Åª¨ú§¹¾ãªº½s½XÁn©ú¥HÚÌ©w¨Ï¥Îªº¬Oþ¤@Ó¥N½X¶¡^ |
¨ä¥L |
¨S¦³½s½XÁn©ú«h¬°
UTF-8¡A§_«h¤£¬O¼ÆÕu¬y³Q¼Ð¿ù¤F¡]¨S¦³©Ò»Ýªº½s½XÁn©ú¡^¡A³Q·l§¥¤F¡A¬O¤£§¹¾ãªº¡A´N¬O³Q¥]§t¦b¬YÏú¥~¼h¼ÆÕu¤¤ |
ª`¡G
¦b¤Wz¤£»ÝnŪ¨ú½s½XÁn©ú¨ÓÚÌ©w©Ò¥Î½s½Xªº±¡ªp¤U¡A4.3.3
¸`¤´µMn¨DŪ¨ú¥i¯à¥X²{ªº½s½XÁn©ú¡A¦}Àˬd¨ä¤¤ªº½s½X¦WºÙ¬O§_ÉO¹êÊ^¹ê»Úªº½s½X¬Û¤@P¡C¦P®É¡A²{¦b¤£n¨D¦³½s½XÁn©úªº±¡ªp¦³¥i¯à·|¦]¬°·sªº¦r²Å½s½X¤è®×ªºµo©ú¦ÓÅܱo¥²¶·¨Ï¥Î½s½XÁn©ú¥Î¤_ÚÌ©w©Ò¥Îªº½s½X¡C
³oÏú¼h¦¸ªº¦Û°ÊÀË´ú¨¬¥H¥Î¤_Ū¨ú XML ½s½XÁn©ú©M¤ÀªR¦r²Å½s½X¼ÐÃѲšC¦r²Å½s½X¼ÐÃѲŤ´µM¬O¥²¶·ªº¡A¥¦¥Î¤_°Ï¤À½s½X¤è®×¶°¤¤ªº³æÓ¦¨û¡]¨Ò¦p±q 8859
¤¤°Ï¤À¥X UTF-8¡A8859 ¦UÓ³¡¤À¶¡ªº¬Û¤¬°Ï¤À¡A¥H¤Î°Ï¤À©Ò¥Îªº¯S©w EBCDIC ¥N½X¶¡Aµ¥µ¥)¡C
¦]¬°½s½XÁn©úªº¤º®e¤_ ASCII
¦r²Å¶°¤¤ªº¦r²Å¡]¤£ºÞ«ç¼Ë½s½X¡^¡A¤@¥¹³B²z¾¹ÀË´ú¨ì¨Ï¥Îªº¬Oþ¤@Ó½s½X¤è®×¶°¡A¥¦¯à°÷¥i¾a¦aŪ¨ú¾ãÓ½s½XÁn©ú¡C¦]¬°¦b¹ê»Ú¤¤¡A©Ò¦³¼sªx¨Ï¥Îªº¦r²Å½s½X³£¥i¥HÂk¤_¤WzÏúÃþ¤¤¡AXML
½s½XÁn©ú«Oµý¤F¥i¾aªº¤º´O¡]in-band¡^¦r²Å½s½X¼Ðª`¡A§Y¨Ï¬O¦b¾Þ§@¨t²Î©Î¶Ç¿é¨óij¯Åªº¥~³¡«H®§·½¦}¤£¥i¾aªº±¡ªp¤U¡C¶H UTF-7 ¨º¼Ë«¥Î¤F ASCII
½s½XȪº¦r²Å½s½X¤è®×¦³¥i¯àµLªk¥i¾a¦a³QÀË´ú¡C
¤@¥¹³B²z¾¹ÀË´ú¨ì©Ò¥Îªº¦r²Å½s½X¡A¥¦´N¥i¥H§@¥X¦XÓ쪺°Ê§@¡A©Î¬O°w¹ï¨CÏú±¡ªp½Õ¥Î³æ¿Wªº¿é¤J¨Òµ{¡A©Î¬O¹ï¨CÓ¿é¤Jªº¦r²Å½Õ¥Îª©¥»¦XÓ쪺Âà´«¨ç¼Æ¡C
©M¥ô¦ó¦Û¼Ðª`¡]self-labeling¡^ªº¨t²Î¤@¼Ë¡A¤@¥¹¥ô¦ó³n¥ó§ïÅܤF¹êÊ^ªº¦r²Å¶°©Î¨ä½s½X¦Ó¨S¦³¬ÛÀ³×§ï½s½XÁn©úªº¸Ü¡AXMLªº½s½XÁn©ú±NµLªk¤u§@¡C¦r²Å½s½X¤è®×ªº¹ê²{ªÌ¥²¶·¤p¤ß¥J²Ó¡A¥H«Oµý¥Î¤_¼Ðª`¹êÊ^ªº¤º³¡©M¥~³¡«H®§ªº¥¿ÚÌ©Ê¡C
F.2 ¥~³¡½s½X«H®§ªºÉ¬¥ý¯Å
²Ä¤GÏú¥i¯àªº±¡ªp¬O XML ¹êÊ^¦³ªþ±aªº«H®§¡A¦p¦b¤@¨Ç¤å¥ó¨t²Î©MÊIµ¸¨óij¤¤¡C·í¨ã¦³¦hÓ«H®§·½®É¡A¥¦Ì¶¡ªº¬Û¹ïɬ¥ý¯Å©Mº¿ï½Ä¬ð³B²z¤èªk¥²¶·¦b¶Ç¿é XML
ªº°ª¼h¨óij¤¤µ¹¥X¡C¨ãÊ^½Ð°Ñ¦Ò [IETF
RFC 2376] ©Î¨ä¦ZÄò¼Ðã¡A¨ä¤¤©w¸q¤F text/xml
©M application/xml
MIME Ãþ«¬¦}¥B´£¨Ñ¤F¤@¨Ç¦³¥Îªº«ü¾É¡CµM¦Ó¥X¤_¤¬¾Þ§@©Ê¦Ò¼{¡A«Øij¨Ï¥Î¤U¦C³W«h¡C
- ¦pªG XML ¹êÊ^¬O¦b¤@Ó¤å¥ó¤¤¡A¥Î¦r¸`¦¸§Ç¼Ð°O©M½s½XÁn©ú PI¡]¦pªG¦³ªº¸Ü¡^¨ÓÚÌ©w¦r²Å½s½X¡C
¥»³WS¥Ñ W3C XML ¤u§@²Õ¡]WG¡^§¹¦¨¦}§åãµoªí¡C¤u§@²Õ§å㥻³WS¦}¤£ªí¥Ü©Ò¦³ªº¤u§@²Õ¦¨û³£¤@P¦P·N¥»³WS¡C²{¦³©M¥H«eªº XML
¤u§@²Õ¦¨û¥]¬A¡G
- Jon Bosak, Sun (Chair)
- James Clark (Technical Lead)
- Tim Bray, Textuality and Netscape (XML Co-editor)
- Jean Paoli, Microsoft (XML Co-editor)
- C. M. Sperberg-McQueen, U. of Ill. (XML Co-editor)
- Dan Connolly, W3C (W3C Liaison)
- Paula Angerstein, Texcel
- Steve DeRose, INSO
- Dave Hollander, HP
- Eliot Kimber, ISOGEN
- Eve Maler, ArborText
- Tom Magliery, NCSA
- Murray Maloney, SoftQuad, Grif SA, Muzmo and Veo Systems
- MURATA Makoto (FAMILY Given), Fuji Xerox Information Systems
- Joel Nava, Adobe
- Conleth O'Connell, Vignette
- Peter Sharpe, SoftQuad
- John Tigue, DataChannel
H W3C XML ®Ö¤ß¤u§@²Õ¡]«D¥¿¦¡¡^
¥»³WSªº²Ä¤Gª©¥Ñ W3C XML ®Ö¤ß¤u§@²Õ§¹¦¨¡C¦b¦¹ª©¥»µoªí®É¦¹¤u§@²Õªº¦¨û¥]¬A¡G
- Paula Angerstein, Vignette
- Daniel Austin, Ask Jeeves
- Tim Boland
- Allen Brown, Microsoft
- Dan Connolly, W3C (Staff Contact)
- John Cowan, Reuters Limited
- John Evdemon, XMLSolutions Corporation
- Paul Grosso, Arbortext (Co-Chair)
- Arnaud Le Hors, IBM (Co-Chair)
- Eve Maler, Sun Microsystems (Second Edition Editor)
- Jonathan Marsh, Microsoft
- MURATA Makoto (FAMILY Given), IBM
- Mark Needleman, Data Research Associates
- David Orchard, Jamcracker
- Lew Shannon, NCR
- Richard Tobin, University of Edinburgh
- Daniel Veillard, W3C
- Dan Vint, Lexica
- Norman Walsh, Sun Microsystems
- François Yergeau, Alis Technologies (Errata List Editor)
- Kongyi Zhou, Oracle
--> ?-->
¡@