schema association (was Re: [tei-council] date attributes: summary, problems, and some suggestions)

Christian Wittern wittern at kanji.zinbun.kyoto-u.ac.jp
Fri Feb 16 07:52:43 EST 2007


Sebastian Rahtz wrote:
> Christian Wittern wrote:
>>
>>>  b) I am moving hundreds of documents into eXist, and I pull out 
>>> small fragments all
>>>      the time. for each one, I laboriously find the header, find the 
>>> way to referring to the
>>>      schema, locate the schema, and look! I have 4 different schemas, 
>>> so how now
>>>      do I evaluate @value?
>>>
>>
>> This is a usecase where most of our assumptions about files and 
>> headers fall on their face, which is reaonable IMHO, since we define a 
>> format for *interchange*.  In your document repository, you are bound 
>> to want to normalize these kinds of things into one standard form, so 
>> the processing required here is done on the import and then your done 
>> with it.
> hmm. that looks like a barrier to me.

You mean the normalizing process?  It seems like a fact of life to me.

>>> how? I'm an experienced XML processing person, and I just dread the
>>> thought of considering it. Plus, I want my validation!
>>
>> looking at the value of substring-before(., '-') should give you what 
>> you need to decide.  And I am sure Syd will come up with a regex that 
>> gives you a reasonable validation on the @value
> but I want my editor to validate my dates...

Oxygen does use the datatype to validate, so that works while you are 
editing -- doesnt nxml do the same thing?  Of course you will have to 
tell them about your schema in a language they understand, thus my 
suggestion.

Christian

-- 

  Christian Wittern
  Institute for Research in Humanities, Kyoto University
  47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN



More information about the tei-council mailing list