[aKregator-devel] [Bug 97225] New: WISH: support for multi-namespace feeds such as CMLRSS
Brought to you by:
lippel
From: Egon W. <e.w...@sc...> - 2005-01-17 09:59:34
|
------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=97225 Summary: WISH: support for multi-namespace feeds such as CMLRSS Product: akregator Version: 1.0-beta8 Platform: unspecified OS/Version: Linux Status: UNCONFIRMED Severity: wishlist Priority: NOR Component: general AssignedTo: akregator-devel lists sourceforge net ReportedBy: e.willighagen science ru nl Version: 1.0-beta8 (using KDE 3.3.1, (3.1)) Compiler: gcc version 3.3.5 (Debian 1:3.3.5-4) OS: Linux (x86_64) release 2.6.10-9-amd64-k8-smp There is a number of RSS feeds [1] that have extra content in news items, e.g. as in: <item rdf:about="http://wwmm.ch.cam.ac.uk/Bob/cod/demo/exampleSubmission/3D/NSC1.xml"> <dc:format>text/html</dc:format> <dc:date>2004-02-24</dc:date> <dc:source>NCI - National Cancer Institute</dc:source> <dc:creator>Yong Zhang</dc:creator> <title>NSC1</title> <link></link> <description>NSC1 fron NCI</description> <cml:molecule title="NSC1"> <cml:atomArray> <cml:atom id="a1" elementType="O" x3="0.0021" y3="-0.0041" z3="0.0020"/> <cml:atom id="a2" elementType="O" x3="-0.0691" y3="5.2414" z3="0.0323"/> </cml:atomArray> <cml:bondArray> <cml:bond atomRefs2="a1 a3" id="b1" order="2"/> <cml:bond atomRefs2="a2 a8" id="b2" order="2"/> </cml:bondArray> </cml:molecule> </item> This examples shows CMLRSS [2] which extends regular RSS feeds with molecular content. Akregator can display such feed, e.g. [3], without problem, but it would be nice that such extra content, with any namespace, would be shown as sort of attachments, to allow that content to be opened by other programs, i.e. with Open With... Now, one problem is that XML namespaces need to be mapped to MIME types, so that Open View... can use regular KDE stuff... The namespace used for the molecular content in CMLRSS feeds, is "http://www.xml-cml.org/schema/cml2/core", i.e. CML2 [4], and that maps to the mime type "chemical/x-cml" [5]. The scheme of: 1. noting extra elements in the RSS item element 2. resolving it's namespace into mime type 3. display extra content as attachment 4. allow "Open With" for attachment is a general mechanism and not limited to chemistry what so ever... Of course, such attachments should *not* be opened automatically, because of security hazards. Egon 1. http://wwmm.ch.cam.ac.uk/moin/CmlRssFeeds 2. http://wwmm.ch.cam.ac.uk/moin/CmlRss 3. http://www.bristol.ac.uk/Depts/Chemistry/MOTM/rss.xml 4. http://wwmm.ch.cam.ac.uk/moin/ChemicalMarkupLanguage 5. http://www.ch.ic.ac.uk/chemime/ |