Workshop


The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.

Quiz

1.

What is an RSS channel?

2.

What happens if you don't specify a <link> tag for an RSS news item?

3.

What attribute is required of the <rss> tag?

Quiz Answers

1.

An RSS channel is a collection of related news items. Each RSS document consists of exactly one channel.

2.

If no <link> tag is provided for an RSS news item, the <description> is relied on to contain the entire content of the news item.

3.

The only attribute required of the <rss> tag is the version attribute, which is very important because it establishes the version of the RSS feed.

Exercises

1.

Modify the feedtest.xml document to include several additional news feeds. If you're having trouble finding news feeds, check out http://www.2rss.com/. Make sure to reload the page in your browser to see the new feeds displayed.

2.

One topic this lesson did not cover is how to transform normal web pages into RSS news feeds so that you don't have to manually create an RSS document each time something changes on your web site. Try your hand at creating an XSLT stylesheet that automatically generates an RSS document from an existing XHTML web page.




Sams Teach Yourself XML in 24 Hours
Sams Teach Yourself XML in 24 Hours, Complete Starter Kit (3rd Edition)
ISBN: 067232797X
EAN: 2147483647
Year: 2005
Pages: 266

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net