#596 attDef/@ns has wrong default value

AMBER
closed-fixed
nobody
None
5(default)
2013-10-17
2013-08-29
Martin Holmes
No

<attDef>/@ns has a default value of http://www.tei-c.org/ns/1.0, the TEI namespace. However, all TEI attributes are unprefixed, and therefore in no namespace (according to my reading of the spec, which says "the namespace name for an unprefixed attribute name always has no value" (http://www.w3.org/TR/REC-xml-names/#defaulting). So I believe the default namespace for TEI attributes should be an empty string.

Discussion

  • Lou Burnard
    Lou Burnard
    2013-10-17

    I think you are right. I also think that default values for attributes are in general a bad idea, and in this case positively unhelpful: if you are defining a new attribute you probably don't want to put it in the TEI namespace anyway (even if there were one for attributes which, as you note, there isn't). So I have removed the <defaultVal> in question.

     
  • Lou Burnard
    Lou Burnard
    2013-10-17

    • status: open --> closed-fixed