{"id":5288,"date":"2016-06-21T06:59:42","date_gmt":"2016-06-20T21:59:42","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=5288"},"modified":"2016-06-21T06:59:42","modified_gmt":"2016-06-20T21:59:42","slug":"xslt%e3%82%92%e5%ad%a6%e3%81%b6%e3%80%80%ef%bc%884%ef%bc%89-%e5%bc%8f%e3%81%ae%e6%a7%8b%e6%88%90%e9%83%a8%e5%93%81%e3%81%a8%e3%81%97%e3%81%a6%e3%81%ae%e3%83%91%e3%82%b9%e3%81%ae%e4%bd%bf%e3%81%84","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5288\/","title":{"rendered":"XSLT\u3092\u5b66\u3076\u3000\uff084\uff09 \u5f0f\u306e\u69cb\u6210\u90e8\u54c1\u3068\u3057\u3066\u306e\u30d1\u30b9\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<p>\u524d\u56de<sup>[1]<\/sup>\u306f\u30d1\u30b9\uff08\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\uff09\u306e\u69cb\u6210\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u7d9a\u3044\u3066\u30d1\u30b9\u306e\u4f7f\u3044\u65b9\u3092\u8abf\u3079\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3067\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3059\u8981\u7d20\u306e\u4e00\u3064\u306bxsl:apply-templates\u304c\u3042\u308a\u307e\u3059\u3002XSLT<sup>[2]<\/sup>\u306e5.4 Applying Template Rules\u3092\u898b\u307e\u3059\u3068\u3001xsl:apply-templates\u306e\u5b9a\u7fa9\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&lt;xsl:apply-templates<br \/>\n\u3000select = node-set-expression<br \/>\n\u3000mode = qname&gt;<br \/>\n\u3000&lt;!&#8211; Content: (xsl:sort | xsl:with-param)* &#8211;&gt;<br \/>\n&lt;\/xsl:apply-templates&gt;<\/p>\n<p>select\u5c5e\u6027\u3092\u7701\u7565\u3059\u308b\u3068\u3001xsl:apply-templates\u306f\u30ab\u30ec\u30f3\u30c8\u30ce\u30fc\u30c9\u306e\u3059\u3079\u3066\u306e\u5b50\u4f9b\u3092\u51e6\u7406\u3057\u307e\u3059\u3002select\u5c5e\u6027\u306e\u5024\u306b\u5f0f\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u51e6\u7406\u5bfe\u8c61\u3068\u3059\u308b\u30ce\u30fc\u30c9\u306e\u96c6\u5408\u3092\u9650\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u5f0f\u306f\u3069\u306e\u3088\u3046\u306b\u8a55\u4fa1\u3055\u308c\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>XSLT\u306e5.1 Processing Model\u3092\u8aad\u3080\u3068\u3001\u30ce\u30fc\u30c9\u306bmatch\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u898f\u5247\u306e\u4e2d\u304b\u3089\u3001\u3042\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u898f\u5247\u304c\u9078\u629e\u3055\u308c\u308b\u3068\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u898f\u5247\u306f\u305d\u306e\u30ce\u30fc\u30c9\u3092\u30ab\u30ec\u30f3\u30c8\u30ce\u30fc\u30c9\u3068\u3057\u3066\u8d77\u52d5\u3055\u308c\u308b\u3068\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u672c\u66f8<sup>[3]<\/sup>\u306b\u306f\u6b21\u306e\u3088\u3046\u306a\u4f8b\uff082.18\u306e\u4e00\u90e8\uff09\u304c\u51fa\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&lt;xsl:template match=&#8221;body&#8221;&gt;<br \/>\n\u3000&lt;fo:page-sequence master-reference=&#8221;main&#8221;&gt;<br \/>\n\u3000\u3000&lt;fo:flow flow-name=&#8221;xsl-region-body&#8221;&gt;<br \/>\n\u3000\u3000\u3000&lt;xsl:apply-templates select=&#8221;p&#8221;\/&gt;<br \/>\n\u3000\u3000&lt;\/fo:flow&gt;<br \/>\n\u3000&lt;\/fo:page-sequence&gt;<br \/>\n&lt;\/xsl:template&gt;<\/p>\n<p>&lt;xsl:template match=&#8221;p&#8221;&gt;<br \/>\n\u3000&lt;fo:block&gt;<br \/>\n\u3000\u3000&lt;xsl:apply-templates\/&gt;<br \/>\n\u3000&lt;\/fo:block&gt;<br \/>\n&lt;\/xsl:template&gt;<\/p>\n<p>\u6700\u521d\u306e\u30d6\u30ed\u30c3\u30af\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u898f\u5247\uff08xsl:template\uff09\u306f\u3001\uff08\u8981\u7d20\u30ce\u30fc\u30c9\uff09body\u306bmatch\u3057\u3066\u3044\u307e\u3059\u3002\u5f93\u3063\u3066\u3001\u6700\u521d\u306e\u30d6\u30ed\u30c3\u30af\u3067\u306fbody\u304c\u30ab\u30ec\u30f3\u30c8\u30ce\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p>XPath<sup>[4]<\/sup>\u306e\u5f0f\u306f\u6587\u8108\u30ce\u30fc\u30c9\u3067\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002XSLT\u306e4 Expressions\u3092\u898b\u307e\u3059\u3068\u3001\u6700\u3082\u5916\u5074\u306e\u5f0f\uff08\u3042\u308b\u5f0f\u306e\u4e00\u90e8\u3067\u306a\u3044\u5f0f\uff09\u306f\u6587\u8108\u3092\u6b21\u306e\u3088\u3046\u306b\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>a. \u6587\u8108\u30ce\u30fc\u30c9\u306f\u30ab\u30ec\u30f3\u30c8\u30ce\u30fc\u30c9\u304b\u3089<br \/>\nb. \u6587\u8108\u30ce\u30fc\u30c9\u306e\u4f4d\u7f6e\u306f\u3001\u30ab\u30ec\u30f3\u30c8\u30ce\u30fc\u30c9\u30ea\u30b9\u30c8\u306b\u304a\u3051\u308b\u30ab\u30ec\u30f3\u30c8\u30ce\u30fc\u30c9\u306e\u4f4d\u7f6e\u304b\u3089<br \/>\nc. \u6587\u8108\u30ce\u30fc\u30c9\u306e\u5927\u304d\u3055\u306f\u3001\u30ab\u30ec\u30f3\u30c8\u30ce\u30fc\u30c9\u30ea\u30b9\u30c8\u306e\u5927\u304d\u3055\u304b\u3089<\/p>\n<p>\u3053\u3046\u3057\u3066\u3001\u6700\u521d\u306exsl:apply-templates\u306eselect\u5c5e\u6027\u306e\u5024\u3067\u3042\u308b\u5f0fp\uff08child::p\u306e\u7701\u7565\u8a18\u6cd5\uff09\u306e\u6587\u8108\u30ce\u30fc\u30c9\u306fbody\u306b\u306a\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u3053\u3046\u3057\u3066select\u5c5e\u6027\u306b\u3088\u308abody\u306e\u5b50\u3067\u3042\u308bp\u3092\u9078\u629e\u3057\u305f\u30ce\u30fc\u30c9\u96c6\u5408\u3092\u4f5c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\uff08body\u306e\u5b50\u306ep\u3067\u306f\u306a\u3044\u8981\u7d20\u30ce\u30fc\u30c9\u3084\u3001body\u306e\u5144\u5f1fp\u8981\u7d20\u30ce\u30fc\u30c9\u306f\u5bfe\u8c61\u306b\u306a\u308a\u307e\u305b\u3093\uff09\u3002<\/p>\n<p>[1] <a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5254\">XSLT\u3092\u5b66\u3076\u3000\uff083\uff09 \u30d1\u30b9\u3068\u306f<\/a><br \/>\n[2] <a href=\"https:\/\/www.w3.org\/TR\/xslt\">XSL Transformations (XSLT) Version 1.0<\/a><br \/>\n[3] <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[4] <a href=\"https:\/\/www.w3.org\/TR\/xpath\/\">XML Path Language (XPath) Version 1.0<\/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\/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:orange;font-style:italic;\">\u524d\u56de:<br \/>\n<a href=\"http:\/\/192.168.16.141\/ILSoft2\/archives\/5254\">XSLT\u3092\u5b66\u3076\u3000\uff083\uff09 \u30d1\u30b9\u3068\u306f<\/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\u30d1\u30b9\uff08\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\uff09\u306e\u69cb\u6210\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u7d9a\u3044\u3066\u30d1\u30b9\u306e\u4f7f\u3044\u65b9\u3092\u8abf\u3079\u3066\u307f\u307e\u3059\u3002 \u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3067\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3059\u8981\u7d20\u306e\u4e00\u3064\u306bxsl:apply-templates\u304c\u3042\u308a\u307e\u3059\u3002XSLT[2]\u306e5.4 App [&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,597],"class_list":["post-5288","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-structured-doc","tag-ah-formatter","tag-xpath","tag-xslt","tag-347","tag-597"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5288","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=5288"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5288\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=5288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=5288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=5288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}