{"id":5254,"date":"2016-06-20T07:40:30","date_gmt":"2016-06-19T22:40:30","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=5254"},"modified":"2016-06-20T07:40:30","modified_gmt":"2016-06-19T22:40:30","slug":"xslt%e3%82%92%e5%ad%a6%e3%81%b6%e3%80%80%ef%bc%883%ef%bc%89-%e3%83%91%e3%82%b9%e3%81%a8%e3%81%af","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5254\/","title":{"rendered":"XSLT\u3092\u5b66\u3076\u3000\uff083\uff09 \u30d1\u30b9\u3068\u306f"},"content":{"rendered":"<p>\u73fe\u5728\u30015\u6708\u306bPOD\u51fa\u7248\u3057\u305f\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f<sup>[1]<\/sup>\u3092\u4f7f\u3063\u3066\u3001\u6bce\u9031\u3001\u793e\u5185\u3067\u52c9\u5f37\u4f1a\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u5148\u9031\u306f\u7b2c2\u56de\u76ee\u3067\u3057\u305f\u304c\u30013.4.1 \u30d1\u30b9(p.21)\u306e\u7b87\u6240\u3067\u4eba\u306b\u3088\u3063\u3066\u306f\u7d50\u69cb\u3072\u3063\u304b\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u672c\u66f8\u306fXML\u3092XSL-FO\u3067\u672c\u306b\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u30c6\u30fc\u30de\u306a\u306e\u3067\u3001XSLT\u306e\u57fa\u672c\u8aac\u660e\u306f\u3055\u3063\u3068\u6d41\u3057\u3066\u3044\u307e\u3059\u3002\u8a73\u3057\u3044\u3053\u3068\u306f\u3042\u3068\u3067\u3001\u5b9f\u969b\u306b\u4f7f\u3048\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u5b9f\u8df5\u7684\u306a\u6307\u5c0e\u66f8\u3068\u3082\u3044\u3048\u307e\u3059\u3002\u3067\u3082\u308f\u304b\u3089\u306a\u3044\u3053\u3068\u306f\u8a73\u3057\u304f\u8abf\u3079\u3066\u307f\u308b\u306e\u3082\u9762\u767d\u3044\u3082\u306e\u3067\u3059\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u306e\u3042\u305f\u308a\u3092\u5c11\u3057\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u3001\u30d1\u30b9\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u307f\u307e\u3059\u3002XPath\u4ed5\u69d8<sup>[2]<\/sup>\u3092\u898b\u307e\u3059\u3068\u3001\u30d1\u30b9\uff08\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\uff09\u306e\u751f\u6210\u898f\u5247\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u7d76\u5bfe\u30d1\u30b9\u3068\u76f8\u5bfe\u30d1\u30b9\u306e\uff12\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>LocationPath ::= RelativeLocationPath | AbsoluteLocationPath<\/p>\n<p>\u7d76\u5bfe\u30d1\u30b9\u306f\u6b21\u306e\u3088\u3046\u306b\u76f8\u5bfe\u30d1\u30b9\u306e\u5148\u982d\u304c&#8217;\/&#8217;\uff08\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\uff09\u306b\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>AbsoluteLocationPath ::= &#8216;\/&#8217; RelativeLocationPath? | AbbreviatedAbsoluteLocationPath<\/p>\n<p>\u76f8\u5bfe\u30d1\u30b9\u306f\u6b21\u306e\u3088\u3046\u306b\u5358\u4e00\u306e<strong>\u30b9\u30c6\u30c3\u30d7<\/strong>\u307e\u305f\u306f\u8907\u6570\u306e\u30b9\u30c6\u30c3\u30d7\u3092&#8217;\/&#8217;\u3067\u7d50\u5408\u3057\u3066\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<p>RelativeLocationPath ::= Step | RelativeLocationPath &#8216;\/&#8217; Step | AbbreviatedRelativeLocationPath<\/p>\n<p>&#8216;\/&#8217;\u306e\u610f\u5473\u304c\u5834\u6240\u306b\u3088\u3063\u3066\u9055\u3046\u3053\u3068\u3067\u6df7\u4e71\u3057\u304c\u3061\u3067\u3059\u304c\u3001\u5148\u982d\u306b&#8217;\/&#8217;\u304c\u3042\u3063\u305f\u3089\u3001\u305d\u308c\u306f\u30eb\u30fc\u30c8\u30ce\u30fc\u30c9\u3092\u610f\u5473\u3057\u3001\u30b9\u30c6\u30c3\u30d7\u306e\u9593\u306e&#8217;\/&#8217;\u306f\u7d50\u5408\u7528\u30aa\u30da\u30ec\u30fc\u30bf\u3067\u3059\u3002<\/p>\n<p>\u30b9\u30c6\u30c3\u30d7\u306e\u751f\u6210\u898f\u5247\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Step ::= AxisSpecifier NodeTest Predicate* | AbbreviatedStep<\/p>\n<p>\u3064\u307e\u308a\u3001\u30b9\u30c6\u30c3\u30d7\u306e\u8a18\u8ff0\u65b9\u6cd5\u306b\u306f\u7701\u7565\u8a18\u6cd5\uff08AbbreviatedStep\uff09\u3068\u8ef8\u6307\u5b9a\u304b\u3089\u59cb\u3081\u308b\u66f8\u304d\u65b9\uff08AxisSpecifier NodeTest Predicate*\u3067\u69cb\u6210\u3059\u308b\uff09\u306e\u4e8c\u901a\u308a\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u66f8\u306e3.4.1\u30d1\u30b9\u306b\u306f\u7701\u7565\u8a18\u6cd5\u30013.4.2\u8ef8\u306b\u306f\u8ef8\u6307\u5b9a\u304b\u3089\u59cb\u3081\u308b\u8a18\u6cd5\u306e\u4f8b\u304c\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u524d\u56de\uff08<sup>[4]<\/sup>\uff09\u306e\u56f3\u306ep\u8981\u7d20\u3092\u542b\u3080\u30d1\u30b9\u306f\u3001\u7701\u7565\u8a18\u6cd5\u3067\u306f<\/p>\n<p>\u7d76\u5bfe\u30d1\u30b9\uff1a\/doc\/body\/p<br \/>\n\u76f8\u5bfe\u30d1\u30b9\uff1abody\/p<\/p>\n<p>\u3068\u3044\u3046\u4e8c\u7a2e\u985e\u306e\u66f8\u304d\u65b9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3060\u3051\u3067\u3059\u3068\u3001Web\u306eURL\u306a\u3069\u306e\u30d1\u30b9\u306e\u66f8\u304d\u65b9\u3068\u4f3c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u8ef8\u6307\u5b9a\u304b\u3089\u59cb\u3081\u308b\u66f8\u304d\u65b9\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u9055\u3044\u304c\u660e\u78ba\u3067\u3059\u3002<\/p>\n<p>\u7d76\u5bfe\u30d1\u30b9\uff1a\/child::doc\/child::body\/child::p<br \/>\n\u76f8\u5bfe\u30d1\u30b9\uff1achild::body\/child::p<\/p>\n<p>\u3010\u6ce8\u610f\u3011p\u3092\u542b\u3080\u76f8\u5bfe\u30d1\u30b9\u306f\u3001\u8d77\u70b9\u306e\u53d6\u308a\u65b9\u306b\u3088\u308a\u3001\u4e0a\u8a18\u4ee5\u5916\u306b\u3082\u3044\u308d\u3044\u308d\u66f8\u3051\u307e\u3059\u3002<\/p>\n<p>\u5c5e\u6027\u30ce\u30fc\u30c9\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u8ef8\u304b\u3089\u66f8\u304f\u3068\u304d\u3001\u4f8b\u3048\u3070\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7d76\u5bfe\u30d1\u30b9\uff1a\/child::doc\/child::body\/child::p\/attribute::s<br \/>\n\u76f8\u5bfe\u30d1\u30b9\uff1achild::body\/child::p\/attribute::s<\/p>\n<p>attribute:: \u306f\u7701\u7565\u8a18\u6cd5\u3067\u306f@\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7d76\u5bfe\u30d1\u30b9\uff1a\/child::doc\/child::body\/child::p\/child::text()<br \/>\n\u76f8\u5bfe\u30d1\u30b9\uff1achild::body\/child::p\/text()<\/p>\n<p>\u3059\u3079\u3066\u306e\u5b50\u8981\u7d20\u30ce\u30fc\u30c9\u3092\u8868\u3059\u3068\u304d\u306f\u6b21\u306e\u3088\u3046\u306b\u3082\u66f8\u3051\u307e\u3059\u3002<\/p>\n<p>\u7d76\u5bfe\u30d1\u30b9\uff1a\/child::doc\/child::body\/child::*<br \/>\n\u76f8\u5bfe\u30d1\u30b9\uff1achild::body\/child::*<\/p>\n<p>\u3053\u3053\u3067\u8ff0\u3079\u305f\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u306f\u5f0f\u306e\u69cb\u6210\u8981\u7d20\u3068\u306a\u308a\u307e\u3059\uff08\u672c\u66f83.4.4\uff09\u3002\u4ed6\u306b\u30d1\u30bf\u30f3\uff08\u672c\u66f83.7.1\uff09\u3068\u3057\u3066\u306e\u30d1\u30b9\u3082\u3042\u308a\u307e\u3059\u3002\u672c\u66f8\u3067\u306f\u3042\u307e\u308a\u8a73\u3057\u304f\u66f8\u3044\u3066\u3042\u308a\u307e\u305b\u3093\u304c<sup>[4]<\/sup>\u3001Micheal Kay\u3055\u3093\u306e\u672c\u306b\u3088\u308c\u3070\u3001\u7b2c\u4e00\u3068\u7b2c\u4e8c\u3067\u306f\u30d1\u30b9\u306e\u610f\u5473\u5408\u3044\u304c\u9055\u3046\u3088\u3046\u3067\u3059\u3002\u3082\u3046\u5c11\u3057\u8a73\u3057\u304f\u8abf\u3079\u3066\u307f\u307e\u3059\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><a href=\"https:\/\/www.antenna.co.jp\/AHF\/ahf_publication\/index.html#XSLTTutorial\"><\/a><br \/>\n[2] <a href=\"https:\/\/www.w3.org\/TR\/xpath\/\">XML Path Language (XPath) &#8211; W3C<\/a><br \/>\n[3] <a href=\"https:\/\/blog.antenna.co.jp\/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[4] <a href=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5174\">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<\/a><br \/>\n[5] \u306a\u3093\u3069\u3082\u66f8\u304d\u307e\u3059\u304c\u3001\u672c\u66f8\u306fXSLT\u3084XPath\u305d\u306e\u3082\u306e\u3092\u8a73\u3057\u304f\u5b66\u3076\u672c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3010\u3054\u6ce8\u610f\u3011\u7b46\u8005\u306fXSLT\u3092\u52c9\u5f37\u4e2d\u3067\u3059\u3002\u3053\u3053\u306b\u66f8\u3044\u305f\u5185\u5bb9\u306f\u3001\u8cc7\u6599\u3092\u8abf\u3079\u306a\u304c\u3089\u6b63\u78ba\u3092\u671f\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u9593\u9055\u3044\u3092\u542b\u3093\u3067\u3044\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"color:orange;font-style:italic;\">\u6b21\u56de:<br \/>\n<a href=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5288\">XSLT\u3092\u5b66\u3076\uff084\uff09\u5f0f\u306e\u69cb\u6210\u90e8\u54c1\u3068\u3057\u3066\u306e\u30d1\u30b9\u306e\u4f7f\u3044\u65b9<\/a><\/p>\n<p style=\"color:orange;font-style:italic;\">\u524d\u56de:<br \/>\n<a href=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5174\">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<\/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>\u73fe\u5728\u30015\u6708\u306bPOD\u51fa\u7248\u3057\u305f\u300e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u958b\u767a\u306e\u57fa\u790e\u300f[1]\u3092\u4f7f\u3063\u3066\u3001\u6bce\u9031\u3001\u793e\u5185\u3067\u52c9\u5f37\u4f1a\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u5148\u9031\u306f\u7b2c2\u56de\u76ee\u3067\u3057\u305f\u304c\u30013.4.1 \u30d1\u30b9(p.21)\u306e\u7b87\u6240\u3067\u4eba\u306b\u3088\u3063\u3066\u306f\u7d50\u69cb\u3072\u3063\u304b\u304b\u308a\u307e\u3057\u305f\u3002 \u672c\u66f8\u306fXML\u3092XSL- [&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,597],"class_list":["post-5254","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-structured-doc","tag-ah-formatter","tag-xpath","tag-xslt","tag-597"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5254","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=5254"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5254\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=5254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=5254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=5254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}