# RELAX NG Compact Syntax Grammar # Description: Blogger: feed of a user's blogs namespace app = "http://www.w3.org/2007/app" namespace atom = "http://www.w3.org/2005/Atom" namespace gd = "http://schemas.google.com/g/2005" namespace openSearch = "http://a9.com/-/spec/opensearch/1.1/" start = blogger_blogFeed | blogger_blogEntry # Describes an author atom_author = element atom:author { attribute xml:lang { xsd:string }?, ( atom_email? & atom_name & atom_uri? ) } # Describes a blog entry in the feed of a user's blogs blogger_blogEntry = element atom:entry { attribute gd:etag { xsd:string }?, ( app_edited? & atom_author+ & atom_id & atom_published & atom_updated & blogger_bloggerLink+ & element atom:summary { atom_textConstruct } & element atom:title { atom_textConstruct } ) } # Describes a feed of a user's blogs blogger_blogFeed = element atom:feed { attribute gd:etag { xsd:string }?, ( atom_author+ & atom_generator & atom_id & atom_updated & blogger_blogEntry* & blogger_bloggerLink+ & element atom:subtitle { atom_textConstruct }? & element atom:title { atom_textConstruct } & opensearch_itemsPerPage & opensearch_startIndex & opensearch_totalResults ) } # Extends the base Link class with Blogger extensions blogger_bloggerLink = element atom:link { attribute href { xsd:string }, attribute length { xsd:long }?, attribute rel { "alternate" | "edit" | "enclosure" | "http://schemas.google.com/blogger/2008#settings" | "http://schemas.google.com/blogger/2008#template" | "http://schemas.google.com/g/2005#feed" | "http://schemas.google.com/g/2005#post" | "next" | "previous" | "replies" | "self" }, attribute title { xsd:string }?, attribute type { xsd:string } } # Value of the app:edited tag app_edited = element app:edited { (xsd:date | xsd:dateTime) } # Describes an author's email address atom_email = element atom:email { xsd:string } # Describes the generator atom_generator = element atom:generator { attribute uri { xsd:string }?, attribute version { xsd:string }?, xsd:string } # Describes a unique identifier atom_id = element atom:id { xsd:string } # Describes the number of items that will be returned per page for paged feeds opensearch_itemsPerPage = element openSearch:itemsPerPage { xsd:int } # Describes an author's human-readable name atom_name = element atom:name { xsd:string } # Describes a creation timestamp atom_published = element atom:published { (xsd:date | xsd:dateTime) } # Describes the starting index of the contained entries for paged feeds opensearch_startIndex = element openSearch:startIndex { xsd:int } # Describes a text construct containing either plain text, HTML, or XHTML atom_textConstruct = attribute src { xsd:string }?, attribute type { xsd:string }?, attribute xml:lang { xsd:string }?, xsd:string? # Describes the total number of results associated with this feed opensearch_totalResults = element openSearch:totalResults { xsd:int } # Describes a last updated timestamp atom_updated = element atom:updated { (xsd:date | xsd:dateTime) } # Describes the URI associated with an author atom_uri = element atom:uri { xsd:string }