Jim,
I can't quickly identify your problem. However I can provide as an example an XML schema that incorporates DC, and sample XML records.
The JISC Information Environment Service Registry (IESR) (http://iesr.ac.uk) XML schema is at
http://iesr.ac.uk/schemas/2005/09/06/iesr.xsd
You should be able to pick up the constituent parts from the same directory. There are some example IESR XML records within OAI-PMH records at:
http://iesr.ac.uk/use/oaipmh/examples/
(the GetRecord ones). And the IESR is freely available to download more examples. The IESR identifiers resolve to their corresponding entity's XML description, implemented via its OpenURL Link-To Resolver service. So there are more examples at:
http://iesr.ac.uk/use/openurl/examples/
Note that we in fact have our own version of the DC XML schemas which differ slightly from the official ones. This is for reasons in the nitty gritty of the schemas that mean they don't work with several software systems, even though they are strictly valid. But we previously imported the official DC XML schemas - they validated with the tools I was using.
Another point to note concerning qualified DC, if you read our XML schema in detail. We cannot reference for example both dcterms:accessRights and dc:rights because the former is an element refinement of the latter and defined as such in the DC schemas. So dcterms:accessRights is commented out in the parts of the IESR XML schema that uses it - this doesn't mean we intend to drop dcterms:accessRights, it is simply a device to allow validation. There are several other instances of this.
Hope these examples help.
Best wishes,
Ann
-------------------------------------------------
Ann Apps. IT Specialist (Research & Development), MIMAS,
The University of Manchester, Oxford Road, Manchester, M13 9PL, UK
Tel: +44 (0) 161 275 6039 Fax: +44 (0) 161 275 6040
Email: [log in to unmask] WWW: http://epub.mimas.ac.uk/ann.html
--------------------------------------------------
> -----Original Message-----
> From: General DCMI discussion list [mailto:[log in to unmask]] On
> Behalf Of Jim Bowden
> Sent: Tuesday, December 13, 2005 9:20 AM
> To: [log in to unmask]
> Subject: [DC-GENERAL] Request for DC help
>
> I am struggling to find the correct way to add DC metadata to our XML schema (my
> field is SGML rather than XML and I feel I am missing something very simple!).
> Following guidelines from the Dublin Core Metadata Initiative
> (http://dublincore.org/documents/usageguide/), I have attempted to add metadata
> tags as follows (the idea being that I can then map via XSLT all our XML files to this
> improved schema):
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:cmd="http://www.emeraldinsight.com/ContentMetaData"
> targetNamespace="http://www.emeraldinsight.com/ContentMetaData"
> elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.7"
> xml:lang="en">
>
> <metadata
>
> xmlns="http://www.emeraldinsight.com/ContentMetaData"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xsi:schemaLocation="http://www.emeraldinsight.com/ContentMetaData
> http://www.emeraldinsight.com/ContentMetaData.xsd"
>
> xmlns:dc="http://purl.org/dc/elements/1.1/">
>
> <dc:title></dc:title>
>
> <dc:description></dc:description>
>
> <dc:publisher></dc:publisher>
>
> <dc:identifier></dc:identifier>
>
> </metadata>
>
> <!-- ************************************************************** -->
>
> <!-- -->
>
> <!-- Common Elements -->
>
> <!-- -->
>
> <!-- ************************************************************** -->
>
> <xs:element name="uniqueReference" type="xs:string"/>
>
> <xs:element name="title" type="xs:string"/>
>
> <xs:element name="subTitle" type="xs:string"/>
>
> <xs:element name="acknowledgements" type="xs:string"/>
>
> .
>
>
>
> As you may have guessed, the schema will not validate because the metadata is
> accepeted here. Myself and a colleague have been wrestling with this problem,
> trying various approaches to adding DC metadata, and failing.
>
>
>
> Can anyone help? Point out something obvious? Provide some examples of actual
> complete XSD or XML files that have DC metadata within them? Point me to a
> more relevant LISTSERV even!?
>
>
>
> --
> Jim Bowden
> Research Services Executive
> Emerald Group Publishing Limited
> 60/62 Toller Lane
> Bradford BD8 9BY
> United Kingdom
> -------------------------
> Tel +44 (0) 1274 785013
> Fax +44 (0) 1274 785200
> www.emeraldinsight.com
> -------------------------
>
>
>
>
>
>
> __________________________________________________________________
> ____
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __________________________________________________________________
> ____
|