Skip
repetitive navigational links
L-Soft  -  Home of  the  LISTSERV  mailing list  manager LISTSERV(R) 14.5
Skip repetitive navigational links
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2005)Back to main MODS pageJoin or leave MODSReplyPost a new messageSearchProportional fontNon-proportional fontLog in
Date:         Wed, 26 Jan 2005 09:36:54 -0500
Reply-To:     Metadata Object Description Schema List <[log in to unmask]>
Sender:       Metadata Object Description Schema List <[log in to unmask]>
From:         Andrew E Switala <[log in to unmask]>
Subject:      Type library and unqualified local elements
Comments: To: [log in to unmask]
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline

Turns out, in XML schemata, local elements with form="unqualified" are in no namespace, i.e. xmlns="". This is different from the example below, which appears to define a whole class of elements with the same local name. --Andy >>> [log in to unmask] 01/25/05 3:59 PM >>> 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


Back to: Top of message | Previous page | Main MODS page

LISTSERV.LOC.GOV CataList email list search Powered by LISTSERV email list manager