<?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: Styling Apache directory listings</title>
	<atom:link href="http://www.redips.net/apache/styling-directory-listings/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redips.net/apache/styling-directory-listings/</link>
	<description>Techniques and Web Technologies</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:29:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/</generator>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-3825</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Wed, 04 May 2011 18:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-3825</guid>
		<description>@Michael ZHANG - The error is related to the loading problem. With the error description, browser should display full path of the problematic XSL file. Open new window and try to load XSL file descibed on error page. My guess is that XSL will be unreachable. Instead of absolute XSL path in XML document please try with relative path. You can find a lot of similar problems with sitemap.xml ...</description>
		<content:encoded><![CDATA[<p>@Michael ZHANG - The error is related to the loading problem. With the error description, browser should display full path of the problematic XSL file. Open new window and try to load XSL file descibed on error page. My guess is that XSL will be unreachable. Instead of absolute XSL path in XML document please try with relative path. You can find a lot of similar problems with sitemap.xml ...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael ZHANG</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-3812</link>
		<dc:creator>Michael ZHANG</dc:creator>
		<pubDate>Thu, 28 Apr 2011 03:14:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-3812</guid>
		<description>Following your instructions, it worked in past days. I got error says &quot;Error loading stylesheet: An unknown error has occurred (804b000e)&quot;. There is no information about thin in /var/log/httpd/error_log. I googled this, someone said it might be caused by server performance. Can you please help?

Thanks.</description>
		<content:encoded><![CDATA[<p>Following your instructions, it worked in past days. I got error says "Error loading stylesheet: An unknown error has occurred (804b000e)". There is no information about thin in /var/log/httpd/error_log. I googled this, someone said it might be caused by server performance. Can you please help?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-3688</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Fri, 18 Mar 2011 17:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-3688</guid>
		<description>@Michael - PHP is server side technology and it can not be used in &lt;em&gt;stylesheet.xsl&lt;/em&gt;. On the other hand, If you mean to dynamically create &lt;em&gt;stylesheet.xsl&lt;/em&gt; with PHP (and force content-type to &lt;strong&gt;application/xml&lt;/strong&gt;) - yes it could be possible. Few years ago I generated CSS file with PHP on the same way so it should be possible with XSL as well.</description>
		<content:encoded><![CDATA[<p>@Michael - PHP is server side technology and it can not be used in <em>stylesheet.xsl</em>. On the other hand, If you mean to dynamically create <em>stylesheet.xsl</em> with PHP (and force content-type to <strong>application/xml</strong>) - yes it could be possible. Few years ago I generated CSS file with PHP on the same way so it should be possible with XSL as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-3683</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 16 Mar 2011 15:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-3683</guid>
		<description>Thanks for this, it is very helpful. Can I ask if it is possible to use PHP in stylesheet.xsl?

Regards.</description>
		<content:encoded><![CDATA[<p>Thanks for this, it is very helpful. Can I ask if it is possible to use PHP in stylesheet.xsl?</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Merubah Tampilan Apache Directory Listing &#171; ag+ rd -&#62; sn</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-1723</link>
		<dc:creator>Merubah Tampilan Apache Directory Listing &#171; ag+ rd -&#62; sn</dc:creator>
		<pubDate>Mon, 18 Jan 2010 16:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-1723</guid>
		<description>[...] http://www.redips.net/apache/styling-directory-listings/comment-page-1/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.redips.net/apache/styling-directory-listings/comment-page-1/" rel="nofollow">http://www.redips.net/apache/styling-directory-listings/comment-page-1/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dirch</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-1450</link>
		<dc:creator>dirch</dc:creator>
		<pubDate>Fri, 30 Oct 2009 17:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-1450</guid>
		<description>Thats it. Sometimes i wonder how dumb me can be... Thanks a lot!
btw: really nice site, keep up the good work!</description>
		<content:encoded><![CDATA[<p>Thats it. Sometimes i wonder how dumb me can be... Thanks a lot!<br />
btw: really nice site, keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-1449</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Fri, 30 Oct 2009 16:45:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-1449</guid>
		<description>@dirch - I think you have to set absolute path to the HEADER.html file. Instead of:

HeaderName HEADER.html

try with:

HeaderName /files/HEADER.html

Hope this will solve problem and all subdirectories will be styled as root dir.
;)</description>
		<content:encoded><![CDATA[<p>@dirch - I think you have to set absolute path to the HEADER.html file. Instead of:</p>
<p>HeaderName HEADER.html</p>
<p>try with:</p>
<p>HeaderName /files/HEADER.html</p>
<p>Hope this will solve problem and all subdirectories will be styled as root dir.<br />
 <img src='http://www.redips.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dirch</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-1448</link>
		<dc:creator>dirch</dc:creator>
		<pubDate>Fri, 30 Oct 2009 14:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-1448</guid>
		<description>It&#039;s me who has to thank you!

My other &quot;problem&quot; looks like that http://mjhp.net/files/nostyle/. As you can see there is no style at all. Of course i could put my header and all that into every directory i create, but maybe there is another option to have the same style in the root directory and all subdirectories.</description>
		<content:encoded><![CDATA[<p>It's me who has to thank you!</p>
<p>My other "problem" looks like that <a href="http://mjhp.net/files/nostyle/" rel="nofollow">http://mjhp.net/files/nostyle/</a>. As you can see there is no style at all. Of course i could put my header and all that into every directory i create, but maybe there is another option to have the same style in the root directory and all subdirectories.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-1445</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Fri, 30 Oct 2009 11:58:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-1445</guid>
		<description>@dirch - Error was in stylesheet.xsl in &quot;tr&quot; template. Please look at the first &lt;em&gt;xsl:copy-of&lt;/em&gt; line (responsible for the column with icons).

Before todays update, line was looked like:

&lt;td align=&quot;center&quot;&gt;&lt;xsl:copy-of select=&quot;td[position()=1]/&lt;strong&gt;img&lt;/strong&gt;&quot;/&gt;&lt;/td&gt;

and that was wrong. So, if you need icon and link, you should please replace &quot;img&quot; with &quot;*&quot; (as I updated stylesheet.xsl in this post)

&lt;td align=&quot;center&quot;&gt;&lt;xsl:copy-of select=&quot;td[position()=1]/&lt;strong&gt;*&lt;/strong&gt;&quot;/&gt;&lt;/td&gt;

Or if you need only icon, then you can write &quot;a/img&quot;.

&lt;td align=&quot;center&quot;&gt;&lt;xsl:copy-of select=&quot;td[position()=1]/&lt;strong&gt;a/img&lt;/strong&gt;&quot;/&gt;&lt;/td&gt;

Thank you for pointing to the icon problem.
Bye!</description>
		<content:encoded><![CDATA[<p>@dirch - Error was in stylesheet.xsl in "tr" template. Please look at the first <em>xsl:copy-of</em> line (responsible for the column with icons).</p>
<p>Before todays update, line was looked like:</p>
<p>&lt;td align="center"&gt;&lt;xsl:copy-of select="td[position()=1]/<strong>img</strong>"/&gt;&lt;/td&gt;</p>
<p>and that was wrong. So, if you need icon and link, you should please replace "img" with "*" (as I updated stylesheet.xsl in this post)</p>
<p>&lt;td align="center"&gt;&lt;xsl:copy-of select="td[position()=1]/<strong>*</strong>"/&gt;&lt;/td&gt;</p>
<p>Or if you need only icon, then you can write "a/img".</p>
<p>&lt;td align="center"&gt;&lt;xsl:copy-of select="td[position()=1]/<strong>a/img</strong>"/&gt;&lt;/td&gt;</p>
<p>Thank you for pointing to the icon problem.<br />
Bye!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dirch</title>
		<link>http://www.redips.net/apache/styling-directory-listings/comment-page-1/#comment-1442</link>
		<dc:creator>dirch</dc:creator>
		<pubDate>Fri, 30 Oct 2009 11:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=54#comment-1442</guid>
		<description>Thanks for your reply!

To be more precise, and maybe you find my mistake, here is the link to my files directory http://mjhp.net/files/ . As you can see there are no icons. In the source i saw that they are expected to be in /icons, so i&#039;ve created that one and copied a set of icons there (of course they are readable by everyone).

My .htaccess looks like that:

Options +Indexes

IndexOptions FancyIndexing
IndexOptions XHTML
IndexOptions HTMLtable
IndexOptions SuppressHTMLPreamble
IndexOptions SuppressColumnSorting
IndexOptions FoldersFirst
IndexOptions IconsAreLinks
IndexOptions NameWidth=*
IndexOptions Type=text/xml

IndexIgnore ..
HeaderName HEADER.html

The other files (stylesheet an HEADER.html are copied from your site.

ah, the server is running FreeBSD 7.1-STABLE

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for your reply!</p>
<p>To be more precise, and maybe you find my mistake, here is the link to my files directory <a href="http://mjhp.net/files/" rel="nofollow">http://mjhp.net/files/</a> . As you can see there are no icons. In the source i saw that they are expected to be in /icons, so i've created that one and copied a set of icons there (of course they are readable by everyone).</p>
<p>My .htaccess looks like that:</p>
<p>Options +Indexes</p>
<p>IndexOptions FancyIndexing<br />
IndexOptions XHTML<br />
IndexOptions HTMLtable<br />
IndexOptions SuppressHTMLPreamble<br />
IndexOptions SuppressColumnSorting<br />
IndexOptions FoldersFirst<br />
IndexOptions IconsAreLinks<br />
IndexOptions NameWidth=*<br />
IndexOptions Type=text/xml</p>
<p>IndexIgnore ..<br />
HeaderName HEADER.html</p>
<p>The other files (stylesheet an HEADER.html are copied from your site.</p>
<p>ah, the server is running FreeBSD 7.1-STABLE</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

