<?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: XSLT Servlet</title>
	<atom:link href="http://flavio.tordini.org/xslt-servlet/feed" rel="self" type="application/rss+xml" />
	<link>http://flavio.tordini.org/xslt-servlet</link>
	<description></description>
	<lastBuildDate>Thu, 11 Mar 2010 09:34:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Remy</title>
		<link>http://flavio.tordini.org/xslt-servlet#comment-604</link>
		<dc:creator>Remy</dc:creator>
		<pubDate>Fri, 14 Aug 2009 12:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://flavio.tordini.org/xslt-servlet#comment-604</guid>
		<description>Downloads gone?
Use url:

http://flavio.tordini.org/xslt-servlet

And there they are!</description>
		<content:encoded><![CDATA[<p>Downloads gone?<br />
Use url:</p>
<p><a href="http://flavio.tordini.org/xslt-servlet" rel="nofollow">http://flavio.tordini.org/xslt-servlet</a></p>
<p>And there they are!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remy</title>
		<link>http://flavio.tordini.org/xslt-servlet#comment-603</link>
		<dc:creator>Remy</dc:creator>
		<pubDate>Fri, 14 Aug 2009 12:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://flavio.tordini.org/xslt-servlet#comment-603</guid>
		<description>Downloads gone?!? Where?</description>
		<content:encoded><![CDATA[<p>Downloads gone?!? Where?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic Chambers</title>
		<link>http://flavio.tordini.org/xslt-servlet#comment-90</link>
		<dc:creator>Dominic Chambers</dc:creator>
		<pubDate>Tue, 27 May 2008 11:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://flavio.tordini.org/xslt-servlet#comment-90</guid>
		<description>I found a bug with this where relative context paths don&#039;t work on windows -- not sure if this is for all window users, or perhaps for those whose context is on a non-C drive. Here is an updated XSLTServlet.stringToURL() method that fixes this:

private URL stringToURL(String string) throws MalformedURLException {
        String url;
        if (string.startsWith(&quot;/&quot;)) {
        	String contextPath = getServletContext().getRealPath(string);
            url = &quot;file://&quot; + ((contextPath.startsWith(&quot;/&quot;)) ? contextPath : &quot;/&quot; + contextPath);
        } else {
            url = string;
        }

        return new URL(url);
    }</description>
		<content:encoded><![CDATA[<p>I found a bug with this where relative context paths don&#8217;t work on windows &#8212; not sure if this is for all window users, or perhaps for those whose context is on a non-C drive. Here is an updated XSLTServlet.stringToURL() method that fixes this:</p>
<p>private URL stringToURL(String string) throws MalformedURLException {<br />
        String url;<br />
        if (string.startsWith(&#8220;/&#8221;)) {<br />
        	String contextPath = getServletContext().getRealPath(string);<br />
            url = &#8220;file://&#8221; + ((contextPath.startsWith(&#8220;/&#8221;)) ? contextPath : &#8220;/&#8221; + contextPath);<br />
        } else {<br />
            url = string;<br />
        }</p>
<p>        return new URL(url);<br />
    }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
