{"id":5362,"date":"2016-06-24T07:30:37","date_gmt":"2016-06-23T22:30:37","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=5362"},"modified":"2016-06-24T07:30:37","modified_gmt":"2016-06-23T22:30:37","slug":"xslt%e3%82%92%e5%ad%a6%e3%81%b6%e3%80%80%ef%bc%886%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","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5362\/","title":{"rendered":"XSLT\u3092\u5b66\u3076\u3000\uff086\uff09 \u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b"},"content":{"rendered":"<p>\u7b2c3\u56de\uff08<sup>[1]<\/sup>\uff09\u3068\u524d\u56de\uff08<sup>[2]<\/sup>\uff09\u3067\u30d1\u30b9\u306b\u306f\u300c\u5f0f\u306e\u69cb\u6210\u90e8\u54c1\u3068\u3057\u3066\u306e\u30d1\u30b9\u300d\uff08\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\uff09\u3068\u300c\u30d1\u30bf\u30fc\u30f3\u306e\u8a18\u8ff0\u306e\u305f\u3081\u306e\u30d1\u30b9\u300d\uff08\u30d1\u30bf\u30fc\u30f3\u30d1\u30b9\uff09\u306e2\u7a2e\u985e\u3042\u308b\u3053\u3068\u3001\u305d\u3057\u3066\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u306f\u5f0f\u306e\u4e00\u90e8\u3067\u3042\u308axsl:\u8981\u7d20\u306eselect\u5c5e\u6027\u3067\u4f7f\u308f\u308c\u308b\u3053\u3068\u3002\u30d1\u30bf\u30fc\u30f3\u30d1\u30b9\u306f\u3001match\u5c5e\u6027\u3067\u4f7f\u308f\u308c\u308b\u3053\u3068\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d1\u30b9\u3092\u69cb\u6210\u3059\u308b\u6587\u6cd5\u3092\u8abf\u3079\u308b\u3068\u3001\u30b9\u30c6\u30c3\u30d7\u304c\u305d\u306e\u57fa\u672c\u7684\u306a\u5358\u4f4d\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30d1\u30b9\u306f\u30b9\u30c6\u30c3\u30d7\u3092&#8217;\/&#8217;\u3067\u7d50\u5408\u3057\u3066\u69cb\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u30b9\u30c6\u30c3\u30d7\u306b\u3064\u3044\u3066\u3082\u3046\u5c11\u3057\u8a73\u3057\u304f\u8abf\u3079\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>1. \u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u306e<strong>\u30b9\u30c6\u30c3\u30d7<\/strong>\u306f\u3001XPath\u4ed5\u69d8<sup>[3]<\/sup>\u3067\u6c7a\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u7b2c3\u56de\u3067\u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u306e\u5165\u308a\u53e3\u3068\u3057\u3066\u3001\u6b21\u306e\u9805\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>[4] Step ::= AxisSpecifier NodeTest Predicate* | AbbreviatedStep<\/p>\n<p>\u30b9\u30c6\u30c3\u30d7\u306f\u8ef8\u306e\u6307\u5b9a\u5b50\uff08AxisSpecifier\uff09\u3068\u30ce\u30fc\u30c9\u30c6\u30b9\u30c8\uff08NodeTest\uff09\u3068\u30aa\u30d7\u30b7\u30e7\u30f3\uff08*\uff09\u306e\u8ff0\u90e8\uff08Predicate\uff09\u3001\u307e\u305f\u306f\u3001\u7701\u7565\u5f62\uff08AbbreviatedStep\uff09\u304b\u3089\u69cb\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30c6\u30c3\u30d7\u306e\u7701\u7565\u5f62\u306f &#8216;.&#8217;\uff08\u81ea\u5206\u81ea\u8eab\u3001self::node()\u306e\u7701\u7565\u5f62\uff09\u3001\u307e\u305f\u306f&#8217;..&#8217;\uff08\u89aa\u3001parent::node()\u306e\u7701\u7565\u5f62\uff09\u3067\u3059\u3002<\/p>\n<p>[12] AbbreviatedStep ::= &#8216;.&#8217; | &#8216;..&#8217;<\/p>\n<p>\u8ef8\u306e\u6307\u5b9a\u5b50\u306e\u5b9a\u7fa9\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>[5] AxisSpecifier ::= AxisName &#8216;::&#8217; | AbbreviatedAxisSpecifier<br \/>\n[6] AxisName ::= &#8216;ancestor&#8217; | &#8216;ancestor-or-self&#8217; | &#8216;attribute&#8217; | &#8216;child&#8217; | &#8216;descendant&#8217; | &#8216;descendant-or-self&#8217; | &#8216;following&#8217; | &#8216;following-sibling&#8217; | &#8216;namespace&#8217; | &#8216;parent&#8217; | &#8216;preceding&#8217; | &#8216;preceding-sibling&#8217; | &#8216;self&#8217;<\/p>\n<p>\u8ef8\u306e\u6307\u5b9a\u5b50\u306f\u3001\u8ef8\u306e\u540d\u524d\uff08AxisName\uff09\u3068&#8217;::&#8217;\u307e\u305f\u306f\u7701\u7565\u5f62\u306e\u8ef8\u6307\u5b9a\u5b50\uff08AbbreviatedAxisSpecifier\uff09\u3067\u3001\u8ef8\u306e\u540d\u524d\u306f&#8217;ancestor&#8217;\u304b\u3089&#8217;self&#8217;\u307e\u306713\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>[13] AbbreviatedAxisSpecifier ::= &#8216;@&#8217;?<\/p>\n<p>\u7701\u7565\u5f62\u306e\u8ef8\u6307\u5b9a\u5b50\u306f\u306a\u306b\u3082\u6307\u5b9a\u3057\u306a\u3044\u304b&#8217;@&#8217;\u3067\u3059\u3002\u306a\u306b\u3082\u6307\u5b9a\u3057\u306a\u3044\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u306fchild::\u3067\u3059\u3002<br \/>\n@\u306fattribute::\u306e\u7701\u7565\u5f62\u3067\u3059\u3002\u305d\u306e\u4ed6\u3001&#8217;\/\/&#8217;\u306f\/descendant-or-self::node()\/\u306e\u7701\u7565\u5f62\u3068\u3055\u308c\u3066\u3044\u307e\u3059\uff08\u898f\u5247[11]\u7701\u7565\uff09\u3002<\/p>\n<p>NodeTest\u4ee5\u4e0b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u6b21\u56de\u4ee5\u964d\u3082\u3046\u5c11\u3057\u8a73\u3057\u304f\u8abf\u3079\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>[7] NodeTest ::= NameTest | NodeType &#8216;(&#8216; &#8216;)&#8217; | &#8216;processing-instruction&#8217; &#8216;(&#8216; Literal &#8216;)&#8217;<br \/>\n[37] NameTest ::= &#8216;*&#8217; | NCName &#8216;:&#8217; &#8216;*&#8217; | QName \u3000<br \/>\n[38] NodeType ::= &#8216;comment&#8217; | &#8216;text&#8217; | &#8216;processing-instruction&#8217; | &#8216;node&#8217; <\/p>\n<p>NCName\u3001QName\u306fXML\u540d\u524d\u7a7a\u9593\uff08<sup>[4]<\/sup>\uff09\u3067\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>[8] Predicate ::= &#8216;[&#8216; PredicateExpr &#8216;]&#8217;<br \/>\n[9] PredicateExpr ::= Expr\u3000<\/p>\n<p>\u8ff0\u90e8\u306f\u5f0f\uff08Expr\uff09\u3092'[&#8216; &#8216;]&#8217;\u3067\u56f2\u3063\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>2. \u30d1\u30bf\u30fc\u30f3\u306e\u69cb\u6210\u8981\u7d20\u3067\u3042\u308b\u30b9\u30c6\u30c3\u30d7\uff08<strong>\u30b9\u30c6\u30c3\u30d7\u30d1\u30bf\u30fc\u30f3<\/strong>\uff09\u306f\u3001XSLT\u4ed5\u69d8\uff08<sup>[5]<\/sup>\uff09\u3067\u6c7a\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u6587\u6cd5\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>[5] StepPattern ::= ChildOrAttributeAxisSpecifier NodeTest Predicate*<br \/>\n[6] ChildOrAttributeAxisSpecifier ::= AbbreviatedAxisSpecifier<br \/>\n| (\u2018child\u2019 | \u2018attribute\u2019) \u2018::\u2019<\/p>\n<p>NodeTest\u3001Predicate\u3001AbbreviatedAxisSpecifier\u306fXPath\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u53c2\u7167\u3057\u3066\u3044\u307e\u3059\u3002XSLT\u4ed5\u69d8\u306fXPath\u4ed5\u69d8\u3092\u5229\u7528\u3057\u3066\u4f5c\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u3088\u304f\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>[1] <a href=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5254\">XSLT\u3092\u5b66\u3076\uff083\uff09\u30d1\u30b9\u3068\u306f<\/a><br \/>\n[2] <a href=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5336\">XSLT\u3092\u5b66\u3076\uff085\uff09\u30d1\u30bf\u30fc\u30f3\u306e\u8a18\u8ff0\u306e\u305f\u3081\u306e\u30d1\u30b9<\/a><br \/>\n[3] <a href=\"https:\/\/www.w3.org\/TR\/xpath\/\">XML Path Language (XPath) Version 1.0<\/a><br \/>\n[4] <a href=\"https:\/\/www.w3.org\/TR\/REC-xml-names\/\">Namespaces in XML 1.0 (Third Edition)<\/a><br \/>\n[5] <a href=\"https:\/\/www.w3.org\/TR\/xslt\/\">XSL Transformations (XSLT) Version 1.0<\/a><br \/>\n[6] <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><\/p>\n<p>\u3010\u5e83\u544a\u3011<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=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5388\">XSLT\u3092\u5b66\u3076\uff087\uff09\u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b-\u8ef8\u3068\u306f<\/a>\n<\/p>\n<p style=\"color:orange;font-style:italic;\">\u524d\u56de:<br \/>\n<a href=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5336\">XSLT\u3092\u5b66\u3076\uff085\uff09\u30d1\u30bf\u30fc\u30f3\u306e\u8a18\u8ff0\u306e\u305f\u3081\u306e\u30d1\u30b9<\/a>\n<\/p>\n<p style=\"color: green; font-style: italic;\">\u521d\u56de:<br \/>\n<a href=\"https:\/\/blog.antenna.co.jp\/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>\u7b2c3\u56de\uff08[1]\uff09\u3068\u524d\u56de\uff08[2]\uff09\u3067\u30d1\u30b9\u306b\u306f\u300c\u5f0f\u306e\u69cb\u6210\u90e8\u54c1\u3068\u3057\u3066\u306e\u30d1\u30b9\u300d\uff08\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\uff09\u3068\u300c\u30d1\u30bf\u30fc\u30f3\u306e\u8a18\u8ff0\u306e\u305f\u3081\u306e\u30d1\u30b9\u300d\uff08\u30d1\u30bf\u30fc\u30f3\u30d1\u30b9\uff09\u306e2\u7a2e\u985e\u3042\u308b\u3053\u3068\u3001\u305d\u3057\u3066\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u306f\u5f0f\u306e\u4e00\u90e8\u3067\u3042\u308axsl:\u8981\u7d20\u306eselect [&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,263,347,349,597],"class_list":["post-5362","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-structured-doc","tag-ah-formatter","tag-xpath","tag-xslt","tag-347","tag-349","tag-597"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5362","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=5362"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5362\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=5362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=5362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=5362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}