On Jan 8, 2004, at 12:58 PM, Andrew E Switala wrote:
> Since <relatedItem> is derived from <mods>, however, the example is not
> schema valid (because <mods> has to have at least one top-level
> subelement). I've been using an empty <note/> element as filler, but
> perhaps the content model of <relatedItem> could be changed. One way
> is
> to put the content of <mods> in a group and define both <mods> and
> <relatedItem> in terms of this group (example below), but then the
> "is-a" relationship of <relatedItem> to <mods> is lost. I'm not enough
> of a schema hacker to know if there's a better approach.
I'm more comfortable speaking RELAX NG myself, so I won't give a
specific recommendation, other than that this ought to be fixed. It
should be possible to do this:
<relatedItem type="isReferencedBy"
xlink:href="http://www.example.com/#one" />
<relatedItem type="isReferencedBy"
xlink:href="http://www.example.com/#two" />
...or
<relatedItem type="host"
xlink:href="http://www.example.com/#three" />
Bruce
|