<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.feedreader.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Feedreader.com - XSL Question - Comments</title>
 <link>http://www.feedreader.com/node/386</link>
 <description>Comments for &quot;XSL Question&quot;</description>
 <language>en</language>
<item>
 <title>A solution</title>
 <link>http://www.feedreader.com/node/386#comment-618</link>
 <description>&lt;p&gt;This solution uses the data available to me. It snips the FQ domain name out of the full URL.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;xsl:value-of select=&quot;substring-before(substring-after(/feed:feed/feed:link/@href, &#039;//&#039;), &#039;/&#039;)&quot;/&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;(It should be all on one line, of course.) This turns &lt;em&gt;http://www.syrinx.net/node/feed&lt;/em&gt; into &lt;em&gt;www.syrinx.net&lt;/em&gt;. Just prepend the protocol string (&lt;em&gt;http://&lt;/em&gt;) to complete the base URL. This information was needed for my quest to add per-feed CSS customization to FeedReader without changing FeedReader&#039;s source code. Please refer to this thread for the full discussion.&lt;/p&gt;
</description>
 <pubDate>Tue, 20 Jun 2006 23:18:51 +0300</pubDate>
 <dc:creator>zigguratt</dc:creator>
 <guid isPermaLink="false">comment 618 at http://www.feedreader.com</guid>
</item>
<item>
 <title>XSL Question</title>
 <link>http://www.feedreader.com/node/386</link>
 <description>&lt;p&gt;I don&#039;t know if this is the right place to put this, as the forum called Development seems to be reserved for beta version release announcements. This question is concerning a bit of customization to the atom.xsl file. I&#039;d like to know if there&#039;s a way to get the same &quot;base&quot; information in the &quot;/&quot; section as is available lower in the &quot;feed:entry&quot; section. The base is retrieved with this path:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;feed:source/feed:link[@rel=&#039;alternate&#039;][1]/@href&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;and gives me (for example) &lt;em&gt;http://www.syrinx.net&lt;/em&gt;, but the same (or similar) path doesn&#039;t work in the &quot;/&quot; section, even replacing &quot;source&quot; with &quot;feed&quot;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/feed:feed/feed:link[@rel=&#039;alternate&#039;][1]/@href&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I&#039;ve tried dozens of combinations, but with no luck. Just using&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/feed:feed/feed:link/@href&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;gives me the URL of the whole feed, not just the base. To be clearer, I&#039;m looking for &lt;em&gt;http://www.syrinx.net&lt;/em&gt;, not &lt;em&gt;http://www.syrinx.net/node/feed&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Is there any way of retrieving the feed&#039;s base URL from within the &quot;/&quot; section?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div class=&quot;forum-topic-navigation&quot;&gt;&lt;a href=&quot;/node/431&quot; class=&quot;topic-previous&quot; title=&quot;Go to previous forum topic&quot;&gt;‹ 3.06 developer release available.&lt;/a&gt; &lt;a href=&quot;/node/351&quot; class=&quot;topic-next&quot; title=&quot;Go to next forum topic&quot;&gt;FeedReader OEM ›&lt;/a&gt;&lt;br class=&quot;clear&quot; /&gt;&lt;/div&gt;</description>
 <comments>http://www.feedreader.com/node/386#comment</comments>
 <category domain="http://www.feedreader.com/taxonomy/term/12">Development</category>
 <pubDate>Tue, 20 Jun 2006 18:56:04 +0300</pubDate>
 <dc:creator>zigguratt</dc:creator>
 <guid isPermaLink="false">386 at http://www.feedreader.com</guid>
</item>
</channel>
</rss>
