Menu

#739 persistent <classSpec ident="att.internetMedia" mode="delete"/>

AMBER
closed-invalid
nobody
TEILite (4)
5(default)
2015-02-20
2015-02-19
No

(I label this as "TEILite" so that is shows up as an issue that affects TEILite, but I don't think that this report is specific to that customization)

When trying to delicately customize TEILite, I have noticed the stubborn persistence of

<classSpec type="atts" ident="att.internetMedia" module="tei" mode="delete"/>

Use case:

  • open Roma with TEI Lite
  • save and inspect -- you will see the above classSpec pop up in the ODD
  • in the 'core' module, enable 'media'
  • save and inspect -- you will see that now 'media' is specifically included from the 'core' module, but the above classSpec persists, although <media> is supposed to pull in a copy of @mimeType (cf. Sebastian's comment at https://sourceforge.net/p/tei/bugs/738/#50df ).
  • you can't use @mimeType in <media>, even if you explicitly customize the element in Roma, by removing it from att.media and adding it to att.internetMedia. You then end up with:
     <classSpec type="atts" ident="att.internetMedia" module="tei" mode="delete"/>
     (...)
     <elementSpec ident="media" module="core" mode="change">
      <classes mode="replace">
     (...)
       <memberOf key="att.internetMedia" mode="add"/>
     (...)
       <memberOf key="att.media" mode="delete"/>
      </classes>
     </elementSpec>

Recall that, regardless of the interaction between "add" and "delete" above, the very first appearance of the classSpec seems to come more or less out of nothing, that is, out of consolidation of TEILite, whose source spec doesn't appear to reference att.internetMedia in any way.

Related

Bugs: #738

Discussion

  • Lou Burnard

    Lou Burnard - 2015-02-20

    I am not sure that I understand what you're complaining about, in particular why you claim that the source for the TEI Lite ODD doesn't reference att.internetMedia. The line you characterise as "stubbornly persistent" is there in the source of P5/Exemplars/tei_lite.odd. If you want to include that class, remove the deletion. Simply adding an element which is a member of a class won't restore that class to existence if it's been deleted.

    No you can't manipulate classes in Roma very well. There are lots of things you can't do with Roma.

     
  • Piotr Banski

    Piotr Banski - 2015-02-20

    Ouch, I must have missed that line -- apologies! I was under the impression that it somehow automagically appeared in the consolidated ODD, that's why I posted and by the look of things, it's an invalid report.

    (And yes, I've dealt with it by removing the deletion.)

    Thanks!

     
  • Lou Burnard

    Lou Burnard - 2015-02-20
    • status: open --> closed-invalid
     
  • Piotr Banski

    Piotr Banski - 2015-02-20

    PS. Eeeek, I was looking at Extensions/lite/teilite.xml (sigh)

     
MongoDB Logo MongoDB