Gregor Hagedorn wrote:
> Does DublinCore supports semantic formatting like:
>
> <dc:title>Einstein discovered that e = mc<sup>2</sup></dc:title>
>
> (superscript differs semantically from a plain 2)
>
> or
>
> <dc:title>The genus <i>Microbotryum</i></dc:title>
>
> (Scientific organism names have to be italicized)
>
> Related: Is there any standard to avoid mixed content but allow
> character formatting of basic xhtml elements that is in use?
>
> I approached Jane Greenberg who says in principle DC should allow
> this. However, the only schema I could find for DC:
>
> =======================================
> <xs:schema targetNamespace="http://purl.org/dc/elements/1.1/"
> elementFormDefault="qualified" attributeFormDefault="unqualified"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns="http://purl.org/dc/elements/1.1/"><xs:annotation><xs:documentat
> ion xml:lang="en">
> DCMES 1.1 XML Schema
> XML Schema for http://purl.org/dc/elements/1.1/ namespace
> Created 2003-04-02
> Created by
> Tim Cole ([log in to unmask])
> Tom Habing ([log in to unmask])
> Jane Hunter ([log in to unmask])
> Pete Johnston ([log in to unmask]),
> Carl Lagoze ([log in to unmask])
> ...
> =======================================
>
> explicitly prevent this. Is there another schema? From which schema
> do you expect other schemata to derive their DC-related types, to
> allow more validation than directly using DC? Should I create my own
> DC schema instead?
The DCMES 1.1 XML Schema does indeed prevent mixed content as you describe.
However, it was also explicitly designed to be extensible so that people
could import it into their own schemas that do allow such markup.
I've included a simple example, test.xsd and test.xml, that illustrate. The
test.xsd defines a new type called ComplexCreator that extends the
SimpleLiteral type from the DCMES schema. The ComplexCreator type requires
FirstName and SurName elements inside of the mixed content parent element.
The test.xml file shows how this would look in an XML instance document.
--
Thomas Habing
Research Programmer, Digital Library Projects
University of Illinois at Urbana-Champaign
155 Grainger Engineering Library Information Center, MC-274
[log in to unmask], (217) 244-4425
http://dli.grainger.uiuc.edu
>
> Thanks a lot!
>
> Gregor
> ----------------------------------------------------------
> Gregor Hagedorn ([log in to unmask])
> Institute for Plant Virology, Microbiology, and Biosafety
> Federal Research Center for Agriculture and Forestry (BBA)
> Koenigin-Luise-Str. 19 Tel: +49-30-8304-2220
> 14195 Berlin, Germany Fax: +49-30-8304-2203
>
> Often wrong but never in doubt!
>
|