Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [ Possible Spam ] RE: [Fwd: Extending RSS 2.0]

From: =?ISO-8859-2?Q?Borut_Bol=E8ina?= <bob@-----.-->
To: Michael Kay <mike@--------.--->
Date: 10/12/2005 6:03:00 PM
Thanks for your input Michael.

On 7.10.2005 10:43, Michael Kay wrote:

> I don't know if it was your comment or someone else asking the same 
> question,

Wasn't me, but I am sure somebody had the same problem.

> but the advice given was to write a schema that defines the rules for 
> your own elements and import the RSS schema into your own.

I am not sure how to do that. The root element would then come from 
imported schema?

> Since the wildcard specifies lax validation, it will validate your 
> elements against their declarations. However, it will not prevent the 
> appearance of elements for which there is no declaration, and it will 
> not constrain the order of these elements.

Yes, that is unacceptable for me.

>  
> If you want something stricter than this, you could define your own 
> element job:item and put it in the substitution group of the RSS item,

What does that mean: ...in the substitution group of... ?

> with a content model that's defined as an extension of the original. 
> The instance would then, of course, have to specify job:item rather 
> than item.

If feed would contain job:item instead of just item, than the benefit of 
all (?) RSS feed readers out there able to read this feed (the regular 
part of it at least) would be lost.

Regards,
Borut Bol=E8ina

P.S. I guess I did not read the rules of this mailing list. Where are 
all the posts? I am not getting any, except answers on my mail questions?

>  
> Michael Kay
> http://www.saxonica.com/
>
>     -------------------------------------------------------------------=
-----
>     *From:* xmlschema-dev-request@w...
>     [mailto:xmlschema-dev-request@w...] *On Behalf Of *Borut Bolcina
>     *Sent:* 07 October 2005 08:19
>     *To:* xmlschema-dev@w...
>     *Subject:* [Fwd: Extending RSS 2.0]
>
>     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=E8ina <bob@n...>
>     To: 	xmlschema-dev@w...
>
>
>
>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
>
>    
>


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent