{"id":5422,"date":"2016-07-05T06:12:56","date_gmt":"2016-07-04T21:12:56","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=5422"},"modified":"2016-07-05T06:12:56","modified_gmt":"2016-07-04T21:12:56","slug":"xslt%e3%82%92%e5%ad%a6%e3%81%b6%e3%80%80%ef%bc%888%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-nodetest","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5422\/","title":{"rendered":"XSLT\u3092\u5b66\u3076\u3000\uff088\uff09 \u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b-NodeTest"},"content":{"rendered":"<p>\u524d\u56de\u306f\u8ef8\u306b\u3064\u3044\u3066\u8abf\u3079\u307e\u3057\u305f\u306e\u3067\u3001\u4eca\u56de\u306fNodeTest\u3092\u8abf\u3079\u3066\u307f\u307e\u3059\u3002XPath\u4ed5\u69d8\u3067\u306f\u3001NodeTest\u3092\u6b21\u306e\u3088\u3046\u306b\u898f\u5b9a\u3057\u3066\u3044\u307e\u3059<sup>[1]<\/sup>\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<br \/>\n[38]  NodeType ::= &#8216;comment&#8217;|&#8217;text&#8217;|&#8217;processing-instruction&#8217;|&#8217;node&#8217;<\/p>\n<p>\u307e\u305a\u4e3b\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u3092\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3067\u306f\u8ef8\u306e\u6307\u5b9a\u306b\u7d9a\u3044\u3066NodeTest\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002NodeTest\u3067\u306f\u8ef8\u6bce\u306b\u4e3b\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u306b\u8a72\u5f53\u3059\u308b\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30fbattribute\u8ef8\u306e\u4e3b\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u306f\u5c5e\u6027<br \/>\n\u30fbnamespace\u8ef8\u306e\u4e3b\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u306f\u540d\u524d\u7a7a\u9593<br \/>\n\u30fb\u305d\u306e\u4ed6\u306e\u8ef8\u306e\u4e3b\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u306f\u8981\u7d20<\/p>\n<p>\u6587\u6cd5\u4e0a\u306f\u3001attribute::text()\u306e\u3088\u3046\u306a\u7d44\u307f\u5408\u308f\u305b\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u7121\u610f\u5473\u306a\u306e\u3067\u4f55\u3082\u9078\u629e\u3057\u307e\u305b\u3093\u3002<\/p>\n<p><strong>(1) NameTest<\/strong><\/p>\n<p>NameTest\u3067\u306f\u8981\u7d20\u3084\u5c5e\u6027\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u4e00\u81f4\u3059\u308b\u3082\u306e\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>NameTest\u3067\u306f&#8217;*&#8217;\u3092\u4f7f\u3048\u307e\u3059\u3002&#8217;*&#8217;\u306f\u4e3b\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u304c\u4f55\u3067\u3042\u308c\u3059\u3079\u3066\u306e\u30ce\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u771f\u3068\u306a\u308a\u307e\u3059\u3002\u4f46\u3057\u3001NameTest\u306e\u524d\u306b\u306f\u3001\u8ef8\u6307\u5b9a\u5b50\uff08AxisSpecifier\uff09\u304c\u7f6e\u304b\u308c\u307e\u3059\u3002\u8ef8\u6307\u5b9a\u5b50\u304c\u7701\u7565\u3055\u308c\u306a\u3044\u3068\u304d\u306f\u3001\u4f8b\u3048\u3070\u3001child::* \u306f\u8d77\u70b9\u30ce\u30fc\u30c9\u306e\u5b50\u4f9b\u3067\u3042\u308b\u3059\u3079\u3066\u306e\u8981\u7d20\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u307e\u3059\u3002attribute::*\u306f\u8d77\u70b9\u30ce\u30fc\u30c9\u306e\u3059\u3079\u3066\u306e\u5c5e\u6027\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u8ef8\u6307\u5b9a\u5b50\u3092\u7701\u7565\u3067\u304d\u307e\u3059\u3002\u3059\u308b\u3068\u30b9\u30c6\u30c3\u30d7\u306f*\u307e\u305f\u306f@*\u306e\u5f62\u5f0f\u3068\u306a\u308a\u307e\u3059\u3002\u30b9\u30c6\u30c3\u30d7\u306b\u304a\u3044\u3066*\u3092\u6307\u5b9a\u3059\u308b\u3068child::*\u3067\u3042\u308a\u3001@*\u3068\u3059\u308b\u3068Attribute::*\u3067\u3059\uff08\u7b2c6\u56de<sup>[3]<\/sup>\u306e[5]\u3068[13]\u306e\u898f\u5b9a\u306b\u3088\u308b\uff09\u3002<\/p>\n<p>\u4e8c\u756a\u76ee\u306eNCName\u306f\u3001\u540d\u524d\u7a7a\u9593\u306e\u63a5\u982d\u8f9e\u3067\u3059\u3002\u63a5\u982d\u8f9e\u306fXML\u540d\u524d\u7a7a\u9593\u306e\u4ed5\u69d8\u3067\u898f\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059<sup>[2]<\/sup>\u3002<\/p>\n<p>xmlns:svg=&#8221;http:\/\/www.w3.org\/2000\/svg&#8221;<\/p>\n<p>\u3068\u3044\u3046\u540d\u524d\u7a7a\u9593\u306e\u5ba3\u8a00\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3068\u3001NCName\u306f&#8217;svg&#8217;\u306b\u3042\u305f\u308a\u307e\u3059\u3002svg:*\u306fsvg\u540d\u524d\u533a\u9593\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u3001child::svg:*\u306f\u6587\u8108\u30ce\u30fc\u30c9\u306e\u5b50\u4f9b\u3067svg\u540d\u524d\u7a7a\u9593\u306b\u5c5e\u3059\u308b\u8981\u7d20\u30ce\u30fc\u30c9\u3092\u3059\u3079\u3066\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>QName\u306f\u540d\u524d\u7a7a\u9593\u63a5\u982d\u8f9e\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09\u3067\u4fee\u98fe\u3055\u308c\u305f\u540d\u524d\u3067\u3059\u3002<\/p>\n<p><strong>(2) NodeType &#8216;(&#8216; &#8216;)&#8217; <\/strong><\/p>\n<p>NodeTest\u306f\u3001\u30ce\u30fc\u30c9\u306e\u7a2e\u985e\u3067\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30ce\u30fc\u30c9\u306e\u7a2e\u985e\u306f\u6b21\u306e4\u7a2e\u985e\u3067\u3059\u3002<\/p>\n<p>comment()<br \/>\ntext()<br \/>\nprocessing-instruction()<br \/>\nnode()<\/p>\n<p>\u4f8b\u3048\u3070\u3001child::text()\u306f\u8d77\u70b9\u30ce\u30fc\u30c9\u306e\u5b50\u4f9b\u306e\u30c6\u30ad\u30b9\u30c8\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\ncomment()\u306f\u30b3\u30e1\u30f3\u30c8\u30ce\u30fc\u30c9\u3001processing-instruction()\u306f\u51e6\u7406\u547d\u4ee4\u306e\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\nnode()\u306f\u4efb\u610f\u306e\u7a2e\u985e\u306e\u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30c6\u30c3\u30d7\u3067\u3001node()\u3068\u8a18\u8ff0\u3059\u308b\u3068\u3001\u8ef8\u3092\u7701\u7565\u3057\u305f\u3053\u3068\u306b\u306a\u308a\u3001child::node()\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u5f93\u3063\u3066\u3001\u8981\u7d20\u30ce\u30fc\u30c9\u306e\u307f\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>[1] <a href=\"https:\/\/www.w3.org\/TR\/xpath\/#NT-NodeTest\">2.3 Node Tests<\/a><br \/>\n[2] <a href=\"https:\/\/www.w3.org\/TR\/REC-xml-names\/#NT-NCName\">3 Declaring Namespaces<\/a><br \/>\n[3] <a href=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/5362\">XSLT\u3092\u5b66\u3076\uff086\uff09\u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b<\/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\/5480\">XSLT\u3092\u5b66\u3076\uff089\uff09 \u30b9\u30c6\u30c3\u30d7\u306e\u6587\u6cd5\u3092\u8ffd\u6c42\u3059\u308b-\u8ff0\u90e8\uff08Predicates\uff09\u3068\u5f0f<\/a>\n<\/p>\n<p style=\"color:orange;font-style:italic;\">\u524d\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: 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>\u524d\u56de\u306f\u8ef8\u306b\u3064\u3044\u3066\u8abf\u3079\u307e\u3057\u305f\u306e\u3067\u3001\u4eca\u56de\u306fNodeTest\u3092\u8abf\u3079\u3066\u307f\u307e\u3059\u3002XPath\u4ed5\u69d8\u3067\u306f\u3001NodeTest\u3092\u6b21\u306e\u3088\u3046\u306b\u898f\u5b9a\u3057\u3066\u3044\u307e\u3059[1]\u3002 [7] NodeTest ::= NameTest | NodeType &#038;# [&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-5422","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\/5422","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=5422"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/5422\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=5422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=5422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=5422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}