/* DITA bookmap elements using extensions*/
*[class~="bookmap/bookmap"]:before {
    content: capitalize(local-name());
}

*[class~="bookmap/part"]:before,
*[class~="bookmap/chapter"]:before,
*[class~="bookmap/appendix"]:before{
    content: capitalize(local-name()) " href=" attr(href);
}

*[class~="bookmap/bookmap"] > *[class~="bookmap/booktitle"]:before,
*[class~="bookmap/bookmap"] > *[class~="bookmap/frontmatter"]:before, 
*[class~="bookmap/bookmap"] > *[class~="bookmap/backmatter"]:before {
    content: capitalize(local-name());
}

*[class~="bookmap/publisherinformation"]:before,
*[class~="bookmap/person"]:before,
*[class~="bookmap/organization"]:before,
*[class~="bookmap/printlocation"]:before,
*[class~="bookmap/published"]:before,
*[class~="bookmap/publishtype"]:before,
*[class~="bookmap/revisionid"]:before,
*[class~="bookmap/started"]:before,
*[class~="bookmap/year"]:before,
*[class~="bookmap/month"]:before,
*[class~="bookmap/day"]:before,
*[class~="bookmap/completed"]:before,
*[class~="bookmap/bookid"]:before,
*[class~="bookmap/bookpartno"]:before,
*[class~="bookmap/edition"]:before,
*[class~="bookmap/isbn"]:before,
*[class~="bookmap/booknumber"]:before,
*[class~="bookmap/volume"]:before,
*[class~="bookmap/maintainer"]:before,
*[class~="bookmap/bookchangehistory"]:before,
*[class~="bookmap/reviewed"]:before,
*[class~="bookmap/edited"]:before,
*[class~="bookmap/tested"]:before,
*[class~="bookmap/approved"]:before,
*[class~="bookmap/bookevent"]:before,
*[class~="bookmap/bookeventtype"]:before,
*[class~="bookmap/bookrights"]:before,
*[class~="bookmap/copyrfirst"]:before,
*[class~="bookmap/copyrlast"]:before,
*[class~="bookmap/bookowner"]:before,
*[class~="bookmap/bookrestriction"]:before,
*[class~="bookmap/summary"]:before {
    display:inline;
    content: capitalize(local-name());
    font-size: smaller;
    font-weight: bold;
    color: #333333;
    background-color:inherit;
}

*[class~="bookmap/bookeventtype"] {
    content: capitalize(local-name()) " name="  attr(name);
    color: #333333;
    background-color:inherit;
}

*[class~="bookmap/publishtype"],
*[class~="bookmap/bookrestriction"] {
    content: capitalize(local-name()) " value="  attr(value);
    color: #333333;
    background-color:inherit;
}

*[class~="bookmap/notices"]:before,
*[class~="bookmap/dedication"]:before,
*[class~="bookmap/colophon"]:before,
*[class~="bookmap/bookabstract"]:before,
*[class~="bookmap/draftintro"]:before,
*[class~="bookmap/preface"]:before {
    content: capitalize(local-name()) " href=" attr(href);
}

*[class~="bookmap/bookmap"]:before {
   content: capitalize(local-name());
}

*[class~="bookmap/part"]:before {
    content: capitalize(local-name());
}

*[class~="bookmap/chapter"]:before,
*[class~="bookmap/appendix"]:before {
   content: capitalize(local-name());
}

*[class~="bookmap/toc"]:before,
*[class~="bookmap/figurelist"]:before,
*[class~="bookmap/tablelist"]:before,
*[class~="bookmap/abbrevlist"]:before,
*[class~="bookmap/trademarklist"]:before,
*[class~="bookmap/bibliolist"]:before,
*[class~="bookmap/indexlist"]:before,
*[class~="bookmap/booklist"]:before,
*[class~="bookmap/booklists"]:before {
    display: inline;
    color: #333333;
    background-color:inherit;
    content: capitalize(local-name());
}

*[class~="bookmap/glossarylist"]:before {
    content: capitalize(local-name());
}

*[class~="bookmap/dedication"]:before,
*[class~="bookmap/colophon"]:before,
*[class~="bookmap/amendments"]:before,
*[class~="bookmap/bookabstract"]:before {
    content: capitalize(local-name());
}