W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

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

From: Ian Stuart <Ian.Stuart@ed.ac.uk>
Date: 02 Oct 2001 18:07:27 +0100
To: XML-Schema-dev <xmlschema-dev@w3.org>
Message-Id: <1002042447.24997.57.camel@lucas.ucs.ed.ac.uk>

I'm trying to build a schema that will allow bw to have the following
(in a DTD-esq manner):

<!ELEMENT mynamespace:source  (dc:[anything]*, foo+, bar, baz) >

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)

What I have is as follows:

[-- snip the top bit --]
<element name = "source">
    <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"/>
   <attribute name = "URI" use = "required" type = "anyURI"/>

However, the W3C validator churns out errors on my documents, for
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

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..)

Many thanks...

Ian Stuart: Edinburgh University Data Library.
I build things: computer programs (with code); or cars (with metal)

 Personal web site: http://lucas.ucs.ed.ac.uk/ 
Received on Tuesday, 2 October 2001 13:01:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:54 UTC