Ignore:
Timestamp:
2006-10-16T10:59:46+13:00 (18 years ago)
Author:
kjdon
Message:

added .rt to the list of OID modifiers - this is the root id of the document

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/OIDtools.cpp

    r11259 r13116  
    276276}
    277277
    278 // checks if OID uses ".fc", ".lc", ".pr", ".ns",
    279 // or ".ps" syntax (first child, last child, parent,
     278// checks if OID uses ".fc", ".lc", ".pr", "rt", ".ns",
     279// or ".ps" syntax (first child, last child, parent, root,
    280280// next sibling, previous sibling)
    281281bool needs_translating (const text_t &OID) {
     
    285285  text_t tail = substr (OID.end()-3, OID.end());
    286286  if (tail == ".fc" || tail == ".lc" || tail == ".pr" ||
    287       tail == ".ns" || tail == ".ps") return true;
     287      tail == ".rt" || tail == ".ns" || tail == ".ps") return true;
    288288
    289289  return false;
     
    296296  text_t tail = substr (OID.end()-3, OID.end());
    297297  while (tail == ".fc" || tail == ".lc" || tail == ".pr" ||
    298      tail == ".ns" || tail == ".ps") {
     298     tail == ".rt" || tail == ".ns" || tail == ".ps") {
    299299    OID.erase (OID.end()-3, OID.end());
    300300    tail = substr (OID.end()-3, OID.end());
Note: See TracChangeset for help on using the changeset viewer.