In the following example, all text content within elements from an rss namesapce is syndicated by aggregators after removing tags (but not text) from their children:
<html> <head><rss:channel xmlns="a new namespace"> whatever elements you need</rss:channel>
</head> <body> <rss:item><h2><rss:title>My Item</rss:title></item> Date:<rss:date>2003-20-01</rss:date><rss:description>Today we went <blink>fishing</blink></rss:description>down at the wharf. 100 more lines blah blah.
</rss:item><table><tr><rss:item><td><rss:date>20040432</rss:date><td><rss:title>HTML Amateurs use tables for layout</rss:title></td><td><rss:description>whatever you think about css</rss:description> is of no consquence to elvis</td>
</item></table> </body>The first description would show up in an aggregator as "Today we went fishing", because the blink tag would be stripped out. The rss elements would not be noticed by users with web browsers unless theauthor provided a CSS to display the rss elements. This allows for single source html and RSS without fiddling with web server content-accept, tying to convert one document format to another, etc. And it can be converted to RSS 2.0 or 1 with a remarkably simple program by the aggregator.
The RDDL module uses a similar technique for documenting XML namspaces in a machine usable and human use in a single source.
Thoughts? Tristan Louis wrote:
Thanks for the note but the problem arises out of the need for a DOCTYPE to be specified in an HTML document. ( More on this at http://www.tnl.net/blog/2003/4/24#Noconvergence ). Basically, it looks like it's impossible to just put XHTML in a namespace and have it validate without a DOCTYPE. Even the W3C feed fails the check... TNL Quoting Thomas Hofmann <Thomas@th-o.de>:Hi, W3C has some documents in a matter whose are shown in my Opera Browser. Try the following Google search for some documents (without line break): http://www.google.com/custom?q=rss&sa=Go&cof=T%3Ablack%3BLW%3A72%3BALC%3A%23 ff3300%3BL%3Ahttp%3A%2F%2Fwww.w3.org%2FIcons%2Fw3c_home%3BLC%3A%23000099%3BL H%3A48%3BBGC%3Awhite%3BAH%3Aleft%3BVLC%3A%23660066%3BGL%3A0%3BAWFID%3A0b9847 e42caf283e%3B&sitesearch=w3.org&domains=w3.org there are i.e. http://www.w3.org/2000/08/w3c-synd/home.rss http://www.w3.org/QA/Overview.rss http://www.w3.org/2001/sw/Overview.rss and http://www.w3.org/Promotion/Appearances/schedule.rss They have also not a doctype but an style sheet is used. Look and compare, you should find some answers. best greetings, ThomasA question on using namespaces, XHTML, and RSS... I'm trying to put together a channel that also work as a web page (see http://www.tnl.net/blogroll to get an idea as to what my current output looks like) but it seems that XHTML NEEDS a doctype (don't know how to state that within my RSS channel) and the RSS validator does not even recognize this feed as proper RSS... What to do.. what to do..So I'm calling on the help of people smarter than me (ie. you) to help out on this. The idea is to create an RSS file or HTML page that validates as both RSS and XHTML.. Any ideas of pointers? Am I doing anything wrong with the way I'm currently trying to implement it?TNL----------- Tristan Louis http://www.tnl.netYour use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/-- ---[ Thomas Hofmann, 84405 Dorfen - mailto:Thomas@th-o.de ]--- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
-- Doug Ransom Hate spam & pop ups? Try Mozilla for web/ëmail. Its free.