<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech[niques] &#187; windows live writer</title>
	<atom:link href="http://tech.niques.info/tag/windows-live-writer/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.niques.info</link>
	<description>Technology applied to modern life</description>
	<lastBuildDate>Mon, 14 Jun 2010 11:27:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Squeezing Valid xHTML Out Of Windows Live Writer and WordPress</title>
		<link>http://tech.niques.info/wlw-wordpress-valid-xhtml/</link>
		<comments>http://tech.niques.info/wlw-wordpress-valid-xhtml/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 11:00:02 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[windows live writer]]></category>
		<category><![CDATA[wlw]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://tech.niques.info/wlw-wordpress-valid-xhtml/</guid>
		<description><![CDATA[Wordpress and Windows Live Writer are powerful blogging tools, but together they can really mess up your xHTML.  Find out how to make them work better together.]]></description>
			<content:encoded><![CDATA[Copyright © 2012 <a href="http://tech.niques.info">Tech[niques]</a>. Visit the original article at <a href="http://tech.niques.info/wlw-wordpress-valid-xhtml/">http://tech.niques.info/wlw-wordpress-valid-xhtml/</a>.<br /><div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:7ecdf852-8bd1-4f81-8009-87ba7cede7b1" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/configuration" rel="tag">configuration</a>,<a href="http://technorati.com/tags/windows%20live%20writer" rel="tag">windows live writer</a>,<a href="http://technorati.com/tags/wlw" rel="tag">wlw</a>,<a href="http://technorati.com/tags/wordpress" rel="tag">wordpress</a></div>
<p>As part of my experiments with social media sites I came across the <a href="http://www.iblogstats.com" target="_blank">iBlogStats</a> site.&#160; Its a great external dashboard for your blog, but it gave me a nasty shock by highlighting I had about 50 xHTML validation errors on my homepage!</p>
<p>Over the past month I&#8217;ve found that my posts have consistently had 40 to 50 validation errors before I manually hunt them down and resolve them.&#160; All of the posts were published using a combination of Windows Live Writer (WLW) and WordPress.&#160; While I find them to be very easy to use the lack of quality in the output (and the effort required to repair it) made me wonder whether I&#8217;d chosen the right platform for my blog.</p>
<p>Some of the errors I was experiencing:</p>
<ul>
<li>paragraph end tags with no begin tag </li>
<li>div tags surrounded by paragraph tags </li>
<li>attribute construction errors where a title attribute had been moved within hyperlink, and had been concatenated with the href attribute instead of relocated after it</li>
<li>img tags that weren&#8217;t properly terminated </li>
</ul>
<p>&#8230; and the list goes on.&#160; To make matters worse I couldn&#8217;t resolve the errors directly in the WordPress online editor because it insisted on converting div tags to paragraph tags, destroying the visual style of the posts in the process!&#160; I had to maintain a copy of the original post HTML elsewhere, edit it in a text editor then paste the repaired HTML over the existing content shown in the WordPress editor.&#160; A rather tedious process.</p>
<p>A little time on Google found some tips that have dramatically improved the quality of automatically generated xHTML:</p>
<ul>
<li><strong>Turn off the visual editor in WordPress</strong>:&#160; <br />(via <a title="WordPress Visual Editor - Do you Use It?" href="http://weblogtoolscollection.com/archives/2007/09/21/wordpress-visual-editor-do-you-use-it/" target="_blank">Weblog Tools Collection</a> and <a title="WordPress - Taming The Advanced Editor" href="http://www.scratch99.com/2007/06/wordpress-taming-the-advanced-editor/" target="_blank">More than scratch the surface</a>)&#160; <br />In WordPress&#8217;s admin interface, switch to the users tab and edit your current user. Uncheck the &quot;Use the visual editor when writing&quot; option.&#160; This resolves the &quot;div converted to paragraph tag&quot; issue mentioned above, and various other errors introduced when WordPress &quot;fixes&quot; your HTML, so validation errors can now be repaired online. </li>
<li><strong>Configure Windows Live Writer to publish xHTML</strong>:       <br />(via <a title="Writer now supports XHTML* (emphasis on the asterisk)" href="http://jcheng.wordpress.com/2007/09/05/writer-now-supports-xhtml-emphasis-on-the-asterisk/" target="_blank">whateverblog</a>)       <br />Windows Live Writer did such a good job of detecting my blog settings that I didn&#8217;t even think of manually configuring it to publish xHTML.&#160; How embarrassing! In WLW select the Weblog\Edit Weblog Settings menu item.&#160; Open the Advanced configuration options pane.&#160; Make sure &quot;Markup Type&quot; is set to XHTML. </li>
<li><strong>Be careful where you &quot;Insert Tags&quot;</strong>      <br />If you use the Web Layout view to write your post, be careful where you call the &quot;Insert Tags&quot; feature.&#160; WLW uses paragraph tags and non-breaking space to add blank lines to your post.&#160; If you are not careful you might insert your tags after a non-breaking space on a blank line and inadvertently wrap the tag&#8217;s div directly within paragraph tags.&#160; When you <a title="W3C&#39;s xHTML Validator" href="http://validator.w3.org/" target="_blank">validate</a> the results this will be highlighted as an error.</li>
</ul>
<p>While some errors remain the volume is more manageable (a couple per post) and they tend to be easier to resolve.&#160; The most painful one remaining is the &quot;attribute construction error&quot; but it is looking more and more like this has been introduced by one of the plugins I&#8217;m using.&#160; I&#8217;ll continue debugging my configuration and report back if I ever manage to track this last major bug down!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Ftech.niques.info%2Fwlw-wordpress-valid-xhtml%2F';
  addthis_title  = 'Squeezing+Valid+xHTML+Out+Of+Windows+Live+Writer+and+WordPress';
  addthis_pub    = 'DawMatt';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://tech.niques.info/wlw-wordpress-valid-xhtml/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Authoring hReviews in Windows Live Writer</title>
		<link>http://tech.niques.info/hreview-template-windows-live-writer/</link>
		<comments>http://tech.niques.info/hreview-template-windows-live-writer/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 11:00:54 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[hReview]]></category>
		<category><![CDATA[microformat]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[windows live writer]]></category>
		<category><![CDATA[wlw]]></category>

		<guid isPermaLink="false">http://tech.niques.info/hreview-template-windows-live-writer/</guid>
		<description><![CDATA[Have you ever tried writing a hReview in Windows Live Writer (WLW)?  Its not easy.  That's why I created this dynamic template/form to make the process easier.]]></description>
			<content:encoded><![CDATA[Copyright © 2012 <a href="http://tech.niques.info">Tech[niques]</a>. Visit the original article at <a href="http://tech.niques.info/hreview-template-windows-live-writer/">http://tech.niques.info/hreview-template-windows-live-writer/</a>.<br /><div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:d947f129-46d0-4721-aecf-158a18e30b01" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/hReview" rel="tag">hReview</a>,<a href="http://technorati.com/tags/microformat" rel="tag">microformat</a>,<a href="http://technorati.com/tags/template" rel="tag">template</a>,<a href="http://technorati.com/tags/windows%20live%20writer" rel="tag">windows live writer</a>,<a href="http://technorati.com/tags/wlw" rel="tag">wlw</a></div>
<p>Have you ever tried writing a hReview in Windows Live Writer (WLW)?&#160; Its not easy.&#160; There is no support built into the GUI for the microformat, I couldn&#8217;t find any <a title="hReview Implementations" href="http://microformats.org/wiki/hreview-implementations" target="_blank">publicly available plugins to add the capability</a> (though <a title="Post discussing unreleased hReview plugin" href="http://jasonhaley.com/blog/archive/2006/10/02/137006.aspx" target="_blank">some have apparently been written</a>), and if you try to write the review by hand you have to do so in the HTML Code view lest Windows Live Writer <em>helpfully</em> modify or remove a critical div or span tag for you and break the data format.&#160; As I said &#8211; its not easy.</p>
<p>This is a problem because microformats are gradually gaining momentum in the blogosphere.&#160; In particular the <a href="http://microformats.org/wiki/hreview" target="_blank">hReview microformat</a> is proving useful for blogs:</p>
<blockquote><p><strong>hReview</strong> is a simple, open, distributed format, suitable for embedding reviews (of products, services, businesses, events, etc.) in HTML, XHTML, Atom, RSS, and arbitrary XML. </p></blockquote>
<p>Writing your review in this format allows services such as <a title="Pingerati" href="http://Pingerati.net" target="_blank">Pingerati</a> and <a title="LouderVoice" href="http://www.loudervoice.com/" target="_blank">LouderVoice</a>.to aggregate and redistribute your content, giving your views access to a wider audience.</p>
<p>In my search for a hReview plugin I stumbled across <a title="Dynamic Template announcement" href="http://jcheng.wordpress.com/2007/09/13/dynamic-template-102/trackback/" target="_blank">this post</a> by one of the Microsoft team developing Windows Live Writer.&#160; It announced a <a title="Dynamic Template download page" href="http://www.joecheng.com/code/DynamicTemplate/" target="_blank">Dynamic Template</a> plugin for calling customisable templates including dynamic content and forms for entering field values.&#160; This seemed my best option for quickly adding some level of hReview capability to Windows Live Writer.</p>
<p><a href="http://tech.niques.info/wp-content/uploads/2008/01/authoring-hreviews-in-windows-live-writer-00.png"><img title="hReview Entry Form" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="439" alt="hReview Entry Form" src="http://tech.niques.info/wp-content/uploads/2008/01/authoring-hreviews-in-windows-live-writer-00-thumb.png" width="284" align="left" border="0" /></a> </p>
<p>The result is the form you see here.&#160; I&#8217;ve found the best approach to applying it is to enter the fundamentals of the review (item, type, URL, ratings, tags, etc) via the form, then finishing the details of the Overview and Description sections of the review by hand in your favourite WLW view.&#160; This lets the template deal with the fiddly pieces of the hReview format (correctly specifying the classes, and span and div tags) without forcing you to spend too much time entering content directly into the restrictive form fields.&#160; As templates are uni-directional &#8211; you can&#8217;t &quot;round trip&quot; from the hReview form into WLW then back into the form again &#8211; you will need to use the HTML Code view if you want to edit the ratings later&#160;&#160; Please note you must be in HTML Code view when invoking the template or the abbr tag in the posts title will be damaged (appears to be a Dynamic Template limitation).</p>
<p>You can download the template and sample stylesheets below.&#160; The easiest way to install the template is to double click the .wlwtemplate file after downloading, assuming the <a title="Dynamic Template download page" href="http://www.joecheng.com/code/DynamicTemplate/" target="_blank">Dynamic Template</a> plugin is already installed. <del>The template file needs to be copied into your Application Data\WLWTemplates directory before the <a title="Dynamic Template download page" href="http://www.joecheng.com/code/DynamicTemplate/" target="_blank">Dynamic Template</a> plugin will recognise it.</del></p>
<table cellspacing="0" cellpadding="2" width="500" border="0">
<tbody>
<tr>
<th valign="top" width="250">hReview Dynamic Template</th>
<td valign="top" width="250"><a title="Download hReview Dynamic Template" href="http://tech.niques.info/downloads/hReview.wlwtemplate" target="_blank">Download</a> (via right click, save link as)</td>
</tr>
<tr>
<th valign="top" width="250">hReview CSS Example</th>
<td valign="top" width="250"><a title="Download hReview CSS Example" href="http://tech.niques.info/downloads/hReview-styles.css" target="_blank">Download</a> (via right click, save link as)</td>
</tr>
</tbody>
</table>
<p>If you need any additional information about the template&#8217;s installation or usage then please refer to its <a title="hReview Dynamic Template for Windows Live Writer" href="http://tech.niques.info/projects/wlw-template-hreview/" target="_blank">project page</a>.&#160; A post created using the template and styles above can be <a title="Sample hReview post" href="http://tech.niques.info/choosing-free-digital-certificate/" target="_blank">found here</a>.&#160; </p>
<p>If you have any questions or feedback about the template then please leave a comment below.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Ftech.niques.info%2Fhreview-template-windows-live-writer%2F';
  addthis_title  = 'Authoring+hReviews+in+Windows+Live+Writer';
  addthis_pub    = 'DawMatt';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://tech.niques.info/hreview-template-windows-live-writer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

