In actuality there are two feeds that we are putting in the sidebar. One comes from a local xml file published by the CMS, there is no problem with this feed. The second feed comes from a different domain, and therefore is in need of the relay script.
At any rate, I COULD potentially put a dummy XML file in place for preview purposes, but I really like the idea of getting the real feed to show up during preview. Anything to make the user more confident that what he/she sees in the preview is what will come out in the final publish.
Another good reason is that I’m using ajax calls to do this, so each feed can load independently of each other, and independently of the page they are embedded in. If for some reason the feed is slow to respond, the user doesn’t feel the lag. Using document.write() causes the browser to wait for a response before continuing.
Another approach to this would be to create an XML application in CM System to use as the preview’s relay. Your resource would be a dummy selecting from RXDUEL, and your XSL would essentially be something like:
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
That’s not a bad idea. Before I start going down that road however, does anyone know which web.xml file controls the settings for preview, again I’m not really well versed in tomcat stuff, but it might be that a little servlet mapping might fix this… at least that’s one idea. Has nobody else ever tried to do this? It seems like someone would have done this by now.