Re: (Blurble!?!!) Confused brain....

Hi Ian,

> ie, I want to have any number of the Dublin Core elements; followed (in
> some order) by one or more "fooE elements, a "bar" and a "baz" element
> (where the "baz" element is itself a complexType)
>
> [-- snip the top bit --]
> <element name = "source">
>   <complexType>
>    <sequence>
>     <any namespace = "http://purl.org/dc/elemenets/1.1/"
>          processContents = "skip" maxOccurs = "unbounded"/>
>     <element ref = "zblsa:infoURL"/>
>     <element ref = "zblsa:logoURL"/>
>     <element ref = "zblsa:search"/>
>    </sequence>
>    <attribute name = "URI" use = "required" type = "anyURI"/>
>   </complexType>
> </element>
>
> However, the W3C validator churns out errors on my documents, for
> example:
> http://lucas.ucs.ed.ac.uk/test/zblsa.return.7.xml:22:1: Invalid per
> cvc-complex-type.1.2.4: element
> {http://purl.org/dc/elements/1.1/}:Rights not allowed here (1) in
> element {http://lucas.ucs.ed.ac.uk/test/}:source, expecting
> ["{[u'http://purl.org/dc/elemenets/1.1/']}:*"]:
>
> Namespaces are hurting my head.. can someone please tell be how to do
> this, or point me at a tutorial that will help (I've looked at the W3C
> pages, the XML.com pages and the Powerpoint tutorial so far..)

Seems to me like you got everything correct except for a typo in the
namespace for the any declaration. You have:

<any namespace = "http://purl.org/dc/elemenets/1.1/"...

but should be

<any namespace = "http://purl.org/dc/elements/1.1/"...

(misspelled elements)...

Cheers,
/Eddie

Received on Tuesday, 2 October 2001 19:30:08 UTC