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] rss regularis(z)ation

[ Lists Home | Date Index | Thread Index ]

At 00:29 23/07/2003 +0100, Bill de hÓra wrote:


>>I wouldn't characterise those as much aspects of RSS practice, rather of
>>certain practitioners. I don't think the CDATA stuff is quite as bizarre as
>>it seems - the motivation is to use HTML markup for content, but without
>>namespaces and XHTML this leads to a bit of a mess.
>
>It sanctions sloppy production of markup Danny. That's the real
>world use case for RSS CDATA. The lack of namespaces and XHTML has
>nothing to do with it. You can make the effort tidy your HTML to XML
>- it's not that hard and cheapest overall when the producer does it
>instead of the consumer.

Tim Bray wrote a relaxng schema which (IMHO) overcomes this quite
nicely. I write my main necho stuff in the twingly ns, then switch to
xhtml and write that, in xml,

http://www.tbray.org/ongoing/pie/0.1/pie.rnc


Removes the need to either escape or use cdata sections.
I thought it rather neat.


Content = element content
{
   XMLbasics, attribute type { text },
   ( ( attribute mode { "xml" }?, XHTML )
   | ( attribute mode { "escaped" | "base64" }, text)
   | ( attribute src  { xsd:anyURI } )
   )
}

XHTML = element xh:*
{
   attribute * { text }*,
   ( text | XHTML)*
}



regards DaveP








 

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

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