{"id":5388,"date":"2016-06-30T21:54:47","date_gmt":"2016-06-30T12:54:47","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=5388"},"modified":"2016-06-30T21:54:47","modified_gmt":"2016-06-30T12:54:47","slug":"xslt%e3%82%92%e5%ad%a6%e3%81%b6%e3%80%80%ef%bc%887%ef%bc%89-%e3%82%b9%e3%83%86%e3%83%83%e3%83%97%e3%81%ae%e6%96%87%e6%b3%95%e3%82%92%e8%bf%bd%e6%b1%82%e3%81%99%e3%82%8b-%e8%bb%b8%e3%81%a8%e3%81%af","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5388\/","title":{"rendered":"XSLT\u3092\u5b66\u3076\u3000\uff087\uff09 \u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b-\u8ef8\u3068\u306f"},"content":{"rendered":"<p>\u30d1\u30b9\u306f\u3001\u30b9\u30c6\u30c3\u30d7\u3092&#8217;\/&#8217;\u30aa\u30da\u30ec\u30fc\u30bf\u3067\u7d50\u5408\u3057\u305f\u3082\u306e\u3067\u3042\u308b\u3053\u3068\u3001\u305d\u3057\u3066\u30b9\u30c6\u30c3\u30d7\u306f\u3001AxisSpecifier NodeTest Predicate*\u306e\u5f62\u5f0f\u307e\u305f\u306f\u7701\u7565\u5f62\u3067\u8a18\u8ff0\u3055\u308c\u308b\u3053\u3068\u3092\u524d\u56de\u307e\u3067<sup>[1]<\/sup>\u306b\u5b66\u3073\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b9\u30c6\u30c3\u30d7\u306e\u4f8b\u3068\u3057\u3066\u3001child::para[position()=1]\u3092\u53d6\u308a\u4e0a\u3052\u3066\u307f\u307e\u3059\u3002child::\u304c\u8ef8\u6307\u5b9a\u5b50\uff08AxisSpecifier\uff09\u3067\u3042\u308a\u3001\u3042\u308b\u30ce\u30fc\u30c9\u3092\u8d77\u70b9\u3068\u3059\u308b\u3068\u304d\u3001\u305d\u306e\u8d77\u70b9\u30ce\u30fc\u30c9\u306e\u5b50\u4f9b\u3092\u9078\u629e\u3057\u307e\u3059<sup>[2]<\/sup>\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u306epara\u304cNodeTest\u3067\u30ce\u30fc\u30c9\u306e\u540d\u524d\u306e\u6307\u5b9a\u3067\u3042\u308a\u3001child::para\u306f\u3001\u8d77\u70b9\u30ce\u30fc\u30c9\u306e\u5b50\u4f9b\u3067\u540d\u524d\u304cpara\u306e\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u307e\u3059\u3002NodeTest\u306b\u306f&#8217;*&#8217;\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u3001child::*\u3068\u3059\u308b\u3068\u8d77\u70b9\u30ce\u30fc\u30c9\u306e\u5b50\u4f9b\u3067\u3042\u308b\u30ce\u30fc\u30c9\u3092\u3059\u3079\u3066\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>[position()=1]\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8ff0\u90e8\uff08Predicate\uff09\u3067\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u8ff0\u90e8\u306f\u30ce\u30fc\u30c9\u96c6\u5408\u306e\u4e2d\u3067\u306e\u6700\u521d\u306e\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u8ef8\u306f\u8d77\u70b9\u306e\u30ce\u30fc\u30c9\u304b\u3089XML\u6587\u66f8\u306e\u30c4\u30ea\u30fc\u306e\u65b9\u5411\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7b2c1\u56de<sup>[3]<\/sup>\u3067\u5b66\u3073\u307e\u3057\u305f\u304c\u3001\u30ce\u30fc\u30c9\u306b\u306f7\u7a2e\u985e\u304c\u3042\u308a\u3001\u307e\u305f\u3001\u8ef8\u306e\u540d\u524d\u306b\u306fancestor\u3001ancestor-or-self\u3001attribute\u3001child\u3001descendant\u3001descendant-or-self\u3001following\u3001following-sibling\u3001namespace\u3001parent\u3001preceding\u3001preceding-sibling\u3001self\u306e13\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e2d\u3067self\u8ef8\u306f\u8d77\u70b9\u3068\u306a\u308b\u30ce\u30fc\u30c9\u81ea\u8eab\u3092\u542b\u307f\u307e\u3059\u3002\u8d77\u70b9\u30ce\u30fc\u30c9\u304c\u8981\u7d20\u30ce\u30fc\u30c9\u306e\u3068\u304d\u3001self\u3001ancestor\u3001descendant\u3001following\u3001preceding\u306f\u4e00\u3064\u306eXML\u6587\u66f8\u306e\uff08\u5c5e\u6027\u3001\u540d\u524d\u7a7a\u9593\u3092\u9664\u5916\u3057\u3066\uff09\u3059\u3079\u3066\u306e\u30ce\u30fc\u30c9\u3092\u7db2\u7f85\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306aXML\u6587\u66f8\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>&lt;!\u2013?xml version=\u201d1.0\u2033?\u2013&gt;<br \/>\n&lt;doc&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;p s=&#8221;man1&#8243;&gt;Hello! How are you?&lt;\/p&gt;<br \/>\n&lt;p s=&#8221;man2\u2033&gt;&lt;img src=&#8221;pic1&#8243;\/&gt;I am fine, thank you.&lt;img src=&#8221;pic2&#8243;\/&gt;&lt;\/p&gt;<br \/>\n&lt;p s=&#8221;man3\u2033&gt;I am fine, thank you.&lt;\/p&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/doc&gt;<\/p>\n<p>\u3053\u306eXML\u6587\u66f8\u3092\u30ce\u30fc\u30c9\u306e\u30c4\u30ea\u30fc\u3067\u8868\u3057\u307e\u3059\u3002\u4eee\u306b\u8d77\u70b9\u304c\u4e8c\u3064\u76ee\u306e\u8981\u7d20\u30ce\u30fc\u30c9p\u3067\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304dself::\u306fp\u30ce\u30fc\u30c9\u3067\u3059\u3002\u305d\u3053\u3092\u8d77\u70b9\u306b\u3057\u3066ancestor\u3001descendant\u3001following\u3001preceding\u306f\u6b21\u306e\u3088\u3046\u306a\u95a2\u4fc2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-5408\" src=\"http:\/\/192.168.16.141\/ILSoft2\/wp-content\/uploads\/2016\/06\/XSLT2-1.png\" alt=\"XSLT2\" width=\"1246\" height=\"552\" \/><\/p>\n<p>\u4e0a\u306e\u56f3\u3067\u306f\u3001self\u306e\u5b50\u4f9bp\u306e\u5c5e\u6027\u30ce\u30fc\u30c9\uff08src=&#8221;pic1&#8243;\u306a\u3069\uff09\u306f\u9664\u5916\u3057\u3066\u3044\u307e\u3059\u3002\u7b2c2\u56de<sup>[4]<\/sup>\u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u3088\u3046\u306b\u5c5e\u6027\u30ce\u30fc\u30c9\u306f\u5b50\u4f9b\uff08child\uff09\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002XSLT\u4ed5\u69d8\u3067\u306f\u3001decendent\u306f\u3001\u300cchild\u307e\u305f\u306fchild\u306e\u5b50\u4f9b\u3067\u3042\u308b\u300d\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5f93\u3063\u3066\u3001\u5c5e\u6027\u3084\uff08\u540d\u524d\u7a7a\u9593\u30ce\u30fc\u30c9\u3082\uff09decendent\u306b\u306f\u306a\u308a\u307e\u305b\u3093<sup>[5]<\/sup>\u3002<\/p>\n<p>\u307e\u305f\u3001\u5c5e\u6027\u3084\uff08\u540d\u524d\u7a7a\u9593\u30ce\u30fc\u30c9\u3082\uff09\u306fprecedenig\u3001following\u304b\u3089\u3082\u9664\u5916\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u306e\u56f3\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u304c\u3001\u3082\u3057\u3001\u5c5e\u6027\u30ce\u30fc\u30c9src=&#8221;pic1&#8243;\u304cself\u3067\u3042\u3063\u305f\u6642\u306f\u3001ancestor\u306f\u305d\u306e\u89aa\u3067\u3042\u308bp\u30ce\u30fc\u30c9\u304b\u3089\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u307e\u3067\u3068\u306a\u308a\u307e\u3059<sup>[6]<\/sup>\u3002\u3057\u304b\u3057\u3001 following-sibling\u3001preceding-sibling\u306f\u7a7a\u3067\u3059\u3002<\/p>\n<p>child\u3001parent\u306b\u3064\u3044\u3066\u306f\u7b2c2\u56de<sup>[4]<\/sup>\u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u3002child\u8ef8\u3001parent\u8ef8\u306f\u305d\u308c\u305e\u308cself\u30ce\u30fc\u30c9\u306e\u5b50\u307e\u305f\u306f\u89aa\u3067\u3059\u3002child\u8ef8\u306f\u8907\u6570\u306e\u5b50\u4f9b\u30ce\u30fc\u30c9\u3092\u542b\u307f\u307e\u3059\u3002parent\u8ef8\u306f\u3042\u308b\u3068\u3057\u3066\u3082\u3072\u3068\u3064\u306e\u89aa\u30ce\u30fc\u30c9\u306e\u307f\u3092\u542b\u307f\u307e\u3059\u3002<\/p>\n<p>attribute\u8ef8\u3001namespace\u8ef8\u306f\u305d\u308c\u305e\u308cself\u306e\u5c5e\u6027\u30ce\u30fc\u30c9\u3001\u540d\u524d\u7a7a\u9593\u30ce\u30fc\u30c9\u3092\u542b\u307f\u307e\u3059\u3002<\/p>\n<p>[1] <a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5254\">XSLT\u3092\u5b66\u3076\uff083\uff09\u30d1\u30b9\u3068\u306f<\/a>\u3001<br \/>\n<a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5362\">XSLT\u3092\u5b66\u3076\uff086\uff09\u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b<\/a><br \/>\n[2] XPath\u3067\u306f\u8d77\u70b9\u30ce\u30fc\u30c9\u3092\u6587\u8108\u30ce\u30fc\u30c9\u3068\u3044\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u8aac\u660e\u306e\u8d77\u70b9\u30ce\u30fc\u30c9\u306e\u3068\u3053\u308d\u306f\u6587\u8108\u30ce\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n[3] <a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5113\">XSLT\u3092\u5b66\u3076\uff08\uff11\uff09XML\u306e\u30c4\u30ea\u30fc\u30e2\u30c7\u30eb\u3068XPath\/XSLT\u306e\u30c4\u30ea\u30fc\u30e2\u30c7\u30eb\u3067\u306f\u30eb\u30fc\u30c8\u306e\u610f\u5473\u304c\u9055\u3046<\/a><br \/>\n[4] <a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5174\">XSLT\u3092\u5b66\u3076\uff082\uff09\u30ce\u30fc\u30c9\u30c4\u30ea\u30fc\u3068\u30ce\u30fc\u30c9\u306e\u89aa\u5b50\u3001\u5b50\u5b6b\u95a2\u4fc2<\/a><br \/>\n[5] <a href=\"https:\/\/www.w3.org\/TR\/xpath\/#axes\">2.2 Axes<\/a><br \/>\n[6] XPath\u306e\u4ed5\u69d8\u306e2.2 Axes\u306b\u306f\u3001\u6587\u8108\u30ce\u30fc\u30c9\u306eancestor\u306f\u3001\u6587\u8108\u30ce\u30fc\u30c9\u306e\u89aa\uff08parent\uff09\u3068\u89aa\u306e\u89aa\u3001\u4ee5\u4e0b\u540c\u3058\u3001\u304b\u3089\u6210\u308b\u3068\u3042\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u30015.3 Attribute Nodes\u306b\u306f\u3001\u8981\u7d20\u306f\u305d\u308c\u306b\u4ed8\u968f\u3059\u308b\u5c5e\u6027\u30ce\u30fc\u30c9\u306e\u89aa\u3067\u3042\u308b\u3001\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u5f93\u3063\u3066\u3001\u5c5e\u6027\u30ce\u30fc\u30c9\u306eancestor\u306b\u306f\u305d\u306e\u89aa\u3067\u3042\u308b\u8981\u7d20\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3010\u5e83\u544a\u3011<\/p>\n<p style=\"color:orange;font-style:italic;\">\u6b21\u56de:<br \/>\n<a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5422\">XSLT\u3092\u5b66\u3076\uff088\uff09\u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b-NodeTest<\/a>\n<\/p>\n<p style=\"color:orange;font-style:italic;\">\u524d\u56de:<br \/>\n<a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5362\">XSLT\u3092\u5b66\u3076\uff086\uff09\u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b<\/a>\n<\/p>\n<p><a href=\"https:\/\/www.antenna.co.jp\/AHF\/ahf_publication\/index.html\">\u2605AH Formatter XML\u95a2\u9023\u51fa\u7248\u7269\u306e\u7d39\u4ecb<\/a><\/p>\n<p style=\"color: green; font-style: italic;\">\u521d\u56de:<br \/>\n<a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5113\">XSLT\u3092\u5b66\u3076\uff081\uff09XML\u306e\u30c4\u30ea\u30fc\u30e2\u30c7\u30eb\u3068XPath\/XSLT\u306e\u30c4\u30ea\u30fc\u30e2\u30c7\u30eb\u3067\u306f\u30eb\u30fc\u30c8\u306e\u610f\u5473\u304c\u9055\u3046<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d1\u30b9\u306f\u3001\u30b9\u30c6\u30c3\u30d7\u3092&#8217;\/&#8217;\u30aa\u30da\u30ec\u30fc\u30bf\u3067\u7d50\u5408\u3057\u305f\u3082\u306e\u3067\u3042\u308b\u3053\u3068\u3001\u305d\u3057\u3066\u30b9\u30c6\u30c3\u30d7\u306f\u3001AxisSpecifier NodeTest Predicate*\u306e\u5f62\u5f0f\u307e\u305f\u306f\u7701\u7565\u5f62\u3067\u8a18\u8ff0\u3055\u308c\u308b\u3053\u3068\u3092\u524d\u56de\u307e\u3067[1]\u306b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,16],"tags":[52,258,261,263,597],"class_list":["post-5388","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-structured-doc","tag-ah-formatter","tag-xpath","tag-xsl-fo","tag-xslt","tag-597"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/comments?post=5388"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5388\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=5388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=5388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=5388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}