|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Why is there no schema for RSS?
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@r... www.ccil.org/~cowan www.reutershealth.com
"In computer science, we stand on each other's feet."
--Brian K. Reid
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








