It was somewhere outside Barstow when
bo***@mclink.it (Cafonauta)
wrote:
I want to set up a RSS channel which alerts subscribers whenever some
stocks changes. My idea was to include the stocks names and values
inside the RSS feed so I would need some <stock/> <price/> <value/>
tags...
By the sound of it, this is pretty easy ! You're into territory
where only clients with a sophisticated understanding of your specific
changes are expected to make sense of this new information.
So my general rules in this case are as follows:
- Add the new properties in such a way that they don't break any
existing features.
- Support the existing RSS properties so that there is a "sensible"
behaviour if a non-enhanced client encounters them (i.e. add the new
<price> property as a machine-processable property, but also repeat
its value in a human-readable <description>).
- Add the new information in a way that would make sensible addition
to RSS, if this were a core part of it - i.e. add properties as part
of the document (if possible), not as linked attachments outside the
document.
So personally I'd use RSS 1.0 (maybe 1.1) because that's what I
always do. However there's no real reason why you couldn't use 2.0
here.
If you want your <stock> <price> & <value> properties, then just add
them. It's now a trivial piece of XML or XSLT coding to make use of
them in your new clients. In the <description> then give enough
information for a "vanilla RSS" client to give some human-readable
display too. There's no need for your enhanced app to even use this
property, if it can already duplicate the information from the
specific properties.
There's no need to apply an RDF processing model here, as you have a
small number of simple additions and they're each of simple structure.
However if you do want to investigate RDF, then go to the W3C site and
look at the document pack from February 2004. Ignore all documents
earlier than this - the docs were re-written from the ground up and
are much better than their predecessors (congratulations to all
involved).
--
'Ph'nglui mglw'nafh Cthulhu Evesham wagn'nagl fhtagn'