{"id":5174,"date":"2016-06-16T14:20:55","date_gmt":"2016-06-16T05:20:55","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=5174"},"modified":"2016-06-16T14:20:55","modified_gmt":"2016-06-16T05:20:55","slug":"xslt%e3%82%92%e5%ad%a6%e3%81%b6%e3%80%80%ef%bc%882%ef%bc%89-%e3%83%8e%e3%83%bc%e3%83%89%e3%83%84%e3%83%aa%e3%83%bc%e3%81%a8%e3%83%8e%e3%83%bc%e3%83%89%e3%81%ae%e8%a6%aa%e5%ad%90%e3%80%81%e5%ad%90","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5174\/","title":{"rendered":"XSLT\u3092\u5b66\u3076\u3000\uff082\uff09 \u30ce\u30fc\u30c9\u30c4\u30ea\u30fc\u3068\u30ce\u30fc\u30c9\u306e\u89aa\u5b50\u3001\u5b50\u5b6b\u95a2\u4fc2"},"content":{"rendered":"<p>\u524d\u56de\uff08<sup>[1]<\/sup>\uff09\u306fXPath\u3067\u306f7\u3064\u306e\u30ce\u30fc\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3001\u3068\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u3046\u3061\u91cd\u8981\u306a\u306e\u306f\u3001\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u3001\u8981\u7d20\u30ce\u30fc\u30c9\u3001\u5c5e\u6027\u30ce\u30fc\u30c9\u3001\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u3067\u3059\u3002\u3053\u306e4\u7a2e\u985e\u306e\u30ce\u30fc\u30c9\u306b\u3064\u3044\u3066\u3082\u3046\u5c11\u3057\u8a73\u3057\u304f\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u6b21\u306e\u3088\u3046\u306aXML\u6587\u66f8\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002\u3053\u306eXML\u306e\u6587\u66f8\u8981\u7d20\u306fdoc\u3067\u3059\u3002<\/p>\n<p>&lt;!&#8211;?xml version=&#8221;1.0&#8243;?&#8211;&gt;<br \/>\n\u3000&lt;doc&gt;<br \/>\n\u3000\u3000&lt;body&gt;<br \/>\n\u3000\u3000\u3000&lt;p s=&#8221;man1&#8243;&gt;Hello! How are you?&lt;\/p&gt;<br \/>\n\u3000\u3000\u3000&lt;p s=&#8221;man2&#8243;&gt;I am fine, thank you.&lt;\/p&gt;<br \/>\n\u3000\u3000&lt;\/body&gt;<br \/>\n\u3000&lt;\/doc&gt;<\/p>\n<p>\u3053\u306eXML\u3092XPath\u306e\u30ce\u30fc\u30c9\u30c4\u30ea\u30fc\u3068\u3057\u3066\u8868\u3057\u307e\u3059\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-5188\" src=\"http:\/\/192.168.16.141\/ILSoft2\/wp-content\/uploads\/2016\/06\/XSLT.png\" alt=\"XSLT\" width=\"879\" height=\"483\" \/><\/p>\n<p>\u30ce\u30fc\u30c9\u306b\u306f\u89aa\u5b50(parent, child)\u306b\u306a\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u30ce\u30fc\u30c9\u30c4\u30ea\u30fc\u3067\u5b9f\u7dda\u3067\u3057\u3081\u3057\u305f\u7b87\u6240\u304c\u89aa\u5b50\u95a2\u4fc2\u306b\u306a\u308a\u307e\u3059\u3002\u5b50\u5b6b(descendant)\u30ce\u30fc\u30c9\u3068\u306f\u3042\u308b\u30ce\u30fc\u30c9\u306e\u5b50\u4f9b\u3068\u5b50\u4f9b\u306e\u5b50\u5b6b\u30ce\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p>\u5144\u5f1f(sibling)\u30ce\u30fc\u30c9\u306f\u540c\u3058\u89aa\u306e\u5b50\u4f9b\u30ce\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p>\u89aa\u306b\u306a\u308c\u308b\u30ce\u30fc\u30c9\u306f\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u3068\u8981\u7d20\u30ce\u30fc\u30c9\u306e\u307f\u3067\u3059\u3002\u5b50\u4f9b\u306b\u306a\u308c\u308b\u30ce\u30fc\u30c9\u306f\u8981\u7d20\u30ce\u30fc\u30c9\u3068\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u3067\u3059\u3002\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u306f\u6700\u4e0a\u4f4d\u3067\u3059\u306e\u3067\u89aa\u3092\u3082\u3061\u307e\u305b\u3093\u3002\u9006\u306b\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u306f\u6700\u4e0b\u4f4d\u3067\u3059\u306e\u3067\u5b50\u3092\u6301\u3061\u307e\u305b\u3093\u3002<\/p>\n<p>\u3084\u3063\u304b\u3044\u306a\u306e\u306f\u5c5e\u6027\u30ce\u30fc\u30c9\u3067\u3059\u3002\u8981\u7d20\u306b\u306f\u95a2\u9023\u3059\u308b\u5c5e\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u8981\u7d20\u30ce\u30fc\u30c9\u306f\u305d\u308c\u3089\u306e\u5c5e\u6027\u30ce\u30fc\u30c9\u306e\u89aa\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u5c5e\u6027\u30ce\u30fc\u30c9\u306f\u8981\u7d20\u306e\u5b50\u3067\u306f\u306a\u3044\u3068\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u5c5e\u6027\u30ce\u30fc\u30c9\u306f\u5b50\u3092\u6301\u3061\u307e\u305b\u3093\u3002<\/p>\n<p>\u5c5e\u6027\u30ce\u30fc\u30c9\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u306e\u306f\u3001\u8981\u7d20\u306b\u660e\u793a\u7684\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3001\u307e\u305f\u306f\u3001DTD\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u660e\u793a\u7684\u306b\u898f\u5b9a\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002DTD\u3067\u5024\u304c#IMPLED\u306b\u306a\u3063\u3066\u3044\u3066\u8981\u7d20\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5c5e\u6027\u3084\u3001xml:lang\u3001xml:space\u306e\u3088\u3046\u306a\u3042\u308b\u8981\u7d20\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u3001\u305d\u306e\u5b50\u5b6b\u306b\u7d99\u627f\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u5c5e\u6027\u306f\u3001\u305d\u306e\u5b50\u5b6b\u3067\u306f\u5c5e\u6027\u30ce\u30fc\u30c9\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u306f\u3001\u8981\u7d20\u306e\u5185\u5bb9\u306e\u6587\u5b57\u5217\u3092\u3067\u304d\u308b\u3060\u3051\u9577\u304f\u306a\u308b\u3088\u3046\u306b\u7d50\u5408\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u5f93\u3063\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u306b\u306f\u3001\u76f4\u524d\u30fb\u76f4\u5f8c\u306e\u5144\u5f1f\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u8981\u7d20\u30ce\u30fc\u30c9\u306e<strong>\u6587\u5b57\u5217\u5024<\/strong>\u3068\u306f\u3001\u8981\u7d20\u30ce\u30fc\u30c9\u306e\u5b50\u5b6b\u3067\u3042\u308b\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u3092\u3001XML\u6587\u66f8\u306b\u73fe\u308c\u308b\u9806\u306b\u7d50\u5408\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u306e\u6587\u5b57\u5217\u7f6e\u306fXML\u6587\u66f8\u306e\u3059\u3079\u3066\u306e\u30c6\u30ad\u30b9\u30c8\u3067\u3059\u3002<\/p>\n<p>[1] <a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5113\">XSLT\u3092\u5b66\u3076\u3000\uff08\uff11\uff09 XML\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[2] <a href=\"https:\/\/www.w3.org\/TR\/xpath\/#data-model\">XPath \u30c7\u30fc\u30bf\u30e2\u30c7\u30eb<\/a><\/p>\n<p style=\"color:red; font-size:1.5em;\"><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:orange;font-style:italic;\">\u6b21\u56de:<br \/>\n<a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5254\">XSLT\u3092\u5b66\u3076\uff083\uff09\u30d1\u30b9\u3068\u306f<\/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>\u524d\u56de\uff08[1]\uff09\u306fXPath\u3067\u306f7\u3064\u306e\u30ce\u30fc\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3001\u3068\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u3046\u3061\u91cd\u8981\u306a\u306e\u306f\u3001\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u3001\u8981\u7d20\u30ce\u30fc\u30c9\u3001\u5c5e\u6027\u30ce\u30fc\u30c9\u3001\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u3067\u3059\u3002\u3053\u306e4\u7a2e\u985e\u306e\u30ce\u30fc\u30c9\u306b\u3064\u3044\u3066\u3082\u3046\u5c11\u3057\u8a73\u3057\u304f\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u4f8b\u3048\u3070\u6b21 [&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,48,16],"tags":[52,263,264,348,597],"class_list":["post-5174","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-xsl-fo","category-structured-doc","tag-ah-formatter","tag-xslt","tag-xsltxpath","tag-348","tag-597"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5174","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=5174"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5174\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=5174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=5174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=5174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}