• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Parsing and Using Feeds > 8.5. Using XSLT

Using XSLT

The transformation of RSS into another form of XML, using XSLT, isn’t very common at the moment, but it may soon have its time in the sun. This is because RSS—especially RSS 1.0, with its complicated relationships and masses of metadata—can be reproduced in many useful ways.

While the examples in this book are text-based and mostly XHTML, there is no reason you can’t render RSS into an SVG graphic, a PDF (via the Apache FOP tool), an MMS-SMIL message for new-generation mobile phones, or any of the hundreds of other XML-based systems. XSLT and the arcane art of writing XSLT stylesheets to take care of all of this is a subject too large for this book to cover in detail—for that, check out O’Reilly’s XSLT.

Nevertheless, I will show you some nifty stuff. Example 8-8 is an XSLT stylesheet that transforms an RSS 1.0 feed into the XHTML produced in Example 8-7.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint