{"id":213,"date":"2007-12-15T22:25:10","date_gmt":"2007-12-16T05:25:10","guid":{"rendered":"https:\/\/dubinko.info\/blog\/2007\/12\/15\/xpath-puzzler\/"},"modified":"2007-12-15T22:25:10","modified_gmt":"2007-12-16T05:25:10","slug":"xpath-puzzler","status":"publish","type":"post","link":"https:\/\/dubinko.info\/blog\/2007\/12\/xpath-puzzler\/","title":{"rendered":"XPath puzzler"},"content":{"rendered":"<p>While I&#8217;ve got your attention, here&#8217;s an XPath (1.0) puzzler. I have an RDFa dataset compiled from various and sundry sources. It&#8217;s all wrapped up in a single XML file. I run this XPath to see how many meta elements are present: <code>\/\/meta<\/code> and it returns a node-set of size 762. Now, I want to see how many property elements are present, so I run the query: <code>\/\/meta\/@property<\/code> and it returns a node-set of size 764. How is it that the second node-set can be bigger than the first? -m<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While I&#8217;ve got your attention, here&#8217;s an XPath (1.0) puzzler. I have an RDFa dataset compiled from various and sundry sources. It&#8217;s all wrapped up in a single XML file. I run this XPath to see how many meta elements are present: \/\/meta and it returns a node-set of size 762. Now, I want to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[28,9,4,32],"tags":[],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-everythingismiscellaneous","category-standards","category-xml","category-xpath"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8eo8l-3r","_links":{"self":[{"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":0,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"wp:attachment":[{"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dubinko.info\/blog\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}