[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[Fwd: Extending RSS 2.0]

From: Borut Bolčina <bob@najdi.si>
Date: Fri, 07 Oct 2005 09:19:26 +0200
Message-ID: <4346217E.5030909@najdi.si>
To: xmlschema-dev@w3.org
extending rss schema namespace
Hi again,

I finally branched back to this task. Huh, those managers.

My job namespace elements are now being validated against external 
schema. But, as RSS 2.0 schema allows any element (see below), I can not 
control which of job namespace elements are mandatory or their order if 
that would matter.

So there is no other option then to use my own schema based on RSS 2.0. 
I thought I could avoid changing the original. Am I wrong?

Regards,
Borut

-------- Original Message --------
Subject: 	Extending RSS 2.0
Date: 	Mon, 26 Sep 2005 16:16:08 +0200
From: 	Borut Bolčina <bob@najdi.si>
To: 	xmlschema-dev@w3.org



Hello,

if I extend RSS 2.0 with some additional <item> elements in my own job: 
namespace like this:

<item>
   <title>Job title</title>
   <link>http://link/to/some/job</link>
   <description>Job description.</description>
   <enclosure url="http://some.domain.com/img/logo.jpg" 
type="image/jpeg" length="34566"/>
   <pubDate>Mon, 26 Sep 2005 11:25:10 +0200</pubDate>
   <job:company>Acme ltd.</job:company>
   <job:work-area>Job work area</job:work-area>
   <job:type>type of job</job:type>
   <job:education>level of education</job:education>
   <job:location region="some region">town</job:location>
   <job:expires>Mon, 17 Oct 2005 11:25:10 +0200</job:expires>
</item>

it validates perfectly ok with 
http://www.thearchitect.co.uk/schemas/rss-2_0.xsd. Understandably, as

<xs:any namespace="##other" processContents="lax" minOccurs="0" 
maxOccurs="unbounded">
   <xs:annotation>
       <xs:documentation>Extensibility element.</xs:documentation>
   </xs:annotation>
</xs:any>

is allowing this. Now, how do I enforce rules for my job: elements? The 
basis for validation would be the above xsd, which would allow inclusion 
of different new sets of elements and namespaces (one of them being 
job:, the other maybe commerce:).

How to do this right?

Regards,
Borut
Received on Friday, 7 October 2005 07:19:22 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.