{"id":54,"date":"2008-05-23T20:05:16","date_gmt":"2008-05-24T01:05:16","guid":{"rendered":"http:\/\/www.cfchimp.com\/wordpress\/?p=54"},"modified":"2024-12-05T11:42:11","modified_gmt":"2024-12-05T16:42:11","slug":"save-format-view-dreamweaver-search-results","status":"publish","type":"post","link":"https:\/\/csimmons.dev\/blog\/2008\/05\/save-format-view-dreamweaver-search-results\/","title":{"rendered":"Save, Format, View Dreamweaver Search Results"},"content":{"rendered":"<p>For as long as I can remember I have wanted a formatted, printable report of Dreamweaver search results. Since Dreamweaver&#8217;s &#8220;Save Report&#8221; of the results pane is an xml file I have always been too lazy to pursue it. I have finally put forth a little effort to generate one using XSLT. XSLT stands for XSL Transformations. XSLT &#8220;transforms&#8221; XML documents into other formats, like XHTML.<\/p>\n<p><a title=\"search_results.zip\" href=\"https:\/\/csimmons.dev\/blog\/wp-content\/uploads\/2008\/05\/search_results.zip\" target=\"_blank\">Download the search_results.xsl file here<\/a>. Unzip it. It is the file that will perform the styling of your XML results file. Hang on to it for now.<\/p>\n<p>Open Dreamweaver&#8217;s &#8220;Find and Replace&#8221; window (Command + F). Enter your search criteria and click &#8220;Find All&#8221;.<\/p>\n<p>.<a href=\"https:\/\/csimmons.dev\/blog\/wp-content\/uploads\/2008\/05\/search1.jpg\"><img width=\"300\" height=\"143\" data-public-id=\"search1\/search1.jpg\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-post-54 wp-image-55\" title=\"DW Finder Window\" src=\"https:\/\/res.cloudinary.com\/ccsimmons\/images\/w_300,h_143,c_scale\/f_auto,q_auto\/v1\/search1\/search1.jpg?_i=AA\" alt=\"DW Finder Window\" data-format=\"jpg\" data-transformations=\"f_auto,q_auto\" data-version=\"1\" data-seo=\"1\" srcset=\"https:\/\/res.cloudinary.com\/ccsimmons\/images\/w_300,h_143,c_scale\/f_auto,q_auto\/v1\/search1\/search1.jpg?_i=AA 300w, https:\/\/res.cloudinary.com\/ccsimmons\/images\/f_auto,q_auto\/v1\/search1\/search1.jpg?_i=AA 648w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>In the &#8220;Results&#8221; pane click the save icon.<br \/>\n<a href=\"https:\/\/csimmons.dev\/blog\/wp-content\/uploads\/2008\/05\/search2.jpg\"><img width=\"300\" height=\"82\" data-public-id=\"search2\/search2.jpg\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-post-54 wp-image-56\" title=\"DW Results Pane\" src=\"https:\/\/res.cloudinary.com\/ccsimmons\/images\/w_300,h_82,c_scale\/f_auto,q_auto\/v1\/search2\/search2.jpg?_i=AA\" alt=\"DW Results Pane\" data-format=\"jpg\" data-transformations=\"f_auto,q_auto\" data-version=\"1\" data-seo=\"1\" srcset=\"https:\/\/res.cloudinary.com\/ccsimmons\/images\/w_300,h_82,c_scale\/f_auto,q_auto\/v1\/search2\/search2.jpg?_i=AA 300w, https:\/\/res.cloudinary.com\/ccsimmons\/images\/f_auto,q_auto\/v1\/search2\/search2.jpg?_i=AA 701w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>You can accept Dreamweaver&#8217;s default file name or give the file a name related to your search. I&#8217;ll call mine Post.xml. <strong>Save it in the same directory where you put search_results.xsl<\/strong>. Open Post.xml (or whatever you called it) with Dreamweaver and add the one line of code annotated below with the red arrow.<\/p>\n<p><a href=\"https:\/\/csimmons.dev\/blog\/wp-content\/uploads\/2008\/05\/search3.jpg\"><img width=\"300\" height=\"35\" data-public-id=\"search3\/search3.jpg\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-post-54 wp-image-57\" title=\"XSL code\" src=\"https:\/\/res.cloudinary.com\/ccsimmons\/images\/w_300,h_35,c_scale\/f_auto,q_auto\/v1\/search3\/search3.jpg?_i=AA\" alt=\"XSL code\" data-format=\"jpg\" data-transformations=\"f_auto,q_auto\" data-version=\"1\" data-seo=\"1\" srcset=\"https:\/\/res.cloudinary.com\/ccsimmons\/images\/w_300,h_35,c_scale\/f_auto,q_auto\/v1\/search3\/search3.jpg?_i=AA 300w, https:\/\/res.cloudinary.com\/ccsimmons\/images\/f_auto,q_auto\/v1\/search3\/search3.jpg?_i=AA 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Now open your Post.xml file with a web browser such as Safari. You should see your search report formatted as follows:<\/p>\n<p><a href=\"https:\/\/csimmons.dev\/blog\/wp-content\/uploads\/2008\/05\/search4.jpg\"><img width=\"300\" height=\"241\" data-public-id=\"search4\/search4.jpg\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-post-54 wp-image-58\" title=\"Post.xml\" src=\"https:\/\/res.cloudinary.com\/ccsimmons\/images\/w_300,h_241,c_scale\/f_auto,q_auto\/v1\/search4\/search4.jpg?_i=AA\" alt=\"Post.xml\" data-format=\"jpg\" data-transformations=\"f_auto,q_auto\" data-version=\"1\" data-seo=\"1\" srcset=\"https:\/\/res.cloudinary.com\/ccsimmons\/images\/w_300,h_241,c_scale\/f_auto,q_auto\/v1\/search4\/search4.jpg?_i=AA 300w, https:\/\/res.cloudinary.com\/ccsimmons\/images\/f_auto,q_auto\/v1\/search4\/search4.jpg?_i=AA 536w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>You now have a nice printable report complete with results total.<\/p>\n<p><strong>*** UPDATED 2\/27\/2015 ***<\/strong><\/p>\n<p>As a security measure Chrome blocks access to local files. You must open Chrome from the command line with a flag to allow access to local files.<\/p>\n<p>Follow these steps to allow local file access in Chrome on the Mac:<\/p>\n<ul>\n<li>If you have Chrome open, close it<\/li>\n<li>Open a terminal window<\/li>\n<li>Execute the command:\n<pre>open \/Applications\/Google\\ Chrome.app --args --allow-file-access-from-files<\/pre>\n<\/li>\n<li>Once Chrome opens select &#8216;File &gt; Open File&#8217; and browse to your local xml file<\/li>\n<li>Voil\u00e0<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>For as long as I can remember I have wanted a formatted, printable report of Dreamweaver search results. Since Dreamweaver&#8217;s &#8220;Save Report&#8221; of the results pane is an xml file I have always been too lazy to pursue it. I have finally put forth a little effort to generate one using XSLT. XSLT stands for &#8230; <a title=\"Save, Format, View Dreamweaver Search Results\" class=\"read-more\" href=\"https:\/\/csimmons.dev\/blog\/2008\/05\/save-format-view-dreamweaver-search-results\/\" aria-label=\"Read more about Save, Format, View Dreamweaver Search Results\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_cloudinary_featured_overwrite":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":""},"categories":[68],"tags":[12,14,20,21],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-developer","tag-developer","tag-dreamweaver","tag-xml","tag-xslt"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pbVg43-S","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":0,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"wp:attachment":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}