[MEI-L] @loc vs. @pname (and @oct)
Roland, Perry D. (pdr4h)
pdr4h at eservices.virginia.edu
Fri Mar 10 23:59:36 CET 2017
This kind of thing can't be enforced by a DTD, RNG, or XSD schema -- @loc has to be optional for when @pname is used and vice versa. Therefore, both have to be optional, which in turn means they can appear at the same time. Schematron is designed to handle "co-constraints"; that is, context-dependent rules, such as "If @loc, then not @pname". Of course, this assumes that there's no circumstance where both @loc and @pname are needed at the same time, which I'm not absolutely sure we can predict. MEI's designed to handle situations like this through customization; that is, if your project can say absolutely "never @loc and @pname simultaneously", then you can create an RNG that enforces that rule. But, you can't make everyone else abide by it.
University of Virginia
P. O. Box 400175
Charlottesville, VA 22904
pdr4h (at) virginia (dot) edu
From: mei-l [mei-l-bounces at lists.uni-paderborn.de] on behalf of Byrd, Donald A. [donbyrd at indiana.edu]
Sent: Friday, March 10, 2017 5:12 PM
To: Music Encoding Initiative
Subject: Re: [MEI-L] @loc vs. @pname (and @oct)
Enforcing it via schemas is exactly what I had in mind. So you're saying, maybe eventually, and I gather it's only practical via Schematron, but don't hold my breath :-) . No problem. Thanks for the info.
On Mar 10, 2017, at 9:37 AM, "Roland, Perry D. (pdr4h)" <pdr4h at eservices.virginia.edu> wrote:
> Hi Don,
> Indeed, attribute values can contradict each other, but there's no other way to offer different encoding approaches. The basic solution to this problem is to avoid double encoding; that is, only one of @loc or @pname should be used. Eventually, we may get around to enforcing this approach via Schematron.
>> -----Original Message-----
>> From: mei-l [mailto:mei-l-bounces at lists.uni-paderborn.de] On Behalf Of Byrd,
>> Donald A.
>> Sent: Thursday, March 09, 2017 9:59 PM
>> To: Music Initiative Encoding
>> Subject: [MEI-L] @loc vs. @pname (and @oct)
>> It seems that @loc and @pname are valid together, at least against mei-
>> Mensural and therefore (I assume) against any schema that includes Mensural.
>> This does not seem like a good thing, since they can easily contradict each
>> other! And @loc can also contradict @oct.
>> Donald Byrd
>> Woodrow Wilson Indiana Teaching Fellow
>> Adjunct Associate Professor of Informatics Visiting Scientist, Research
>> Technologies Indiana University Bloomington
>> mei-l mailing list
>> mei-l at lists.uni-paderborn.de
> mei-l mailing list
> mei-l at lists.uni-paderborn.de
Woodrow Wilson Indiana Teaching Fellow
Adjunct Associate Professor of Informatics
Visiting Scientist, Research Technologies
Indiana University Bloomington
mei-l mailing list
mei-l at lists.uni-paderborn.de
More information about the mei-l