<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Convert HTML to Plain Text in C# using Markdown</title>
	<atom:link href="http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/</link>
	<description>Welcome to the miscellaneous mutterings of Simon Dingley, Freelance Web Developer</description>
	<lastBuildDate>Mon, 26 Jul 2010 23:05:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jim</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2195</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Tue, 15 Dec 2009 17:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2195</guid>
		<description>No problem! I will check back every so often to see if you were able to find a solution. For now, I&#039;m just keeping the Title text in my output.

I still think your solution is superior so my request is just a refinement to an already superb approach.

Regards,
Jim</description>
		<content:encoded><![CDATA[<p>No problem! I will check back every so often to see if you were able to find a solution. For now, I&#8217;m just keeping the Title text in my output.</p>
<p>I still think your solution is superior so my request is just a refinement to an already superb approach.</p>
<p>Regards,<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Dingley</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2160</link>
		<dc:creator>Simon Dingley</dc:creator>
		<pubDate>Mon, 07 Dec 2009 12:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2160</guid>
		<description>Jim, sorry for the delayed reply. Unfortunately I have been unsuccessful also in my attempts to achieve what you are after. I will continue to try when I get a chance and will post back on my success(or failure).</description>
		<content:encoded><![CDATA[<p>Jim, sorry for the delayed reply. Unfortunately I have been unsuccessful also in my attempts to achieve what you are after. I will continue to try when I get a chance and will post back on my success(or failure).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimHou</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2120</link>
		<dc:creator>JimHou</dc:creator>
		<pubDate>Sat, 28 Nov 2009 02:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2120</guid>
		<description>Hi Simon,

I tried your suggestion (replacing &quot;*&quot; with &quot;body&quot; where indicated) but had no luck (the Title tag value is still appearing in the resulting text string). Although I was very careful to make exactly the change you suggested (down to the case, of course, of the word &quot;body&quot;), it is entirely possible that the problem is somehow with my implementation...

If you can think of any other ideas, I would be happy to try them. Meanwhile, I am truncating the start of the string as needed (works, but not as elegant).

Regards,
Jim</description>
		<content:encoded><![CDATA[<p>Hi Simon,</p>
<p>I tried your suggestion (replacing &#8220;*&#8221; with &#8220;body&#8221; where indicated) but had no luck (the Title tag value is still appearing in the resulting text string). Although I was very careful to make exactly the change you suggested (down to the case, of course, of the word &#8220;body&#8221;), it is entirely possible that the problem is somehow with my implementation&#8230;</p>
<p>If you can think of any other ideas, I would be happy to try them. Meanwhile, I am truncating the start of the string as needed (works, but not as elegant).</p>
<p>Regards,<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimHou</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2118</link>
		<dc:creator>JimHou</dc:creator>
		<pubDate>Fri, 27 Nov 2009 17:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2118</guid>
		<description>Thanks again. I will try this (the suggestion makes sense--restricting to the body tag). As before I will let you know if I encounter any problems.

Regards,
Jim</description>
		<content:encoded><![CDATA[<p>Thanks again. I will try this (the suggestion makes sense&#8211;restricting to the body tag). As before I will let you know if I encounter any problems.</p>
<p>Regards,<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Dingley</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2115</link>
		<dc:creator>Simon Dingley</dc:creator>
		<pubDate>Thu, 26 Nov 2009 17:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2115</guid>
		<description>Try altering the XSLT file to tell it you only want to markdown the body of your HTML content. In my copy around about line 101 you will find the following:

[code lang=&quot;xml&quot;]&lt;xsl:template match=&quot;*&quot; mode=&quot;markdown&quot;&gt;
  &lt;xsl:apply-templates select=&quot;*&quot; mode=&quot;markdown&quot;/&gt;
&lt;/xsl:template&gt;[/code]

If you change it as follows:
[code lang=&quot;xml&quot;]&lt;xsl:template match=&quot;body&quot; mode=&quot;markdown&quot;&gt;
  &lt;xsl:apply-templates select=&quot;*&quot; mode=&quot;markdown&quot;/&gt;
&lt;/xsl:template&gt;[/code]
I am also no expert with XSLT but I am learning slowly ;)</description>
		<content:encoded><![CDATA[<p>Try altering the XSLT file to tell it you only want to markdown the body of your HTML content. In my copy around about line 101 you will find the following:</p>
<pre class="brush: xml;">&lt;xsl:template match=&quot;*&quot; mode=&quot;markdown&quot;&gt;
  &lt;xsl:apply-templates select=&quot;*&quot; mode=&quot;markdown&quot;/&gt;
&lt;/xsl:template&gt;</pre>
<p>If you change it as follows:</p>
<pre class="brush: xml;">&lt;xsl:template match=&quot;body&quot; mode=&quot;markdown&quot;&gt;
  &lt;xsl:apply-templates select=&quot;*&quot; mode=&quot;markdown&quot;/&gt;
&lt;/xsl:template&gt;</pre>
<p>I am also no expert with XSLT but I am learning slowly <img src='http://www.prolificnotion.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimHou</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2114</link>
		<dc:creator>JimHou</dc:creator>
		<pubDate>Thu, 26 Nov 2009 16:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2114</guid>
		<description>OOPS! No wonder you didn&#039;t understand. I stupidly used the &quot;less than sign&quot; and &quot;greater than sign&quot; in my post around a tag name, and it got lost in the HTML filter.

I was asking about the page having a (Title) tag. I have re-posted my question below and gave used parentheses instead of tag brackets...

Thank you!
Jim
-----------------------
The only other thing I noticed is that if the HTML document has a (Title) value, then this (Title) value gets exported as the first line of the text file. I can see reasons why this might be desirable but (in my opinion) this should not appear in the text version of a web page since the Title value is designed to appear in the browser title bar and not on the page rendering area.

If you agree, how would you modify the XSL to omit the (Title) tag value? I am essentially XSL illiterate.

Thank you again,
Jim</description>
		<content:encoded><![CDATA[<p>OOPS! No wonder you didn&#8217;t understand. I stupidly used the &#8220;less than sign&#8221; and &#8220;greater than sign&#8221; in my post around a tag name, and it got lost in the HTML filter.</p>
<p>I was asking about the page having a (Title) tag. I have re-posted my question below and gave used parentheses instead of tag brackets&#8230;</p>
<p>Thank you!<br />
Jim<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
The only other thing I noticed is that if the HTML document has a (Title) value, then this (Title) value gets exported as the first line of the text file. I can see reasons why this might be desirable but (in my opinion) this should not appear in the text version of a web page since the Title value is designed to appear in the browser title bar and not on the page rendering area.</p>
<p>If you agree, how would you modify the XSL to omit the (Title) tag value? I am essentially XSL illiterate.</p>
<p>Thank you again,<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Dingley</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2108</link>
		<dc:creator>Simon Dingley</dc:creator>
		<pubDate>Wed, 25 Nov 2009 16:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2108</guid>
		<description>How do you mean if the HTML Document has a value? Can you provide an example?</description>
		<content:encoded><![CDATA[<p>How do you mean if the HTML Document has a value? Can you provide an example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimHou</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2106</link>
		<dc:creator>JimHou</dc:creator>
		<pubDate>Wed, 25 Nov 2009 14:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2106</guid>
		<description>That worked well Simon. Thank you!

The only other thing I noticed is that if the HTML document has a  value, then this value gets exported as the first line of the text file. I can see reasons why this might be desirable but (in my opinion) this should not appear in the text version of a web page since the Title appears in the browser title bar and not on the page rendering area.

If you agree, how would you modify the XSL to omit the  tag value? I am essentially XSL illiterate.

Thank you again,
Jim</description>
		<content:encoded><![CDATA[<p>That worked well Simon. Thank you!</p>
<p>The only other thing I noticed is that if the HTML document has a  value, then this value gets exported as the first line of the text file. I can see reasons why this might be desirable but (in my opinion) this should not appear in the text version of a web page since the Title appears in the browser title bar and not on the page rendering area.</p>
<p>If you agree, how would you modify the XSL to omit the  tag value? I am essentially XSL illiterate.</p>
<p>Thank you again,<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimHou</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2087</link>
		<dc:creator>JimHou</dc:creator>
		<pubDate>Fri, 20 Nov 2009 13:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2087</guid>
		<description>Thank you! I will try that--it seems like a far better solution than the one I had implemented (which simply omitted the initial characters from the final string).

I will let you know if I have any further issues.

Thanks again,
Jim</description>
		<content:encoded><![CDATA[<p>Thank you! I will try that&#8211;it seems like a far better solution than the one I had implemented (which simply omitted the initial characters from the final string).</p>
<p>I will let you know if I have any further issues.</p>
<p>Thanks again,<br />
Jim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Dingley</title>
		<link>http://www.prolificnotion.co.uk/convert-html-to-plain-text-in-c-using-markdown/comment-page-1/#comment-2074</link>
		<dc:creator>Simon Dingley</dc:creator>
		<pubDate>Mon, 16 Nov 2009 22:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.prolificnotion.co.uk/?p=262#comment-2074</guid>
		<description>Sorry for the delayed reply Jim. I would suggest adding the following line below to your XSLT beneath the xsl:stylesheet declaration:

[code lang=&quot;xml&quot;]&lt;xsl:output method=&quot;xml&quot; omit-xml-declaration=&quot;yes&quot; /&gt;  [/code]

Please let me know how you get on.</description>
		<content:encoded><![CDATA[<p>Sorry for the delayed reply Jim. I would suggest adding the following line below to your XSLT beneath the xsl:stylesheet declaration:</p>
<pre class="brush: xml;">&lt;xsl:output method=&quot;xml&quot; omit-xml-declaration=&quot;yes&quot; /&gt;  </pre>
<p>Please let me know how you get on.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
