* [CODE(XML)[ID]] 型 (XML) [8] [[XHTML m12n]] の[[抽象モジュール]]定義における[[属性型]] [DFN[[CODE(XML)[ID]]]] は、 [[XML 1.0]] の定義によっています。 仕様書: - [[Web体系]] -- [CSECTION@en[4.5.6. XML ID semantics]] - [[XHTML m12n]] -- [CSECTION[4.3. Attribute Types]] - [xmlIDSemantics-32] [CSECTION@en[How should the problem of identifying ID semantics in XML languages be addressed in the absence of a DTD?]] [1] [[XML名前空間]]を使って [CODE(SGML)[ID]] 型属性を複数使えるか。例えば [[XHTML]] の要素に [CODE(XML)[[[RDF]]:[[ID]]]] 属性をつけることが出来るか。 [2] >>1 [[SGML]] でも [[XML]] でも、1つの要素に2つ以上の [CODE(SGML)[ID]] 属性は禁じている。よって出来ない。名前空間が違っても同じこと。 [3] [[XPath]] では、[[妥当]]でない文書も扱うわけですが、 そういう文書では同じ識別子を持った要素が複数あることもあります。 そういうときに、 [[文書順]]で2番目以降の要素は識別子を持たないこととして処理します。 [4] >>3、簡単なことのように思えますが、 [SAMP(XPath)[[VAR[path/to/element1]]/id()]] と [SAMP(XPath)[[VAR[path/to/element2]]/id()]] が同じ値を返しちゃいけないわけです。 だけど常識的に [SAMP(XPath)[[VAR[path/to/element1]]/@[VAR[id-attr]]]] と [SAMP(XPath)[[VAR[path/to/element2]]/@[VAR[id-attr]]]] は同じ値じゃないといけないでしょ? だから構造木を作ったときにでも重複をチェックして、 それを覚えとかないと。 もちろん木を操作して別の要素に識別子を与えたり、 最初の要素の識別子を削除したりしたら、 それに同期してどの属性が有効かも変更しないといけないんです。 - [6] >>4 みたいな面倒なことするよりは、 [CODE(XPathf)[[[id]]]] 関数とか識別子を使う時に木を走査する方が安上がりですね。 [9] >>3-6 元々 [[XPath]] のデータ・モデルや [[XML情報集合]]的には、 [[XML]] [[実体]]の構文解析・妥当性検証の時点で[[識別子]]と[[要素]]の対応の一覧表を作って、 あとから[[識別子]]が必要になったらその表を引くことを想定しているのだと思われ。 ([[名無しさん]] [sage]) [10] [CITE[How should the problem of identifying ID semantics in XML languages be addressed in the absence of a DTD?]] ([[名無しさん]] [sage]) [11] asdaPizda http://xyuvglandy.com/xyu-vo-rty.html [url=http://bbmazafaka.com]BB MAZAFAK![/url] ([[Zhopahome]] [nomailsasd@yahoo.com]) [12] [PRE[ Hi! Nice site! http://mlmlead.hostrocket.com/ Franchise [url = http://homebasedbusiness.hostrocket.com/ ] Home Based Business [/url] http://vicodin.webblogg.se/ ([[Leather Sofa]] [zheka@testsite.com] [WEAK[2007-05-24 22:04:30 +00:00]]) ]PRE] [13] [PRE[ Hi! Nice site! http://mlmlead.hostrocket.com/ Franchise [url = http://homebasedbusiness.hostrocket.com/ ] Home Based Business [/url] http://vicodin.webblogg.se/ ([[Leather Sofa]] [zheka@testsite.com] [WEAK[2007-05-24 22:18:25 +00:00]]) ]PRE] [14] nice site! ([[norwegion cruise]] [asdasd@asdasd.com] [WEAK[2007-06-18 12:29:18 +00:00]]) [15] [PRE[ Hi! Nice site! http://mlmlead.hostrocket.com/ Franchise [url = http://homebasedbusiness.hostrocket.com/ ] Home Based Business [/url] http://vicodin.webblogg.se/ ([[Leather Sofa]] [zheka@testsite.com] [WEAK[2007-06-19 23:39:11 +00:00]]) ]PRE] [16] twwrghds cool site!!! [url=http://heoutyw1.com]cool site!!![/url] http://heoutyw2.com GsbFr ([[heoutyw]] [heoutyw@gmail.com]) [17] twwrghds cool site!!! [url=http://heoutyw1.com]cool site!!![/url] http://heoutyw2.com GsbFr ([[heoutyw]] [heoutyw@gmail.com]) [18] e9MNYA povbijstfmhn, [url=http://vwkxhtdauqzg.com/]vwkxhtdauqzg[/url], [link=http://zlgfdrwmhtcj.com/]zlgfdrwmhtcj[/link], http://wyssfxtfwwmb.com/ ([[tkwupme]] [foqikt@qkukip.com] [WEAK[2008-06-30 18:18:32 +00:00]]) [19] respect ([[Prasd]] [weskvm@gmail.com]) [20] [PRE[ WOMEN LEGS FACESITTING NYLONS FACESITTING PAIN LEG ([[Prasd]] [wesxih@gmail.com]) ]PRE] [21] [PRE[ [url=http://www.nola.com/forums/profile.ssf?nickname=nylons]NYLONS[/url] [url=http://tech.groups.yahoo.com/group/hot-legs/]HOT LEGS[/url] [url=http://tech.groups.yahoo.com/group/catfight-55/]CATFIGHT[/url] [url=http://www.nola.com/forums/profile.ssf?nickname=FaceSitting1]FACESITTING[/url] [url=http://www.nola.com/forums/profile.ssf?nickname=PainLegG]PAIN LEG[/url] ([[Prasd]] [weslxp@gmail.com]) ]PRE] [22] [PRE[ http://tech.groups.yahoo.com/group/hot-legs/ HOT LEGS http://tech.groups.yahoo.com/group/celebrity-leg-gallery/ CELEBRITY LEG GALLERY http://www.nola.com/forums/profile.ssf?nickname=facesitting FACESITTING http://tech.groups.yahoo.com/group/catfight-55/ CATFIGHT http://tech.groups.yahoo.com/group/women-legs/ WOMEN LEGS ([[Prasd]] [wesfyn@gmail.com]) ]PRE] [23] [PRE[ CELEBRITY LEG GALLERY CATFIGHT WOMEN LEGS PAIN LEG FACESITTING ([[Prasd]] [wesjxy@gmail.com]) ]PRE] [24] [PRE[ [url=http://www.nola.com/forums/profile.ssf?nickname=nylons]NYLONS[/url] [url=http://tech.groups.yahoo.com/group/celebrity-leg-gallery/]CELEBRITY LEG GALLERY[/url] [url=http://tech.groups.yahoo.com/group/catfight-55/]CATFIGHT[/url] [url=http://tech.groups.yahoo.com/group/sexy-legs-34/]SEXY LEGS[/url] [url=http://tech.groups.yahoo.com/group/hot-legs/]HOT LEGS[/url] ([[Prasd]] [wesoix@gmail.com]) ]PRE] [25] respect ([[Prasd]] [wesdys@gmail.com]) [26] respect ([[Wernu]] [werxsi@gmail.com]) [27] [PRE[ [url=http://groups.yahoo.com/group/toutube67/]TOUTUBE[/url] [url=http://wwwyuotub29.iloveu.com.tw]WWW YUOTUBE[/url] [url=http://groups.yahoo.com/group/youtbue42]YOUTBUE[/url] [url=http://groups.yahoo.com/group/wwwyotube10]WWW YOTUBE COM[/url] [url=http://yutubecom93.iloveu.com.tw]YUTUBE COM[/url] ([[Wernu]] [werakk@gmail.com]) ]PRE] [28] respect ([[Prasd]] [wesyxy@gmail.com]) [29] [PRE[ WOMEN LEGS BALLBUSTING CATFIGHT NYLONS FACESITTING ([[Prasd]] [wesfjx@gmail.com]) ]PRE] [30] [PRE[ http://tech.groups.yahoo.com/group/hot-legs/ HOT LEGS http://www.nola.com/forums/profile.ssf?nickname=ballbusting BALLBUSTING http://www.nola.com/forums/profile.ssf?nickname=FaceSitting1 FACESITTING http://www.nola.com/forums/profile.ssf?nickname=nylons NYLONS http://tech.groups.yahoo.com/group/celebrity-leg-gallery/ CELEBRITY LEG GALLERY ([[Prasd]] [wessin@gmail.com]) ]PRE] [31] respect ([[Prasd]] [wesyxy@gmail.com]) [32] respect ([[Nepus]] [kaewhf@gmail.com]) [33] respect ([[Nadsy]] [mogiou@gmail.com]) [34] respect ([[Specna]] [shavey@gmail.com]) [35] respect ([[Nepus]] [kaekjh@gmail.com]) [36] ft7rXS xaebvtlhoaen, [url=http://hcqbvtpkyxph.com/]hcqbvtpkyxph[/url], [link=http://ommfbiryhswm.com/]ommfbiryhswm[/link], http://jvbbljqbzrqz.com/ ([[cxdrvmxdkfk]] [kosgpa@rxbzzm.com] [WEAK[2008-09-09 22:39:16 +00:00]]) [37] ft7rXS xaebvtlhoaen, [url=http://hcqbvtpkyxph.com/]hcqbvtpkyxph[/url], [link=http://ommfbiryhswm.com/]ommfbiryhswm[/link], http://jvbbljqbzrqz.com/ ([[cxdrvmxdkfk]] [kosgpa@rxbzzm.com] [WEAK[2008-09-09 22:40:36 +00:00]]) [38] women's fall business suits [URL=http://avansas.cn/humorous-bald-men-t-shirts.html]humorous bald men t shirts[/URL] cope civic side skirts factory [URL=http://avansas.cn/dreambooks-damsels-pantyhose.html]dreambooks damsels pantyhose[/URL] ([[keyhole thong]] [http://avansas.cn/ase-t-shirts.html] [WEAK[2008-10-19 09:48:03 +00:00]]) [[#comment]] * ID 型 (HTML 4) [5] まあ [[HTML 4]] の [CODE(SGML)[ID]] 型といっても、 [[SGML]] の [CODE(SGML)[ID]] 型そのものなのでありますが・・・。 HTML 4 の [[SGML宣言]]の状況下では、 - [CODE(ABNF)[[DFN[ID]] := [[ALPHA]] / [[DIGIT]] / "-" / "_" / "." / ":"]] なのです。 参照。 大文字・小文字の区別はありません。 SGML の規則により小文字は大文字に変換されます。 [7] あ、1文字目は [CODE(ABNF)[ALPHA]] でないと。 [[噂のID問題]]も。 ([[名無しさん]]) [[#comment]] * メモ