<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/rss/rss.xsl"?>
<rss version="2.0">
  <how_styling_rss_works style="display: none;" xml:lang="en-us" type="html">
# Styling RSS w XLS notes

XML files can include both xml-stylesheets (XSLT) and normal stylesheets (CSS).
XSLT files are transformations, and allow you to process an XML doc into an HTML doc (among other things).
In this case, it doesn't matter if we import the CSS here or via /rss/rss.xsl -- it gets applied either way.
The XSLT will output HTML for us, but the HTML content from the RSS feed (i.e., the bodies of posts) must be unescaped.
There's a special attribute (`disable-output-escaping`) which will do that.
However, we need to run some JS, too, because not every browser supports decoding html like that.

* firefox does not seem to support `disable-output-escaping="yes"`, so it requires the JS in rss.js
* chrome does support `disable-output-escaping="yes"`, so don't remove those attrs

The JS works by testing `#cometestme`, and then (if needed) looping over elements matching `[name=decodable]` and basically `el.innerHTML = el.textContent`.

Note, `disable-output-escaping="yes"` is a legacy feature from XSLT v1.0; the new way to do it is with character maps.
When I tried those, they didn't seem to work in firefox (which is when I tried the original JS).
IDK if chrome support character maps, but if it does, then that is a good update to implement. TODO I guess.

</how_styling_rss_works>
  <channel>
    <title>Presentations</title>
    <description type="html" xml:lang="en-us">&lt;div class="row"&gt;
    &lt;div class="span12"&gt;
    &lt;h1&gt;Slid.es&lt;/h1&gt;
    &lt;hr&gt;
    &lt;/div&gt;
    &lt;div class="span8 offset2"&gt;
        &lt;p&gt;&lt;a href="http://slid.es/maxkaye/ethereum"&gt;Ethereum&lt;/a&gt;&lt;br /&gt;
        A brief introduction to Ethereum. ~ 20 min.&lt;/p&gt;
        &lt;p&gt;
            &lt;a href="http://slid.es/maxkaye/bitcoin-payment-protocol"&gt;Bitcoin - Payment Protocol&lt;/a&gt;&lt;br /&gt;
            Technical overview of Bitcoin as a payment protocol and a look into Bitcoin's script system.
        &lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;div class="conatiner-fluid"&gt;
    &lt;div class="row-fluid"&gt;
        &lt;div class="container"&gt;
            &lt;h1&gt;Watch?&lt;/strong&gt;&lt;/h1&gt;
            &lt;hr&gt;
        &lt;/div&gt;
        &amp;lt;!--&lt;div class="span6 offset3"&gt;--&amp;gt;
        &lt;div class="container" style="width:700px;"&gt;
            &lt;div class="accordion" id="accordion-videos"&gt;
                &lt;div class="accordion-group"&gt;
                    &lt;div class="accordion-heading"&gt;
                        &lt;a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion-videos" href="#collapseVideo0"&gt;&lt;h3&gt;Making Money - Part 1 [Vimeo] (September 2012)&lt;/h3&gt;&lt;/a&gt;
                        &lt;a class="accordion-toggle" href="https://vimeo.com/49171109" target="_blank"&gt;Direct Link&lt;/a&gt;
                        &lt;a class="accordion-toggle" href="making-money"&gt;Resources&lt;/a&gt;
                    &lt;/div&gt;
                    &lt;div id="collapseVideo0" class="accordion-body collapse"&gt;
                        &lt;div class="accordion-inner"&gt;
                            &lt;p style="text-align:center"&gt;&lt;iframe src="http://player.vimeo.com/video/49171109" 
                                width="500" height="375" frameborder="0" 
                                webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;
                            &lt;/p&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &amp;lt;!--&lt;div class="accordion-group"&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;            &amp;lt;/div&amp;gt;--&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;/div&gt;
&lt;div class="row"&gt;
    &lt;div class="span12"&gt;
        &lt;h1&gt;Resources&lt;/h1&gt;
        &lt;hr&gt;
    &lt;/div&gt;
    &lt;div class="span8 offset2"&gt;
        &lt;p&gt;&lt;a href="making-money"&gt;&lt;h3&gt;Making Money (lost)&lt;/h3&gt;&lt;/a&gt;
            &lt;strong&gt;Part 1&lt;/strong&gt; is primarily concerned with the money creation process (fiat money, fractional reserve banking, and interest) and who benefits from this. &lt;br /&gt;
            &lt;strong&gt;Part 2&lt;/strong&gt; is a conceptual introduction to Bitcoin, why it is such a significant achievement, and why it is superior to our current monetary systems.
        &lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;&lt;/p&gt;
</description>
    <categoryTags>
    </categoryTags>
    <link>https://forum.xk.io/n/2000</link>
  </channel>
</rss>
