Print

Print


Hi Lisa,
Still. A sample could be generated for required or non-required. I want to have a sample record that contains all elements and attributes.
Karim

>>> "McAulay, Elizabeth" <[log in to unmask]> 7/15/2008 1:29 PM >>>
According to the MODS schema as written, only one of the top-level elements is required, and it doesn't matter, which one.
 
Best,
Lisa
 
------------------------------------------------------------------------
Elizabeth "Lisa" McAulay
Librarian for Digital Collection Development
UCLA Digital Library Program
email: [log in to unmask] 
 

________________________________

From: Metadata Object Description Schema List on behalf of Ray Denenberg, Library of Congress
Sent: Tue 7/15/2008 8:47 AM
To: [log in to unmask] 
Subject: Re: [MODS] Generating MODS samples



The problem is MODS use of CHOICE rather than SEQUENCE.  (CHOICE with
MaxOccurs= "unbounded") which allows elements in random order rather than in
sequence.

I've created an experimental schema that changes CHOICE to SEQUENCE at the
top level.  It will generate sample files with top level elements:

http://www.loc.gov/standards/mods//v3/mods-xxx.xsd 

NOTE, IT IS NOT AN OFFICIAL SCHEMA, IT IS FOR EXPERIMENTATION ONLY.

It will generate all the top level elements, but if you want lower level
elements too, we'll need to make the same change throughout the schema,
which will take a bit of work but I could get to it perhaps next week.

--Ray


----- Original Message -----
From: "Karim Boughida" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Tuesday, July 15, 2008 6:27 AM
Subject: [MODS] Generating MODS samples


Hi All,
I'm trying to create a sample MODS XML file with dummy data. A
file or a record that contains every possible element and attribute in
MODS (via mods xsd 3.3). I used "generate XML sample file" with
XML Spy but now it's no longer working...or it doesn't go
beyond <titleInfo> [1]

Thanks

Karim Boughida
NEW email: [log in to unmask] 

[1]

<titleInfo xlink:role="String" displayLabel="String" xlink:type="simple"
type="abbreviated" xlink:title="String" xlink:href="http://www.altova.com <http://www.altova.com/> "
authority="String" xml:lang="en-us" lang="String" xlink:show="new" ID="ID_2"
script="String" xlink:actuate="onLoad" transliteration="String"
xlink:arcrole="String">
<title>String</title>
</titleInfo>