OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Why is there no schema for RSS?

[ Lists Home | Date Index | Thread Index ]

Lars Marius Garshol scripsit:

> Why the later versions didn't have any sort of formal schema I can't
> answer. I wondered about that, too. 

I can't speak to RSS 0.92, but here's a RELAX NG schema for RSS 1.0.
This is basically DTD-style, except for the items element and the
contextual definitions of the textinput element (which is a definition
at second level and a reference at third level).


namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";

default namespace = "http://purl.org/rss/1.0/";

about = attribute rdf:about { xsd:anyURI }

resource = attribute rdf:resource { xsd:anyURI }

start = element rdf:RDF { channel & image? & item+ & textinput }

channel = element channel {
	about & title & link & description & image? & items & textinput.ref?
	}

title = element title { text }

link = element link { xsd:anyURI }

description = element description { text }

image = element image { resource }

items = element items { element rdf:Seq { rdf:li { resource }+ } }

textinput.ref = element textinput { resource }

image = element image { about? & title & url & link }

url = element url { xsd:anyURI }

item = element item { about & title & link & description? }

description = element description { text }

textinput = { about & title & description & name & link }

name = element name { xsd:Name }

###

-- 
John Cowan  jcowan@reutershealth.com  www.ccil.org/~cowan  www.reutershealth.com
"In computer science, we stand on each other's feet."
        --Brian K. Reid




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS