{"id":250015,"date":"2022-08-18T08:24:05","date_gmt":"2022-08-18T00:24:05","guid":{"rendered":"https:\/\/gulass.cn\/?p=250015"},"modified":"2022-08-14T22:26:47","modified_gmt":"2022-08-14T14:26:47","slug":"of-xlink-instances","status":"publish","type":"post","link":"https:\/\/gulass.cn\/of-xlink-instances.html","title":{"rendered":"XLink \u5b9e\u4f8b\u6982\u8ff0"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nXLink \u662f XML \u94fe\u63a5\u8bed\u8a00\uff08XML Linking Language\uff09\u7684\u7f29\u5199,XLink \u5b9a\u4e49\u4e86\u4e00\u5957\u6807\u51c6\u7684\u5728 XML \u6587\u6863\u4e2d\u521b\u5efa\u8d85\u7ea7\u94fe\u63a5\u7684\u65b9\u6cd5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

XML \u5b9e\u4f8b\u6587\u6863<\/strong><\/div>\n

\u8bf7\u770b\u4e0b\u9762\u7684 XML \u6587\u6863\uff0c\"bookstore.xml\"\uff0c\u5b83\u7528\u6765\u5448\u73b0\u4e66\u7c4d\uff1a<\/p>\n

\r\n<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n<bookstore xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\">\r\n<book title=\"Harry Potter\">\r\n<description\r\nxlink:type=\"simple\"\r\nxlink:href=\"http:\/\/book.com\/images\/HPotter.gif\"\r\nxlink:show=\"new\">\r\nAs his fifth year at Hogwarts School of Witchcraft and\r\nWizardry approaches, 15-year-old Harry Potter is.......\r\n<\/description>\r\n<\/book>\r\n<book title=\"XQuery Kick Start\">\r\n<description\r\nxlink:type=\"simple\"\r\nxlink:href=\"http:\/\/book.com\/images\/XQuery.gif\"\r\nxlink:show=\"new\">\r\nXQuery Kick Start delivers a concise introduction\r\nto the XQuery standard.......\r\n<\/description>\r\n<\/book>\r\n<\/bookstore>\r\n<\/pre>\n

\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0cXLink \u6587\u6863\u547d\u540d\u7a7a\u95f4(xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\")\u88ab\u58f0\u660e\u4e8e\u6587\u6863\u7684\u9876\u90e8\u3002 \u8fd9\u610f\u5473\u7740\u6587\u6863\u53ef\u8bbf\u95ee XLink \u7684\u5c5e\u6027\u548c\u7279\u6027\u3002<\/p>\n

xlink:type=\"simple\" \u53ef\u521b\u5efa\u7b80\u5355\u7684\u7c7b\u4f3c HTML \u7684\u94fe\u63a5\u3002\u60a8\u4e5f\u53ef\u4ee5\u89c4\u5b9a\u66f4\u591a\u7684\u590d\u6742\u7684\u94fe\u63a5\uff08\u591a\u65b9\u5411\u94fe\u63a5\uff09\uff0c\u4f46\u662f\u76ee\u524d\uff0c\u6211\u4eec\u4ec5\u4f7f\u7528\u7b80\u6613\u94fe\u63a5\u3002<\/p>\n

xlink:href \u5c5e\u6027\u89c4\u5b9a\u4e86\u8981\u94fe\u63a5\u7684 URL\uff0c\u800c xlink:show \u5c5e\u6027\u89c4\u5b9a\u4e86\u5728\u4f55\u5904\u6253\u5f00\u94fe\u63a5\u3002xlink:show=\"new\" \u610f\u5473\u7740\u94fe\u63a5\uff08\u5728\u6b64\u4f8b\u4e2d\uff0c\u662f\u4e00\u5e45\u56fe\u50cf\uff09\u4f1a\u5728\u65b0\u7a97\u53e3\u6253\u5f00\u3002<\/p>\n

XLink - \u6df1\u5165\u5b66\u4e60<\/strong><\/div>\n

\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u53ea\u5c55\u793a\u4e86\u7b80\u5355\u7684\u94fe\u63a5\u3002\u5f53\u6211\u4eec\u8981\u8bbf\u95ee\u8fdc\u7a0b\u4f4d\u7f6e\u7684\u8d44\u6e90\uff0c\u800c\u4e0d\u662f\u72ec\u7acb\u7684\u9875\u9762\u65f6\uff0cXLink\u662f\u53d8\u5f97\u66f4\u6709\u8da3\u3002\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u5143\u7d20\u96c6\u7684XLINK\u5c5e\u6027\u663e\u793a\u7684\u503c\u4e3a\uff1a\"new\"\u3002\u8fd9\u610f\u5473\u7740\uff0c\u5e94\u8be5\u5728\u65b0\u7a97\u53e3\u6253\u5f00\u94fe\u63a5\u3002\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6eXLINK\u4e2d\u7684\u503c\uff1a\u663e\u793a\u5c5e\u6027\"embed\"\u3002\u8fd9\u610f\u5473\u7740\u8d44\u6e90\u5e94\u5d4c\u5165\u5230\u9875\u9762\u5904\u7406\u3002\u4f60\u8ba4\u4e3a\u8fd9\u53ef\u80fd\u662f\u53e6\u4e00\u4e2aXML\u6587\u6863\uff0c\u800c\u4e0d\u662f\u53ea\u662f\u4e00\u4e2a\u56fe\u50cf\uff0c\u4f60\u53ef\u4ee5\u5efa\u7acb\u4e00\u4e2aXML\u6587\u6863\u4e2d\u5c42\u6b21\u7ed3\u6784\u7684\u4f8b\u5b50\u3002<\/p>\n

\u4f7f\u7528XLink\uff0c\u4f60\u8fd8\u53ef\u4ee5\u6307\u5b9a\u8d44\u6e90\u65f6\u624d\u663e\u793a\u3002\u8fd9\u662f\u7531XLink\u7684actuate\u5c5e\u6027\u5904\u7406\u3002XLINK\uff1aactuate\"=\"onLoad\"\u6307\u5b9a\u7684\u8d44\u6e90\u6587\u4ef6\u5e94\u52a0\u8f7d\u548c\u663e\u793a\u3002XLINK\uff1aactuate=\"onRequest\"\u610f\u5473\u7740\u94fe\u63a5\u88ab\u70b9\u51fb\u4e4b\u524d\u65e0\u6cd5\u8bfb\u53d6\u6216\u663e\u793a\u8d44\u6e90\u3002\u8fd9\u5bf9\u4f4e\u5e26\u5bbd\u8bbe\u7f6e\u975e\u5e38\u65b9\u4fbf\u3002<\/description><\/p>\n","protected":false},"excerpt":{"rendered":"

\u8bf7\u770b\u4e0b\u9762\u7684 XML \u6587\u6863\uff0c”bookstore.xml”\uff0c\u5b83\u7528\u6765\u5448\u73b0\u4e66\u7c4d\uff1a <?xml version= […]<\/p>\n","protected":false},"author":1481,"featured_media":250017,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-250015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/250015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=250015"}],"version-history":[{"count":2,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/250015\/revisions"}],"predecessor-version":[{"id":250019,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/250015\/revisions\/250019"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/250017"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=250015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=250015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=250015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}