LISTSERV mailing list manager LISTSERV 16.0

Help for MODS Archives


MODS Archives

MODS Archives


MODS@LISTSERV.LOC.GOV


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

MODS Home

MODS Home

MODS  January 2005

MODS January 2005

Subject:

Re: merits of a type library

From:

Bruce D'Arcus <[log in to unmask]>

Reply-To:

Metadata Object Description Schema List <[log in to unmask]>

Date:

Tue, 25 Jan 2005 15:59:13 -0500

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (57 lines)

On Jan 25, 2005, at 3:06 PM, Ray Denenberg, Library of Congress wrote:

> If  we only need to deal with two namespaces per instance (default plus
> mstl) does that help?

I'm just still not understanding why there is any need for this, unless
you're trying to workaround technical problems with XML Schema.

I just created three files in RELAX NG:

M-Library.rnc
mods.rnc
mads.rnc

The first has no default namespace; the last two each have their own
default namespaces.

Defined like so:

M-Library.rnc
=======
Title = element title { text }
Name = element name { text }

mods.rnc
=======
default namespace = "http://www.loc.gov/mods"
include "M-Library.rnc"
start = MODS
MODS = element mods { Title, Name }

mads.rnc
=======
default namespace = "http://www.loc.gov/mads"
include "M-Library.rnc"
start = MADS
MADS = element mads { Title, Name }


Now, instance documents created against the two schemas:

<?xml version="1.0" encoding="UTF-8"?>
<mods xmlns="http://www.loc.gov/mods">
   <title>Some Title</title>
   <name>Jane Doe</name>
</mods>

<?xml version="1.0" encoding="UTF-8"?>
<mads xmlns="http://www.loc.gov/mads">
   <title>Some Title</title>
   <name>Jane Doe</name>
</mads>

Isn't this how it should be?

Bruce

Top of Message | Previous Page | Permalink

Advanced Options


Options

Error during command authentication.

Error - unable to initiate communication with LISTSERV (errno=111). The server is probably not started.

Log In

Log In

Get Password

Get Password


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager