module Xmlns @prefix = {} def self.map hash hash.each_pair {|p,ns| @prefix[ns]=p} end def self.[] ns @prefix[ns] end def self.values @prefix.keys end map :admin => 'http://webns.net/mvcb/' map :ag => 'http://purl.org/rss/1.0/modules/aggregation/' map :annotate => 'http://purl.org/rss/1.0/modules/annotate/' map :anon => nil map :atom => 'http://www.w3.org/2005/Atom' map :audio => 'http://media.tangent.org/rss/1.0/' map :blogChannel=> 'http://backend.userland.com/blogChannelModule' map :cc => 'http://web.resource.org/cc/' map :company => 'http://purl.org/rss/1.0/modules/company' map :content => 'http://purl.org/rss/1.0/modules/content/' map :cp => 'http://my.theinfo.org/changed/1.0/rss/' map :creativeCommons=>'http://backend.userland.com/creativeCommonsRssModule' map :dc => 'http://purl.org/dc/elements/1.1/' map :dcterms => 'http://purl.org/dc/terms/' map :email => 'http://purl.org/rss/1.0/modules/email/' map :ev => 'http://purl.org/rss/1.0/modules/event/' map :foaf => 'http://xmlns.com/foaf/0.1/' map :geo => 'http://www.w3.org/2003/01/geo/wgs84_pos#' map :geourl => 'http://geourl.org/rss/module/' map :g => 'http://base.google.com/ns/1.0' map :icbm => 'http://postneo.com/icbm' map :image => 'http://purl.org/rss/1.0/modules/image/' map :itunes => 'http://www.itunes.com/dtds/podcast-1.0.dtd' map :l => 'http://purl.org/rss/1.0/modules/link/' map :rdf => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' map :rdfs => 'http://www.w3.org/2000/01/rdf-schema#' map :ref => 'http://purl.org/rss/1.0/modules/reference/' map :reqv => 'http://purl.org/rss/1.0/modules/richequiv/' map :rss090 => 'http://my.netscape.com/rdf/simple/0.9/' map :rss091 => 'http://purl.org/rss/1.0/modules/rss091#' map :rss11 => 'http://purl.org/net/rss1.1#' map :search => 'http://purl.org/rss/1.0/modules/search/' map :slash => 'http://purl.org/rss/1.0/modules/slash/' map :soap => 'http://schemas.xmlsoap.org/soap/envelope/' map :ss => 'http://purl.org/rss/1.0/modules/servicestatus/' map :str => 'http://hacks.benhammersley.com/rss/streaming/' map :sub => 'http://purl.org/rss/1.0/modules/subscription/' map :sy => 'http://purl.org/rss/1.0/modules/syndication/' map :taxo => 'http://purl.org/rss/1.0/modules/taxonomy/' map :thr => 'http://purl.org/rss/1.0/modules/threading/' map :trackback => 'http://madskills.com/public/xml/rss/module/trackback/' map :wiki => 'http://purl.org/rss/1.0/modules/wiki/' map :xhtml => 'http://www.w3.org/1999/xhtml' end