{"id":7046,"date":"2022-03-15T09:30:10","date_gmt":"2022-03-15T00:30:10","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=7046"},"modified":"2022-03-15T09:38:18","modified_gmt":"2022-03-15T00:38:18","slug":"xslt-xslcopy-of-element","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=7046","title":{"rendered":"XSLT xsl:copy-of Element"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Namespace nodes, child nodes, and attributes of the current node are automatically copied as well!<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:xhtml decode:true \">&lt;xsl:copy-of select=\"expression\"\/&gt;\n\n&lt;?xml version=\"1.0\" encoding=\"ISO-8859-1\"?&gt;\n&lt;xsl:stylesheet version=\"1.0\"\nxmlns:xsl=\"http:\/\/www.w3.org\/1999\/XSL\/Transform\"&gt;\n\n  &lt;xsl:variable name=\"header\"&gt;\n    &lt;tr&gt;\n      &lt;th&gt;Element&lt;\/th&gt;\n      &lt;th&gt;Description&lt;\/th&gt;\n    &lt;\/tr&gt;\n  &lt;\/xsl:variable&gt;\n\n  &lt;xsl:template match=\"\/\"&gt;\n    &lt;html&gt;\n      &lt;body&gt;\n        &lt;table&gt;\n          &lt;xsl:copy-of select=\"$header\" \/&gt;\n          &lt;xsl:for-each select=\"reference\/record\"&gt;\n            &lt;tr&gt;\n              &lt;xsl:if test=\"category='XML'\"&gt;\n                &lt;td&gt;\n                  &lt;xsl:value-of select=\"element\"\/&gt;\n                &lt;\/td&gt;\n                &lt;td&gt;\n                  &lt;xsl:value-of select=\"description\"\/&gt;\n                &lt;\/td&gt;\n              &lt;\/xsl:if&gt;\n            &lt;\/tr&gt;\n          &lt;\/xsl:for-each&gt;\n        &lt;\/table&gt;\n        &lt;br \/&gt;\n        &lt;table&gt;\n          &lt;xsl:copy-of select=\"$header\" \/&gt;\n          &lt;xsl:for-each select=\"table\/record\"&gt;\n            &lt;tr&gt;\n              &lt;xsl:if test=\"category='XSL'\"&gt;\n                &lt;td&gt;\n                  &lt;xsl:value-of select=\"element\"\/&gt;\n                &lt;\/td&gt;\n                &lt;td&gt;\n                  &lt;xsl:value-of select=\"description\"\/&gt;\n                &lt;\/td&gt;\n              &lt;\/xsl:if&gt;\n            &lt;\/tr&gt;\n          &lt;\/xsl:for-each&gt;\n        &lt;\/table&gt;\n      &lt;\/body&gt;\n    &lt;\/html&gt;\n  &lt;\/xsl:template&gt;<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Namespace nodes, child nodes, and attributes of the current node are automatically copied as well!<\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[60],"tags":[],"class_list":["post-7046","post","type-post","status-publish","format-standard","hentry","category-xsl"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/7046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7046"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/7046\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}