[osis-core] Defaulting (repetition)

Steven J. DeRose sderose at acm.org
Fri Jul 9 08:22:29 MST 2004


At 16:55 -0400 2004-05-25, Patrick Durusau wrote:
>Greetings!
>
>I posted a note back in February on a more general defaulting 
>mechanism that did not see much play on the list. (Todd responded 
>but then Todd always does. ;-) This time with a question and not an 
>objection so it was different in that regard.)
>
>The proposal is as follows:
>
>Add to <header> the following element (repeatable without limit, 
>except that two such elements cannot conflict):
>
><setDefault>
>
>Has two attributes:
>
>path: which must be of the form: //GI at attributeName
>
>and
>
>prefix: value must be found on a work element in the current 
>document as the value of osisWork attribute.
>
>This will allow all the current defaulting plus defaulting on 
>lemmas, morphology, etc., and any other that comes up in the future 
>without further intervention on our part.
>
>Current mechanisms will persist but if both apply, the newer 
>mechanism takes precedence.

I really like the functionality and generality.

Todd's right that it should conform entirely to XPath syntax, I think.

It is kind of a pain to introduce Yet Another Defaulting Mechanism, though....

-- 

Steve DeRose -- http://www.derose.net
Chair, Bible Technologies Group -- http://www.bibletechnologies.net
Email: sderose at acm.org  or  steve at derose.net


More information about the osis-core mailing list