Grab Headlines From A Remote RSS File
By Nicholas Chase2003-12-19
Transforming The File
The Java bean is nothing more than a Java class that has get and set methods. In this case, the set method, setRSSFile() also includes code that performs a transformation on that file:
Listing 5. Transforming the feed
|
This method simply takes an input source, which happens to be a remote RSS feed, and transforms it, using the final.xsl stylesheet, to the headlines.html file.
In the grand scheme of things, that's it: Retrieve the file, transform it, and display the results. In reality, there are other issues to consider.
Tutorial Pages:
» Retrieve Syndicated Content, Transform It, & Display The Result
» The Source File
» The Primary Stylesheet
» The Basic JSP Page
» Transforming The File
» Adjusting For Multiple Formats
» Choosing A Version
» Caching The Feed
» Conclusion
» Resources
First published by IBM developerWorks
