Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Extending RSS 2.0

From: "Michael Kay" <mike@--------.--->
To: "'Borut Bolcina'" <bob@-----.-->, <xmlschema-dev@--.--->
Date: 9/27/2005 9:56:00 AM
Because the wildcard uses processContents="lax", the validator will look for
schema declarations for your namespace and validate against them if found.
So you need to tell the validator where to find a schema for your namespace.
You could do this using xsi:schemaLocation.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Borut Bolcina
> Sent: 26 September 2005 15:16
> To: xmlschema-dev@w...
> Subject: Extending RSS 2.0
> 
> 
> 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
> 
> 
> 



From bob@n... Tue Sep 27 09:20:30 2005
Received: from maggie.w3.org ([193.51.208.68])
	by fri


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