{"id":35,"date":"2007-06-26T03:25:21","date_gmt":"2007-06-26T03:25:21","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?p=35"},"modified":"2023-01-16T05:56:45","modified_gmt":"2023-01-16T05:56:45","slug":"a-stylesheet-for-the-import-and-export-logs","status":"publish","type":"post","link":"https:\/\/www.wapshere.com\/missmiis\/a-stylesheet-for-the-import-and-export-logs","title":{"rendered":"A Stylesheet for the Import and Export Logs"},"content":{"rendered":"<p><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">Follwing on from <a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=31\">yesterday&#8217;s post<\/a>, where I wrote about hanging on to your import and export logs, I now present a way to view them using an xml stylesheet.<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt;\"><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">The first problem with this approach is that the xml files produced by MIIS don&#8217;t work with a stylesheet. The stylesheet name must be included in the xml file, and I also found I needed to remove and change a few tags to get it working (probably just due to my inexperience &#8211; this is the first xml stylesheet I&#8217;ve written).<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt;\"><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">Yesterday I posted a script to be run directly after any Import or Export job, which copies the log file to a datestamped version. It is a straight-forward matter to improve this script so that, instead of a file copy, it modifies the datestamped log to allow it to work with my stylesheet.<\/span><\/span><\/p>\n<p><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">Follow this link for <a href=\"https:\/\/www.wapshere.com\/missmiis\/?page_id=32\" target=\"_blank\" rel=\"noopener noreferrer\">the full ArchiveLog sub<\/a>.<\/span><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0cm 0cm 0pt;\"><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">Next take a copy of this <a href=\"https:\/\/www.wapshere.com\/missmiis\/?page_id=33\" target=\"_blank\" rel=\"noopener noreferrer\">log.xsl stylesheet<\/a> and put it in your Ma Data folder.<\/span><\/span><\/p>\n<p><span lang=\"EN-GB\"><span style=\"font-family: Times New Roman;\">The result should be that you can view the xml data in a browser in a nicely formatted way. At this point I had hoped to include a screenshot, but I&#8217;m having some trouble with my virtual server this morning, so you&#8217;ll just have to try it yourself!<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follwing on from yesterday&#8217;s post, where I wrote about hanging on to your import and export logs, I now present a way to view them using an xml stylesheet. The first problem with this approach is that the xml files produced by MIIS don&#8217;t work with a stylesheet. The stylesheet name must be included in&#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,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[34,9,28,10],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-ilm2007","category-logs","category-miis2003","category-vbscript"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pkp1o-z","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":3,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":3335,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/35\/revisions\/3335"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}