[MEI-L] typable events

Raffaele Viglianti raffaeleviglianti at gmail.com
Wed Aug 7 18:19:36 CEST 2013


On Wed, Aug 7, 2013 at 12:09 PM, TW <zupftom at googlemail.com> wrote:

>
> Speaking of @type and reading Raffaele's mail, I'm wondering whether
> it would be desirable to provide a formal means of specifying a
> taxonomy that is used for @type?  Something along the lines of
> <classCode>, like
>
>     <typeDef elements="multiRest">
>         <classCode authURI="types.xml#mrests"/>
>     </typeDef>
>
> Or possibly even <term> elements inside <typeDef>, although <term> is
> currently only used to specify a term that applies to a specific
> resource, not to define a term.
>


Hi Thomas, you would do this in ODD, by overriding the definition of @type,
either at model level, or element level:

<attDef ident="type" usage="opt" mode="replace">
  <valList type="closed">
    <valItem ident="american"/>
    <valItem ident="european"/>
  </valList>
</attDef>

So your schemata will force you to use only those when encoding, and if you
add <desc/> you can also generate documentation for a human reader.
In theory, an ODD-aware application parsing MEI (wouldn't that be awesome)
should be able to pick on this change from the standard and act accordingly
(at least by throwing a warning, or asking for user input, or what have you)

Raffaele


>
> [1]
> https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/15_bars_multirest.png/160px-15_bars_multirest.png
> [2]
> https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Old_multirests.png/440px-Old_multirests.png
>
> _______________________________________________
> mei-l mailing list
> mei-l at lists.uni-paderborn.de
> https://lists.uni-paderborn.de/mailman/listinfo/mei-l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-paderborn.de/pipermail/mei-l/attachments/20130807/f72ebf53/attachment.html>


More information about the mei-l mailing list