{"id":5336,"date":"2016-06-22T06:58:40","date_gmt":"2016-06-21T21:58:40","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=5336"},"modified":"2016-06-22T06:58:40","modified_gmt":"2016-06-21T21:58:40","slug":"xslt%e3%82%92%e5%ad%a6%e3%81%b6%e3%80%80%ef%bc%885%ef%bc%89-%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3%e3%81%ae%e8%a8%98%e8%bf%b0%e3%81%ae%e3%81%9f%e3%82%81%e3%81%ae%e3%83%91%e3%82%b9","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5336\/","title":{"rendered":"XSLT\u3092\u5b66\u3076\u3000\uff085\uff09 \u30d1\u30bf\u30fc\u30f3\u306e\u8a18\u8ff0\u306e\u305f\u3081\u306e\u30d1\u30b9"},"content":{"rendered":"<p>\u524d\u56de<sup>[1]<\/sup>\u306f\u3001\u300c\u5f0f\u306e\u69cb\u6210\u90e8\u54c1\u3068\u3057\u3066\u306e\u30d1\u30b9\u300d\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u306fXPath\u4ed5\u69d8<sup>[2]<\/sup>\u3067\u898f\u5b9a\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3082\u3046\u4e00\u3064\u306f\u3001\u300c\u30d1\u30bf\u30fc\u30f3\u306e\u8a18\u8ff0\u306e\u305f\u3081\u306e\u30d1\u30b9\u300d\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3061\u3089\u306fXSLT\u4ed5\u69d8<sup>[3]<\/sup>\u3067\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u672c\u66f8\uff08\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f<sup>[4]<\/sup>\uff09\u3067\u306f\u3001\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u306f\u30013.7.1 \u30d1\u30bf\u30f3\uff08p.33\uff09\u3067\u89e6\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30d1\u30b9\u306e\u5f79\u5272\u306b\u3064\u3044\u3066\u306f\u3042\u307e\u308a\u8a73\u3057\u304f\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u4ed5\u69d8\u66f8\u3067\u5c11\u3057\u8a73\u3057\u304f\u8abf\u3079\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u5f0f\u306f\u4e3b\u306bselect\u306e\u5c5e\u6027\u306e\u5024\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002XSLT V1.0\u3067\u306fselect\u5c5e\u6027\u306f\u6b21\u306e\u8981\u7d20\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>xsl:variable<br \/>\nxsl:param<br \/>\nxsl:apply-templates \uff08\u30ce\u30fc\u30c9\u96c6\u5408\u5f0f\u306e\u307f\uff09<br \/>\nxsl:value-of \uff08\u6587\u5b57\u5217\u5f0f\u306e\u307f\uff09<br \/>\nxsl:with-param<br \/>\nxsl:sort \uff08\u6587\u5b57\u5217\u5f0f\u306e\u307f\uff09<br \/>\nxsl:copy-of<br \/>\nxsl:if\uff08\u8ad6\u7406\u5f0f\u306e\u307f\uff09<br \/>\nxsl:when\uff08\u8ad6\u7406\u5f0f\u306e\u307f\uff09<br \/>\nxsl:for-each\uff08\u30ce\u30fc\u30c9\u96c6\u5408\u5f0f\u306e\u307f\uff09<\/p>\n<p>\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u898f\u5247\uff08xsl:template\uff09\u306ematch\u5c5e\u6027\u306e\u5024\u3068\u3057\u3066\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u542b\u3081\u3066match\u5c5e\u6027\u304c\u4f7f\u3048\u308b\u306e\u306f\u6b21\u306e\u4e09\u3064\u306e\u8981\u7d20\u3067\u3059\u3002<\/p>\n<p>xsl:template<br \/>\nxsl:key<br \/>\nxsl:number<\/p>\n<p>XSLT\u306exsl:template\u306e\u8aac\u660e\u306e\u9805\uff085 Template Rules\uff09\u306b\u306f\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u8aad\u307f\u307e\u3059\u3068\u3001select\u5c5e\u6027\u306e\u5f0f\u306f\u3001\u4e3b\u306b\u30bd\u30fc\u30b9\u6587\u66f8\u304b\u3089\u51e6\u7406\u306e\u5bfe\u8c61\u3068\u3059\u308b\u30ce\u30fc\u30c9\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u306e\u306b\u4f7f\u308f\u308c\u308b\u306e\u306b\u5bfe\u3057\u3066\u3001\u30d1\u30bf\u30fc\u30f3\u306f\u30ce\u30fc\u30c9\u306b\u9069\u7528\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u898f\u5247\u3092\u8b58\u5225\u3059\u308b\u306e\u306b\u4f7f\u3046\u3068\u3044\u3046\u95a2\u4fc2\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u30d1\u30bf\u30fc\u30f3\u306e\u69cb\u6587\u306f\u3001\u5f0f\u306e\u69cb\u6587\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>[1]    \tPattern \t   ::=    \tLocationPathPattern<br \/>\n\t\t\t| Pattern &#8216;|&#8217; LocationPathPattern <\/p>\n<p>\u30d1\u30bf\u30fc\u30f3\u306f\u4e00\u3064\u306e\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30d1\u30bf\u30fc\u30f3\u307e\u305f\u306f\u3001\u305d\u308c\u3092&#8217;\/&#8217;\u30aa\u30da\u30ec\u30fc\u30bf\u3067\u3064\u306a\u3052\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>[2]    \tLocationPathPattern \t   ::=    \t&#8216;\/&#8217; RelativePathPattern?<br \/>\n\t\t\t| IdKeyPattern ((&#8216;\/&#8217; | &#8216;\/\/&#8217;) RelativePathPattern)?<br \/>\n\t\t\t| &#8216;\/\/&#8217;? RelativePathPattern \t<\/p>\n<p>[3]    \tIdKeyPattern \t   ::=    \t&#8216;id&#8217; &#8216;(&#8216; Literal &#8216;)&#8217;<br \/>\n\t\t\t| &#8216;key&#8217; &#8216;(&#8216; Literal &#8216;,&#8217; Literal &#8216;)&#8217; \t<\/p>\n<p>IDkeyPattern\u306f\u5f0f\u3067\u306f\u51fa\u3066\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001ID\u307e\u305f\u306fkey\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3042\u3068\u306f\u5f0f\u3068\u3057\u3066\u306e\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u306e\u751f\u6210\u898f\u5247\u3067\u51fa\u3066\u304d\u305f\u3082\u306e\uff08\u7b2c\uff083\uff09\u56de<sup>[5]<\/sup>\u3092\u53c2\u7167\uff09\u3068\u5927\u3088\u305d\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>[4]    \tRelativePathPattern \t   ::=    \tStepPattern<br \/>\n\t\t\t| RelativePathPattern &#8216;\/&#8217; StepPattern<br \/>\n\t\t\t| RelativePathPattern &#8216;\/\/&#8217; StepPattern<br \/>\n[5]    \tStepPattern \t   ::=    \tChildOrAttributeAxisSpecifier NodeTest Predicate*<br \/>\n[6]    \tChildOrAttributeAxisSpecifier \t   ::=    \tAbbreviatedAxisSpecifier<br \/>\n\t\t\t| (&#8216;child&#8217; | &#8216;attribute&#8217;) &#8216;::&#8217;<\/p>\n<p>ChildOrAttributeAxisSpecifier\u306f\u3001child\u8ef8\u3068attribute\u8ef8\u306e\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>[1] <a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5288\">XSLT\u3092\u5b66\u3076\u3000\uff084\uff09 \u5f0f\u306e\u69cb\u6210\u90e8\u54c1\u3068\u3057\u3066\u306e\u30d1\u30b9\u306e\u4f7f\u3044\u65b9<\/a><br \/>\n[2] <a href=\"https:\/\/www.w3.org\/TR\/xpath\/\">XML Path Language (XPath) Version 1.0<\/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.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[5] <a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5254\">XSLT\u3092\u5b66\u3076\u3000\uff083\uff09 \u30d1\u30b9\u3068\u306f<\/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=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5362\">XSLT\u3092\u5b66\u3076\u3000\uff086\uff09 \u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b<\/a>\n<\/p>\n<p style=\"color:orange;font-style:italic;\">\u524d\u56de:<br \/>\n<a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5288\">XSLT\u3092\u5b66\u3076\u3000\uff084\uff09 \u5f0f\u306e\u69cb\u6210\u90e8\u54c1\u3068\u3057\u3066\u306e\u30d1\u30b9\u306e\u4f7f\u3044\u65b9<\/a>\n<\/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[1]\u306f\u3001\u300c\u5f0f\u306e\u69cb\u6210\u90e8\u54c1\u3068\u3057\u3066\u306e\u30d1\u30b9\u300d\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u306fXPath\u4ed5\u69d8[2]\u3067\u898f\u5b9a\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002 \u3082\u3046\u4e00\u3064\u306f\u3001\u300c\u30d1\u30bf\u30fc\u30f3\u306e\u8a18\u8ff0\u306e\u305f\u3081\u306e\u30d1\u30b9\u300d\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3061\u3089\u306fXSLT\u4ed5\u69d8[3]\u3067\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u672c\u66f8\uff08 [&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,363,597],"class_list":["post-5336","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-structured-doc","tag-ah-formatter","tag-xpath","tag-xslt","tag-347","tag-363","tag-597"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5336","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=5336"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5336\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=5336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=5336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=5336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}