æ¨æ¥ã®ãã¡ã¿æ
å ±ã®åãè¾¼ã¿ãã®ä»¶ãå°ãç¶ãããæ¥è¨ã¸ã®âã³ã¡ã³ãâã¨æ··ä¹±ããããªã®ã§ã<!-- -->
ã®ãã¨ã¯commentã¨æ¸ãã¾ãã
ã³ã¡ã³ãï¼queueããããªãªãããï¼ã®ãææã®ããã«ãå®æ ã¨ãã¦ãPIãç¡éã¨åé¤ããã¦ãã¾ã£ãããæãã¬å¯ä½ç¨ããããªããcommentã¨æ¯ã¹ã¦PIãè¯ãã¨ã¯ä¸»å¼µã§ããªããªãã¾ããããåããcommentãªãã使ããªãPIã®ã»ããã¾ã ãã·ãã¨ãï¼å°ãªãã¨ãç念çã«ã¯ï¼æãçç±ãè¿°ã¹ã¦ããã¾ãã
ã¾ããcommentã«æ¯ã¹ã¦PIã®æ§æãæ¨æºåããã¦ããç¹ãæãã¾ããï¼SGMLã§ã¯ãªãã¦XMLã«å¾ããªãï¼ã¿ã¼ã²ããåã¯å¿ é ã§ãããã¿ã¼ã²ããåã«ããã©ã®å¦çç³»ã«å¯¾ãããã³ãã§ããããå¤æã§ãã¾ããã¿ã¼ã²ããåã«QNameã¯ä½¿ãã¾ãããããã¡ã¤ã³åããã¼ã¹ã«ããé·ãååã使ãã°å®ç¨ä¸ã¯ä¸æçã«ã¿ã¼ã²ãããæå®ã§ããã¨è¨ã£ã¦ããã§ãããã
ã¿ã¼ã²ããåã«ç¶ããã¼ã¿é¨ã«ã¯ãå ¬å¼ã®æ§æã¯åå¨ãã¾ããããç¿æ £ä¸ã¯çä¼¼å±æ§ã使ããã¨ãä¸è¬åãã¦ããã®ã§ã次ã®ããã«ã空å 容è¦ç´ ã¨åçãªæ§é çæ§æãæã¤ã¨èãããã¨ãã§ãã¾ãã
<page-owner xmlns="http://xmlns.hatena.ne.jp/info"
owner-id="id:naoya" />
â
â
<?jp.ne.hatena.info pi-type="page-owner"
owner-id="id:naoya" ?>
ã¾ããç±æ¥ãååããè¨ãã°ãPIã¯ãã®åï¼processing instructionï¼ã®ã¨ãããè¨è¿°çãã¼ã¯ã¢ããã¨ã¯ç´äº¤ããï¼çæ³ï¼ã¾ãã¯ç¸æ§ãæªãï¼ç¾å®ï¼ãå¦çç³»åãæ令ï¼ãã³ããæ¸ãããã®æ§æã³ã³ã¹ãã©ã¯ãã§ããã§ãããã人éåãã®commentããã¯ããã°ã©ã ãèªãæ å ±ãå ¥ããå ´æã¨ãã¦é©åã¨è¨ããã§ãããã
commentã¨PIã®ã©ã¡ããåé¤ããã«ããããå®æ ã¯ãããã¾ããããä¾ãã° XML canonicalizationãè¡ãã¨ãuncommented canonical formã§ã¯commentãåé¤ããã¾ããPIã¯æ®ãã¾ãã
ãComment vs PIãï¼ãã®2è ã®ã¿ãä»ã®æ¹æ³ã¯è°è«ã®å¤ï¼ã§ãåãPIã«ä¸ç¥¨ãæããçç±ã¯ãããªã¨ããã§ãã