1
Vote

Define a profile of the RSS 2.0 spec with a defined ordering of element, which would allow proper cardinality constraints to be applied

description

Title: xml-schema for rss
 
Message:
 
Where do I find your latest xml-schema for rss? The one I found seems to validate the following rss ok. Is that <xs:choice> really ok?
 
<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xsi:noNamespaceSchemaLocation=" http://www.thearchitect.co.uk/schemas/rss-2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <channel>
           <title>String</title>
           <title>String</title>
           <title>String</title>
           <item>
                   <title>String</title>
                   <title>String</title>
                   <title>String</title>
           </item>
           <item>
                   <title>String</title>
                   <title>String</title>
                   <title>String</title>
           </item>
           <item>
                   <title>String</title>
                   <title>String</title>
                   <title>String</title>
           </item>
   </channel>
</rss>
 
//Tommy

comments

jthelin wrote Sep 7, 2008 at 6:46 PM

jthelin wrote Sep 7, 2008 at 6:47 PM

This is caused by limitations in the ability of XML Schema language to express the cardinality and flexible element ordering requirements defined in the original RSS 2.0 specification which required a sequence of xsd:choice schema elements to represent faithfully.

I think the only real answer here is to define a profile of the RSS 2.0 spec with a defined ordering of element, which would allow proper cardinality constraints to be applied.
I'll need to work on that one some more.

wrote Sep 7, 2008 at 6:47 PM

wrote Feb 14, 2013 at 3:04 AM