Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#27 default value of status= of <teiHeader>

closed
Lou Burnard
6
2004-09-22
2004-09-03
Syd Bauman
No

The status= attribute of the <teiHeader> element
currently defaults to "new". It should not have any
default value.

Most encoders do not explicitly specify a status= of
<teiHeader>, as it is not required, and for many people
isn't useful. Then sometime later the encoder comes
along and updates the header, without even thinking of
status=. Now, because the default for status= is "new",
an XML parser will report that the header has not been
modified, when in fact it has. This could easily be
avoided by not having a default value for status=.
(Note that status=, about which the Guidelines say very
little, would appear not to be needed when
date.created= and date.updated= are used.)

Discussion

  • Lou Burnard
    Lou Burnard
    2004-09-03

    Logged In: YES
    user_id=1021146

    I agree. In fact I think we should get rid of as many default
    values as we possibly can, not just this one. I wonder if
    anyone will notice.

     
  • Natasha Smith
    Natasha Smith
    2004-09-20

    Logged In: YES
    user_id=1124399

    I completely agree with this proposal, and would certainly
    give some real life examples when the status="new" has never
    been changed, when it should have been.

     
  • Lou Burnard
    Lou Burnard
    2004-09-22

    • assigned_to: nobody --> louburnard
    • status: open --> pending
     
  • Lou Burnard
    Lou Burnard
    2004-09-22

    • labels: --> TEI: New or Changed Element
    • status: pending --> closed
     
  • Lou Burnard
    Lou Burnard
    2004-09-22

    Logged In: YES
    user_id=1021146

    I have removed the default value for this attribute