Thanks Timo. I will be looking at that article. I am confident about the programming aspect. With it not being an area of expertise, I don't know what I am missing. I tend to dislike thinking once build 100 times due to lack of foresite. There might have been a good common tool or method that allows you to spit out the formats easily even without having to even change the template. I can imagine having some XML file and a library that creates transforms on the data just through configuration depending on output need.
JohnE ----- Original Message ----- From: "Tim Colson (tcolson)" <[EMAIL PROTECTED]> Date: Sunday, September 11, 2005 2:33 am Subject: RE: off topic: RSS > > Maybe this is a good reason to use XML transforms? > Hah, well, there's gotta be -some- good reason for XML > xforms...but I > don't think you've stumbled across it yet. <grin> > > > do. I imagine using a seperate servlet to generate off of a > > different template might do as well. Don't know a best way > The RSS format is just text, there's not much voodoo involved in the > actual file. There is of course the aforementioned silliness in > the spec > versions...but, well, that's an out of scope thing, and you don't want > to hear me rant on about it. ;-) > > This is an article on RSS, and shows an RSS 0.92 snippet. > http://www.webreference.com/authoring/languages/xml/rss/1/5.html > > Yes, the RSS snippet is XML. But generating XML from Velocity can be > done in multiple ways. The easiest though goes something like this, > struts action grabs data and sends the results out via an Velocity > template... which is no different from what you're doing already, > eh? > > <rss version="0.92"> > <channel> > <title>$feed.title</title> > <link>$feed.link</link> > <description>$feed.description</description> > <language>en</language> > > #foreach ($thingy in $list_of_thingies) > <item> > <title>$thingy.title</title> > <link>$thingy.link</link> > <description>$thingy.description</description> > </item> > #end > > </channel> > </rss> > > ------ > Cheers, > Timo > > ------------------------------------------------------------------- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]