#25 Add namespace information to <tagUsage>

closed
Lou Burnard
5
2006-09-25
2004-09-02
Lou Burnard
No

The <tagsDecl> element in the header is used to record
the usage of XML elements present in a document. With
the advent of multi-namespaced documents in TEI P5, it
will be necessary to distinguish element names by
namespace.

Proposal: either
(a) add a ns attribute to <tagsDecl> the value of which
is a full name space (not a prefix). Default is
http://www.tei-c.org/ns/1.0
This requires that <tagsDecl> be made repeatable,
which makes it possible to get things wrong.
or
(b) add a new <nameSpace> element with attribute
NAME, as child of <tagsDecl> and parent of <tagUsage>

On balance, (b) seems preferable. Existing documents
could be accomodated unchanged if we added a rule
that says any <tagUsage> not wrapped in a
<nameSpace> is assumed ipso facto to be in the TEI
namespace.

Discussion

  • Logged In: YES
    user_id=95949

    I instinctively dislike the systems where "sometimes X is
    inside a Y inside a Z, but if we feel like it it can be an X
    inside a Z". It smacks
    of SGML-thinking shorthand. If we do (b), lets make <nameSpace>
    compulsory. Accomodating existing documents is not a priority.

     
  • Lou Burnard
    Lou Burnard
    2006-02-07

    • assigned_to: nobody --> louburnard
     
  • Lou Burnard
    Lou Burnard
    2006-02-07

    Logged In: YES
    user_id=1021146

    I've now added namespace to the header module. Too late
    for release 0.3 though.

     
  • Syd Bauman
    Syd Bauman
    2006-09-25

    • status: open --> closed