{"id":5113,"date":"2016-06-09T21:13:41","date_gmt":"2016-06-09T12:13:41","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=5113"},"modified":"2016-06-09T21:13:41","modified_gmt":"2016-06-09T12:13:41","slug":"xslt%e3%82%92%e5%ad%a6%e3%81%b6%e3%80%80%ef%bc%88%ef%bc%91%ef%bc%89-xml%e3%81%ae%e3%83%84%e3%83%aa%e3%83%bc%e3%83%a2%e3%83%87%e3%83%ab%e3%81%a8xpathxslt%e3%81%ae%e3%83%84%e3%83%aa%e3%83%bc%e3%83%a2","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5113\/","title":{"rendered":"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"},"content":{"rendered":"<p>\u5148\u6708\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f<sup>[1]<\/sup>\u3068\u3044\u3046\u672c\u3092\u51fa\u7248\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u672c\u306f\u3001\u526f\u984c\u306b\u300cXML\u3068FO\u3067\u7c21\u5358\u306a\u672c\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\u300d\u3068\u3042\u308b\u3068\u304a\u308aXSLT\u306e\u5b9f\u8df5\u5b66\u7fd2\u672c\u3067\u3059\u3002\u73fe\u5728\u3001\u5f0a\u793e\u306e\u793e\u5185\u3067\u3082\u3001\u521d\u5fc3\u8005\u304c\u96c6\u307e\u3063\u3066\u3001\u3053\u306e\u672c\u3092\u4f7f\u3063\u3066XSLT\u306e\u5b66\u7fd2\u3092\u306f\u3058\u3081\u305f\u3068\u3053\u308d\u3067\u3059<sup>[2]<\/sup>\u3002\u79c1\u3082\u30e1\u30f3\u30d0\u30fc\u306e\u4e00\u4eba\u3067\u3059\u3002<\/p>\n<p>\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f\u306e<strong>\u306f\u3058\u3081\u306b<\/strong>\u306b\u306f\u300cXSLT\/XPath\u306e\u77e5\u8b58\u306f\u306a\u3044\u300d\u4eba\u304c\u672c\u66f8\u306e\u5bfe\u8c61\u3068\u3042\u308a\u307e\u3059\u3002\u79c1\u3082XSLT\u3092\u672c\u683c\u7684\u306b\u5b66\u3076\u306e\u306f\u521d\u3081\u3066\u3067\u3059\u306e\u3067\u3001\u672c\u66f8\u306e\u60f3\u5b9a\u8aad\u8005\u306b\u3042\u3066\u306f\u307e\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u7d20\u76f4\u306b\u8aad\u3081\u3070\u3001\u3053\u306e\u672c\u3060\u3051\u3067\u7406\u89e3\u3067\u304d\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u6298\u89d2\u3067\u3059\u306e\u3067\u3001\u4ed6\u306e\u53c2\u8003\u8cc7\u6599\u3084\u4ed5\u69d8\u66f8\u3092\u306b\u3089\u307f\u5408\u308f\u305b\u3066\u697d\u3057\u307f\u306a\u304c\u3089\u304a\u52c9\u5f37\u3002\u305d\u3053\u3067\u3001\u6298\u89d2\u5b66\u3093\u3060\u3053\u3068\u3092\u6574\u7406\u3057\u3066\u3001\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3059\u3067\u306b\u3054\u5b58\u77e5\u306e\u65b9\u306b\u306f\u3001\u521d\u6b69\u7684\u306a\u304a\u8a71\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f\u306e\u88dc\u8db3\u3068\u3057\u3066\u5f79\u7acb\u3066\u3066\u3044\u305f\u3060\u3051\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u8cc7\u6599\u3068\u3057\u3066\u306f\u6b21\u3092\u898b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30fb\u300eXSLT\u30d0\u30a4\u30d6\u30eb\u300f\uff08Michael Kay\u8457\u3001\u30a4\u30f3\u30d7\u30ec\u30b9\u793e\u30012002\u5e741\u6708\u767a\u884c\uff09<br \/>\n\u30fbXSL Transformations (XSLT) Version 1.0\uff08W3C Recommendation 16 November 1999\uff09<sup>[3]<\/sup><br \/>\n\u30fbXML Path Language (XPath) Version 1.0\uff08W3C Recommendation 16 November 1999, revised 7 September 2015\uff09<sup>[4]<\/sup><\/p>\n<p>\u3055\u3066\u3001\u4eca\u56de\u52c9\u5f37\u3057\u59cb\u3081\u3066\u77e5\u3063\u305f\u306e\u3067\u3059\u304c\u3001<strong>\u6574\u5f62\u5f0fXML\u306e\u30c4\u30ea\u30fc\u30e2\u30c7\u30eb\u3068XSLT\uff0fXPath\u306e\u30c4\u30ea\u30fc\u30e2\u30c7\u30eb<\/strong>\u306f\u307e\u3063\u305f\u304f\u9055\u3046\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>XML1.0\u3067\u306f\u3001\u6574\u5f62\u5f0fXML\u6587\u66f8\u306f\u30eb\u30fc\u30c8\u304c\u6587\u66f8\u306e\u5b9f\u4f53\u30c4\u30ea\u30fc\u306e\u8d77\u70b9\u3067\u3042\u308a\u3001XML\u30d7\u30ed\u30bb\u30b5\u306f\u30eb\u30fc\u30c8\u304b\u3089\u51e6\u7406\u3092\u59cb\u3081\u307e\u3059\u3002\u3055\u3089\u306b\u898b\u307e\u3059\u3068\u3001<strong>\u30eb\u30fc\u30c8\u307e\u305f\u306f\u6587\u66f8\u8981\u7d20\u3068\u547c\u3070\u308c\u308b\u8981\u7d20\u304c\u552f\u4e00\u3042\u308b<\/strong>\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30eb\u30fc\u30c8\u8981\u7d20\u306f\u4ed6\u306e\u8981\u7d20\u306e\u5185\u5bb9\u306b\u306a\u308a\u307e\u305b\u3093\uff08\u3064\u307e\u308a\u89aa\u3092\u6301\u3061\u307e\u305b\u3093\uff09\u304c\u3001\u4ed6\u306e\u8981\u7d20\u306f\u89aa\u3092\u6301\u3061\u307e\u3059<sup>[5]<\/sup>\u3002\u6574\u5f62\u5f0fXML\u6587\u66f8\u306f\u30eb\u30fc\u30c8\u8981\u7d20\uff08\u6587\u66f8\u8981\u7d20\uff09\u3092\u8d77\u70b9\u3068\u3059\u308b\u8981\u7d20\u306e\u30c4\u30ea\u30fc\u69cb\u9020\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001XPath\u306e\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306f\u3001\u30ce\u30fc\u30c9\u3068\u3044\u3046\u6982\u5ff5\u304c\u4e2d\u6838\u3067\u3059\u3002\u30ce\u30fc\u30c9\u306e\u7a2e\u985e\u3068\u3057\u3066\u6b21\u306e7\u3064\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30fb\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\uff08root nodes\uff09<br \/>\n\u30fb\u8981\u7d20\u30ce\u30fc\u30c9\uff08element nodes\uff09<br \/>\n\u30fb\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\uff08text nodes\uff09<br \/>\n\u30fb\u5c5e\u6027\u30ce\u30fc\u30c9\uff08attribute nodes\uff09<br \/>\n\u30fb\u540d\u524d\u7a7a\u9593\u30ce\u30fc\u30c9\uff08namespace nodes\uff09<br \/>\n\u30fb\u51e6\u7406\u547d\u4ee4\u30ce\u30fc\u30c9\uff08processing instruction nodes\uff09<br \/>\n\u30fb\u30b3\u30e1\u30f3\u30c8\u30ce\u30fc\u30c9\uff08comment nodes\uff09<\/p>\n<p>\u539f\u6587\u3067root nodes\u3068\u8907\u6570\u5f62\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u6c17\u306b\u306a\u308a\u307e\u3059\u304c\u3001XPath\u4ed5\u69d8\u306e5.1 \u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\uff08Root Node\uff09\u306b\u306f\u3001\u300c\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u306f\u30c4\u30ea\u30fc\u306e\u30eb\u30fc\u30c8\u3067\u3042\u308a\u300d\u3001\u300c\u6587\u66f8\u8981\u7d20\u30ce\u30fc\u30c9\u306f\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u306e\u5b50\u3067\u3042\u308b\u300d\u3001\u300c\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u306e\u5b50\u4f9b\u3068\u3057\u3066\u3001\u51e6\u7406\u547d\u4ee4\u3001\u51e6\u7406\u547d\u4ee4\u306e\u305f\u3081\u306e\u30b3\u30e1\u30f3\u30c8\u3001\u30d7\u30ed\u30ed\u30fc\u30b0\u306e\u4e2d\u306e\u6587\u66f8\u8981\u7d20\u306e\u5f8c\u306e\u30b3\u30e1\u30f3\u30c8\u30ce\u30fc\u30c9\u304c\u3042\u308b\u3002\u300d\u3068\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001XSLT\u4ed5\u69d8\u306e3 \u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\uff08Data Model\uff09\u3092\u898b\u307e\u3059\u3068\u3001XSLT\u3067\u306f\u3001\u30bd\u30fc\u30b9\u6587\u66f8\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3001\u7d50\u679c\u6587\u66f8\u306b\u540c\u3058\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002\u305d\u308c\u3089\u306fXPath\u306e\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u3092\u57fa\u672c\u3068\u3057\u3066\u3001\u5c11\u3057\u3060\u3051\u5909\u66f4\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u30fb\u6574\u5f62\u5f0f\u306e\u30bd\u30fc\u30b9XML\u6587\u66f8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u30bd\u30fc\u30b9\u30c4\u30ea\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u3068\u304d\u306f\u3001\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u306e\u4e0b\u306b\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u306f\u306a\u304f\u3001\u552f\u4e00\u306e\u8981\u7d20\u30ce\u30fc\u30c9\u3092\u5b50\u3068\u3057\u3066\u6301\u3061\u307e\u3059\u3002\u307e\u305f\u3001DOM\u306a\u3069\u306e\u4ed6\u306e\u65b9\u6cd5\u3067\u30bd\u30fc\u30b9\u30c4\u30ea\u30fc\u3092\u4f5c\u308b\u3068\u304d\u306f\u3001\u30bd\u30fc\u30b9\u30c4\u30ea\u30fc\u306b\u5bfe\u3059\u308b\u5236\u7d04\u306f\u7d50\u679c\u30c4\u30ea\u30fc\u540c\u69d8\u306b\u7de9\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u30fb\u6587\u66f8\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306e\u30c4\u30ea\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u3068\u304d\u306f\u51e6\u7406\u547d\u4ee4\u3068\u30b3\u30e1\u30f3\u30c8\u30ce\u30fc\u30c9\u3092\u7121\u8996\u3057\u307e\u3059\u3002<\/p>\n<p>\u30fb\u7d50\u679c\u30c4\u30ea\u30fc\u3067\u306f\u3001\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u3078\u306e\u5236\u7d04\u304c\u7de9\u3081\u3089\u308c\u3066\u304a\u308a\u3001\u5b50\u4f9b\u3068\u3057\u3066\u8981\u7d20\u30ce\u30fc\u30c9\u3092\u542b\u3080\u3001\u4efb\u610f\u306e\u30ce\u30fc\u30c9\u306e\u7cfb\u5217\u3092\u3082\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6574\u5f62\u5f0fXML\u3067\u306a\u3044\u51fa\u529b\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u3001\u305f\u3076\u3093\u3001XSLT\u3067\u306f\u6574\u5f62\u5f0f\u3067\u306a\u3044\u3088\u3046\u306a\u30bd\u30fc\u30b9XML\u3067\u3082\u51e6\u7406\u3067\u304d\u305d\u3046\u3067\u3059<sup>[5]<\/sup>\u3002<\/p>\n<p>[1] <a href=\"https:\/\/www.antenna.co.jp\/AHF\/ahf_publication\/index.html#XSLTTutorial\">\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f<\/a><br \/>\n[2] <a href=\"http:\/\/blog.cas-ub.com\/?p=10279\">\u30a2\u30de\u30be\u30f3POD\u306e\u4fbf\u5229\u306a\u5229\u7528\u6cd5<\/a><br \/>\n[3] <a href=\"https:\/\/www.w3.org\/TR\/xslt\">XSL Transformations (XSLT) Version 1.0<\/a><br \/>\n[4] <a href=\"https:\/\/www.w3.org\/TR\/xpath\/\">XML Path Language (XPath) Version 1.0<\/a><br \/>\n[5] <a href=\"https:\/\/www.w3.org\/TR\/xml\/#sec-documents\">Extensible Markup Language (XML) 1.0 (Fifth Edition) 2 Documents<\/a><br \/>\n[6] \u4f59\u8ac7\u3067\u3059\u3002\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f\u306e\u8457\u8005\uff08\u795e\u69d8\uff09\u306b\u3001Michael Kay\u3055\u3093\u306e\u672c\u306b\u305d\u3093\u306a\u3053\u3068\u304c\u66f8\u3044\u3066\u3042\u308b\u3001\u3068\u8a71\u3057\u307e\u3057\u305f\u3089\u3001<strong>\u4ed5\u69d8\u66f8\u306e\u3069\u3053\u306b\u66f8\u3044\u3066\u3042\u308b\u304b\u3092\u793a\u305b\uff01<\/strong>\u3000\u3068\u8a00\u308f\u308c\u307e\u3057\u305f\u3002\u305d\u308c\u306f\u30013.1 Root Node Children\u306e\u4e8c\u3064\u76ee\u306e\u6bb5\u843d\u306e\u5f8c\u534a\u306e\u30bb\u30f3\u30c6\u30f3\u30b9\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p style=\"color:orange;font-style:italic;\">\u6b21\u56de:<br \/>\n<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><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u6708\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f[1]\u3068\u3044\u3046\u672c\u3092\u51fa\u7248\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u672c\u306f\u3001\u526f\u984c\u306b\u300cXML\u3068FO\u3067\u7c21\u5358\u306a\u672c\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\u300d\u3068\u3042\u308b\u3068\u304a\u308aXSLT\u306e\u5b9f\u8df5\u5b66\u7fd2\u672c\u3067\u3059\u3002\u73fe\u5728\u3001\u5f0a\u793e\u306e\u793e\u5185\u3067\u3082\u3001\u521d\u5fc3\u8005\u304c\u96c6\u307e\u3063\u3066\u3001\u3053\u306e\u672c\u3092\u4f7f\u3063\u3066XSLT\u306e [&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,10,16],"tags":[52,254,258,263,347,597],"class_list":["post-5113","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-column","category-structured-doc","tag-ah-formatter","tag-xml","tag-xpath","tag-xslt","tag-347","tag-597"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5113","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=5113"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5113\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=5113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=5113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=5113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}